]> spindle.queued.net Git - xodist/blobdiff - mkext3.sh
initial installer support (no, it doesn't do anything interesting yet)
[xodist] / mkext3.sh
index 677391c35685da3f8bde25643b9782e8e280e783..8d8532477cf0b5a09ec512b9f9e3f45bcafb398a 100755 (executable)
--- a/mkext3.sh
+++ b/mkext3.sh
@@ -94,6 +94,7 @@ default 0
 timeout 5
 color cyan/blue white/blue
 EOF
+       installer_added=0
        label=`sed -ne 's/^LABEL=\(.\+\)[[:space:]]\+\/[[:space:]]\+.*/\1/p' configs/${CONFIG_TYPE}/fstab-ext3`
        prefix=
        grep -q ' ${mntpt}/boot ' /proc/mounts && prefix=/boot
@@ -111,6 +112,18 @@ kernel             ${prefix}/vmlinuz-${v} root=LABEL=${label} ro
 initrd         ${prefix}/initrd.img-${v}
 boot
 EOF
+               if [ "$installer_added" = "0" ]; then
+                       installer_added=1
+                       cat >>${mntpt}/boot/grub/menu.lst<<EOF
+
+title           Debian GNU/Linux Installer
+root            (hd0,0)
+kernel          ${prefix}/vmlinuz-${v} root=LABEL=${label} ro installer
+initrd          ${prefix}/initrd.img-${v}
+boot
+EOF
+               fi
+
        done
 
        # grub-install is pretty broken, so we do this manually