new: dynamic grub boot option

This commit is contained in:
ngn 2024-05-06 22:28:45 +03:00
parent faccb3b101
commit bd28c0fe73
2 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,7 @@ then
terminal_output gfxterm terminal_output gfxterm
fi fi
menuentry 'MatterLinux 24' --class os { menuentry 'MatterLinux VERSION_HERE ISO' --class os {
insmod gzio insmod gzio
insmod part_msdos insmod part_msdos
linux /boot/vmlinuz-linux loglevel=3 linux /boot/vmlinuz-linux loglevel=3

1
iso.sh
View File

@ -9,4 +9,5 @@ build() {
echo "root:root" | chpasswd echo "root:root" | chpasswd
systemctl preset-all systemctl preset-all
cp /usr/sbin/init . cp /usr/sbin/init .
sed -i "s/VERSION_HERE/$VERSION/g" /boot/grub/grub.cfg
} }