switch from GRUB2 to systemd-boot

This commit is contained in:
Pratham Patel 2024-04-30 10:40:14 +05:30
parent 550563d561
commit d3a5d4ea18
No known key found for this signature in database
5 changed files with 5 additions and 15 deletions

View File

@ -3,11 +3,12 @@
<profile name="BootCore" description="Boot core packages"/>
</profiles>
<packages type="bootstrap" patternType="plusRecommended" profiles="BootCore">
<package name="grubby"/>
<package name="sdubby"/>
</packages>
<packages type="image" patternType="plusRecommended" profiles="BootCore">
<package name="kernel"/>
<package name="kernel-modules-extra"/>
<package name="systemd-boot-unsigned"/>
<package name="systemd-oomd-defaults"/>
<package name="systemd-resolved"/>
</packages>

View File

@ -33,17 +33,6 @@ echo 'uninitialized' > /etc/machine-id
## remove random seed, the newly installed instance should make its own
rm -f /var/lib/systemd/random-seed
#======================================
# Configure grub correctly
#--------------------------------------
## Works around issues with grub-bls
## See: https://github.com/OSInside/kiwi/issues/2198
echo "GRUB_DEFAULT=saved" >> /etc/default/grub
## Disable submenus to match Fedora
echo "GRUB_DISABLE_SUBMENU=true" >> /etc/default/grub
## Disable recovery entries to match Fedora
echo "GRUB_DISABLE_RECOVERY=true" >> /etc/default/grub
#======================================
# Delete & lock the root user password
#--------------------------------------

View File

@ -7,7 +7,7 @@
</profiles>
<preferences profiles="Minimal">
<type image="oem" filesystem="btrfs" kernelcmdline="" target_blocksize="4096" bootpartition="true" bootpartsize="1024" bootfilesystem="ext4" efipartsize="500" firmware="uefi" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" rootfs_label="fedora" fsmountoptions="x-systemd.growfs,compress=zstd:1">
<bootloader name="grub2" console="none" timeout="5" timeout_style="menu"/>
<bootloader name="systemd_boot"/>
<systemdisk name="fedora">
<volume name="@root=root"/>
<volume name="home" parent="/"/>

View File

@ -7,7 +7,7 @@
</profiles>
<preferences profiles="Server">
<type image="oem" filesystem="btrfs" kernelcmdline="" target_blocksize="4096" bootpartition="true" bootpartsize="1024" bootfilesystem="ext4" efipartsize="500" firmware="uefi" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" rootfs_label="fedora" fsmountoptions="x-systemd.growfs,compress=zstd:1">
<bootloader name="grub2" console="none" timeout="5" timeout_style="menu"/>
<bootloader name="systemd_boot"/>
<systemdisk name="fedora">
<volume name="@root=root"/>
<volume name="home" parent="/"/>

View File

@ -15,7 +15,7 @@
</profiles>
<preferences profiles="WorkstationCommon">
<type image="oem" filesystem="btrfs" kernelcmdline="rhgb quiet" target_blocksize="4096" bootpartition="true" bootpartsize="1024" bootfilesystem="ext4" efipartsize="500" firmware="uefi" btrfs_root_is_subvolume="true" btrfs_set_default_volume="false" rootfs_label="fedora" fsmountoptions="x-systemd.growfs,compress=zstd:1">
<bootloader name="grub2" console="console" timeout="1" timeout_style="hidden"/>
<bootloader name="systemd_boot"/>
<systemdisk name="fedora">
<volume name="@root=root"/>
<volume name="home" parent="/"/>