Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unused parameter constants in setup.sh? #4

Open
CTXz opened this issue Mar 10, 2022 · 0 comments
Open

Unused parameter constants in setup.sh? #4

CTXz opened this issue Mar 10, 2022 · 0 comments

Comments

@CTXz
Copy link

CTXz commented Mar 10, 2022

I was wondering if there's any purpose for the following constants defined at the top of qemu-pi-setup/setup.sh:

DISK="sd.img"
SIZE=256
SIZEUNIT=M

DISK is not used once throughout the script, neither is SIZEUNIT. SIZE is also technically not used, as it is overwritten by the 2nd parameter of resize_img().

Not sure about DISK, but as for the size related constants, did you perhaps meant to use it as an argument for resize_img() instead of calling it with a fixed size of 2G?

Here's the resize_img() In question, on line 62 of qemu-pi-setup/setup.sh:

resize_img "$IMGNAME" 2G

My assumption would be that the following line was meant to be there instead:

resize_img "$IMGNAME" "$SIZE$SIZEUNIT"

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant