-
Notifications
You must be signed in to change notification settings - Fork 43
Tips and tricks
Imobach González Sosa edited this page Feb 9, 2023
·
2 revisions
This page aims to collect some tips and tricks for users and developers.
While developing, you might want to perform the installation on your secondary disk. To check that everything worked as expected, you would like to move the disk to a different VM. However, most probably, the system will not boot. This comment on issue #416 describes the steps to boot the system in that disk.
From the grub prompt:
grub2 rescue> set root=(hd0,gpt2)
grub2 rescue> set prefix=(hd0,gpt2)/@/boot/grub2
grub2 rescue> insmod normal
grub2 rescue> normal
grub2> insmod btrfs
grub2> linux /@/.snapshots/1/snapshot/boot/vmlinuz root=/dev/sda2
grub2> initrd /@/.snapshots/1/snapshot/boot/initrd
grub2> boot
To make it permanent run as root:
# grub2-install /dev/sda
# grub2-mkconfig -o /boot/grub2/grub.cfg