Skip to content

Commit

Permalink
fixes missing grub-mkconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
taukakao committed Nov 20, 2024
1 parent dbc6e8b commit bbc9e4d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions vanilla_installer/utils/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -608,11 +608,22 @@ def gen_install_recipe(log_path, finals, sys_recipe):
"shell", ["umount -l /mnt/a/boot", "mkdir -p /mnt/a/boot/grub"]
)

# Since /usr/sbin/grub-mkconfig deletes itself after the first invocation
# we need to use the alternative path
recipe.add_postinstall_step(
"shell", ["ln -s /usr/libexec/grub-mkconfig /usr/sbin/grub-mkconfig"], chroot=True
)

# Run `grub-mkconfig` inside the root partition
recipe.add_postinstall_step(
"grub-mkconfig", ["/boot/grub/grub.cfg"], chroot=True
)

# Delete link again so that users don't break their system with it
recipe.add_postinstall_step(
"shell", ["rm /usr/sbin/grub-mkconfig"], chroot=True
)

# Copy init files to init LV
recipe.add_postinstall_step(
"shell",
Expand Down

0 comments on commit bbc9e4d

Please sign in to comment.