mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
gummiboot: Remove/change gummiboot references with systemd-boot
After systemd-boot was introduced, its been tested for a while with no major issues being found until now, this patch completely replaces all gummiboot instances with systemd-boot ones, taking the next step into cleaning up systemd-boot/gummiboot. [YOCTO #10332] (From OE-Core rev: f9a61d3400ad9068a6d83b8eb6aefe3098c58e68) Signed-off-by: Alejandro Hernandez <alejandro.hernandez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
41137c212c
commit
2dce2648e3
@@ -171,19 +171,19 @@ if [ -f /run/media/$1/EFI/BOOT/grub.cfg ]; then
|
||||
fi
|
||||
|
||||
if [ -d /run/media/$1/loader ]; then
|
||||
GUMMIBOOT_CFGS="/ssd/loader/entries/*.conf"
|
||||
# copy config files for gummiboot
|
||||
SYSTEMDBOOT_CFGS="/ssd/loader/entries/*.conf"
|
||||
# copy config files for systemd-boot
|
||||
cp -dr /run/media/$1/loader /ssd
|
||||
# delete the install entry
|
||||
rm -f /ssd/loader/entries/install.conf
|
||||
# delete the initrd lines
|
||||
sed -i "/initrd /d" $GUMMIBOOT_CFGS
|
||||
sed -i "/initrd /d" $SYSTEMDBOOT_CFGS
|
||||
# delete any LABEL= strings
|
||||
sed -i "s/ LABEL=[^ ]*/ /" $GUMMIBOOT_CFGS
|
||||
sed -i "s/ LABEL=[^ ]*/ /" $SYSTEMDBOOT_CFGS
|
||||
# delete any root= strings
|
||||
sed -i "s/ root=[^ ]*/ /" $GUMMIBOOT_CFGS
|
||||
sed -i "s/ root=[^ ]*/ /" $SYSTEMDBOOT_CFGS
|
||||
# add the root= and other standard boot options
|
||||
sed -i "s@options *@options root=$rootfs rw $rootwait quiet @" $GUMMIBOOT_CFGS
|
||||
sed -i "s@options *@options root=$rootfs rw $rootwait quiet @" $SYSTEMDBOOT_CFGS
|
||||
# Add the test label
|
||||
echo -ne "title test\nlinux /test-kernel\noptions root=$testfs rw $rootwait quiet\n" > /ssd/loader/entries/test.conf
|
||||
fi
|
||||
|
||||
@@ -245,19 +245,19 @@ fi
|
||||
|
||||
if [ -d /run/media/$1/loader ]; then
|
||||
rootuuid=$(blkid -o value -s PARTUUID ${rootfs})
|
||||
GUMMIBOOT_CFGS="/boot/loader/entries/*.conf"
|
||||
# copy config files for gummiboot
|
||||
SYSTEMDBOOT_CFGS="/boot/loader/entries/*.conf"
|
||||
# copy config files for systemd-boot
|
||||
cp -dr /run/media/$1/loader /boot
|
||||
# delete the install entry
|
||||
rm -f /boot/loader/entries/install.conf
|
||||
# delete the initrd lines
|
||||
sed -i "/initrd /d" $GUMMIBOOT_CFGS
|
||||
sed -i "/initrd /d" $SYSTEMDBOOT_CFGS
|
||||
# delete any LABEL= strings
|
||||
sed -i "s/ LABEL=[^ ]*/ /" $GUMMIBOOT_CFGS
|
||||
sed -i "s/ LABEL=[^ ]*/ /" $SYSTEMDBOOT_CFGS
|
||||
# delete any root= strings
|
||||
sed -i "s/ root=[^ ]*/ /" $GUMMIBOOT_CFGS
|
||||
sed -i "s/ root=[^ ]*/ /" $SYSTEMDBOOT_CFGS
|
||||
# add the root= and other standard boot options
|
||||
sed -i "s@options *@options root=PARTUUID=$rootuuid rw $rootwait quiet @" $GUMMIBOOT_CFGS
|
||||
sed -i "s@options *@options root=PARTUUID=$rootuuid rw $rootwait quiet @" $SYSTEMDBOOT_CFGS
|
||||
fi
|
||||
|
||||
umount /tgt_root
|
||||
|
||||
Reference in New Issue
Block a user