Skip to content

Improve cross-compatibility of used dependencies#46

Open
m-sz wants to merge 2 commits into
develfrom
marszy
Open

Improve cross-compatibility of used dependencies#46
m-sz wants to merge 2 commits into
develfrom
marszy

Conversation

@m-sz
Copy link
Copy Markdown

@m-sz m-sz commented Dec 30, 2024

Some of the tools used during the image creation process were executed based on their absolute path (eg. /sbin), which might not be the case. Changed them to just use the executable's name.

Changed scripts shebang to use the more generic
#!/usr/bin/env bash to accomodate different OSes.

Some of the tools used during the image creation process
were executed based on their absolute path (eg. /sbin),
which might not be the case. Changed them to just use
the executable's name.

Changed scripts shebang to use the more generic
`#!/usr/bin/env bash` to accomodate different OSes.
Comment thread Makefile
@@ -1,3 +1,4 @@
.PHONY: all clean
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we are adding PHONY then let's add all PHONY targets. I believe targets root, image, iso are PHONY as well

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense

Puts grub-install of the create-live-image.sh script
before the system partitions are unmounted.
Previously, the installation step happened when the work/mnt
directory had the config partition mounted, instead of the root filesystem.

Adds --root-directory flag to grub-install, making GRUB
scan only the loopback device's partition. Previously, with
this option missing, host system was scanned and the LiveUSB
would not work if built on one system and booted on a different one.

Both of those changes make it possible to actually boot the image,
tested using QEMU.
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

Successfully merging this pull request may close these issues.

2 participants