build-grub: Support setting rootflags from config
The project configuration file can now contain an optional `rootflags` variable. If specified, this variable will be used to set the GRUB environment variable of the same name. The value will be appended to the kernel command line.dev/gentoo
parent
a244197d3c
commit
a51dc99b9b
|
@ -39,6 +39,8 @@ grub-mkimage \
|
||||||
echo 'Generating GRUB configuration file ...'
|
echo 'Generating GRUB configuration file ...'
|
||||||
mkdir -p "${O}"/efi-part/EFI/gentoo
|
mkdir -p "${O}"/efi-part/EFI/gentoo
|
||||||
cp -uv grub.cfg "${O}"/efi-part/EFI/gentoo
|
cp -uv grub.cfg "${O}"/efi-part/EFI/gentoo
|
||||||
grub-editenv "${O}"/efi-part/EFI/gentoo/grubenv set rootflags='ro'
|
grub-editenv "${O}"/efi-part/EFI/gentoo/grubenv set \
|
||||||
grub-editenv "${O}"/efi-part/EFI/gentoo/grubenv set default=0
|
rootflags="${rootflags-ro}" \
|
||||||
grub-editenv "${O}"/efi-part/EFI/gentoo/grubenv set timeout=5
|
default=0 \
|
||||||
|
timeout=5 \
|
||||||
|
&& :
|
||||||
|
|
Loading…
Reference in New Issue