diff options
Diffstat (limited to 'chapter08/grub.xml')
-rw-r--r-- | chapter08/grub.xml | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/chapter08/grub.xml b/chapter08/grub.xml index a8e484bd8..71d1d4c23 100644 --- a/chapter08/grub.xml +++ b/chapter08/grub.xml @@ -128,7 +128,7 @@ xorriso -as cdrecord -v dev=/dev/cdrw blank=as_needed grub-img.iso</userinput></ <para>Generate <filename>/boot/grub/grub.cfg</filename>:</para> - <screen><userinput>cat > /boot/grub/grub.cfg << "EOF" + <screen revision="sysv"><userinput>cat > /boot/grub/grub.cfg << "EOF" <literal># Begin /boot/grub/grub.cfg set default=0 set timeout=5 @@ -141,6 +141,20 @@ menuentry "GNU/Linux, Linux &linux-version;-lfs-&version;" { }</literal> EOF</userinput></screen> + <screen revision="systemd"><userinput>cat > /boot/grub/grub.cfg << "EOF" +<literal># Begin /boot/grub/grub.cfg +set default=0 +set timeout=5 + +insmod ext2 +set root=(hd0,2) + +menuentry "GNU/Linux, Linux &linux-version;-lfs-&versiond;" { + linux /boot/vmlinuz-&linux-version;-lfs-&versiond; root=/dev/sda2 ro +}</literal> +EOF</userinput></screen> + + <note><para>From <application>GRUB</application>'s perspective, the kernel files are relative to the partition used. If you used a separate /boot partition, remove /boot from the above |