-
Notifications
You must be signed in to change notification settings - Fork 149
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
Adding iso-scan feature to kiwi-live dracut module #585
Conversation
With this change is it possible to boot from an iso (regardless of using
Also managed to boot from a vfat usb using the host:~> sudo live-fat-stick LimeJeOS-tumbleweed.x86_64-1.99.1.iso /dev/sdc1 Where
About #521 I am not sure that much more can be done from KIWI perspective, as moving the ISO to a vfat stick and set the bootloader and other parameters is out if the scope of KIWI, but there is the great Persistent COW files are not part of this PR and I believe it should be handled in another PR in order to facilitate reviewing and tests. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great and again we participate from what dracut already provides :)
Regarding live-fat-stick I think it would be worth mentioning in the documentation
Yes, I was afraid that iso-scan scripts would be somehow coupled with dmsquash-live module, but it turned out that it is pretty simple and atomic. Sure, live-fat-stick should be mentioned in the documentation, this is true. |
There is https://software.opensuse.org/package/live-grub-stick using grub2(works with all partitions supported by grub2) instead of syslinux(only vfat), and https://software.opensuse.org/package/live-usb-gui script that act as gui frontend to both those scripts. |
Tried with http://widehat.opensuse.org/tumbleweed/iso/openSUSE-Tumbleweed-Rescue-CD-x86_64-Snapshot20180129-Media.iso get just dracut shell, there is no /var/log/boot.kiwi, what should I be looking for to check if this patch is included in the initrd? |
@cyberorg In order to see if the patch is included you should check the dracut modules version, as I can see the patch should be in any Also you can check dmsquashdir=$(find "${dracutbasedir}/modules.d" -name "*dmsquash-live")
if [ -n "${dmsquashdir}" ] && \
[ -f "${dmsquashdir}/parse-iso-scan.sh" ] && \
[ -f "${dmsquashdir}/iso-scan.sh" ]; then
inst_hook cmdline 31 "${dmsquashdir}/parse-iso-scan.sh"
inst_script "${dmsquashdir}/iso-scan.sh" "/sbin/iso-scan"
fi This is the patch I did to include iso-scan.sh script, which basically looks for the iso in devices and loop mounts it. If this part is there then the patch is included into the iso. |
Works, tested using images here: https://build.opensuse.org/project/show/openSUSE:Factory:Live Thanks |
This commit adds the iso-scan scripts to kiwi-live module_setup
if the former files are found in the system inside the dmsquash-live
dracut module directory.
Fixes #574 and is related to #521