Skip to content

Commit

Permalink
Merge pull request #85 from alfonsosanchezbeato/mount-piboot
Browse files Browse the repository at this point in the history
the-modeenv: mount piboot from seed if present
  • Loading branch information
alfonsosanchezbeato authored Mar 10, 2022
2 parents f608677 + ec22e41 commit b3bc788
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion factory/usr/lib/the-modeenv
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ if grep -q snapd_recovery_mode=run /proc/cmdline; then
if [ -f /run/mnt/ubuntu-boot/EFI/ubuntu/grub.cfg ]; then
echo '/run/mnt/ubuntu-boot/EFI/ubuntu /boot/grub none bind 0 0' >> /run/image.fstab
# ensure ESP efi dir is available for fwupdate (LP: 1892392)
echo '/run/mnt/ubuntu-seed/ /boot/efi none bind 0 0' >> /run/image.fstab
echo '/run/mnt/ubuntu-seed/ /boot/efi none bind 0 0' >> /run/image.fstab
elif [ -f /run/mnt/ubuntu-boot/uboot/ubuntu/boot.sel ]; then
echo '/run/mnt/ubuntu-boot/uboot/ubuntu /boot/uboot none bind 0 0' >> /run/image.fstab
elif [ -f /run/mnt/ubuntu-seed/piboot/ubuntu/piboot.conf ]; then
echo '/run/mnt/ubuntu-seed/piboot/ubuntu /boot/piboot none bind 0 0' >> /run/image.fstab
fi
fi
mount -o bind /run/image.fstab /sysroot/etc/fstab
Expand Down

0 comments on commit b3bc788

Please sign in to comment.