Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=bf35b90c039499b0ceaa03343be7b8fffc70adc8

commit bf35b90c039499b0ceaa03343be7b8fffc70adc8
Author: James Buren <[email protected]>
Date:   Thu Mar 7 17:56:48 2013 -0600

create-iso: fully populate menus now

diff --git a/bin/create-iso b/bin/create-iso
index 2587ae5..1ebf29f 100755
--- a/bin/create-iso
+++ b/bin/create-iso
@@ -4,6 +4,32 @@ set -e

. ./fvbe.conf

+do_locales()
+{
+  echo "submenu 'Locales' {"
+  for i in $(cat locales); do
+  echo "  menuentry '$i' {"
+  echo "    LOCALE=$i"
+  echo "    export LOCALE"
+  echo "    configfile /boot/grub/menu.cfg"
+  echo "  }"
+  done
+  echo "}"
+}
+
+do_layouts()
+{
+  echo "submenu 'Keyboard Layouts' {"
+  for i in $(cat layouts); do
+  echo "  menuentry '$i' {"
+  echo "    LAYOUT=$i"
+  echo "    export LAYOUT"
+  echo "    configfile /boot/grub/menu.cfg"
+  echo "  }"
+  done
+  echo "}"
+}
+
# First, clean up.
rm -rf $FVBE_ROOT

@@ -19,6 +45,14 @@ cp squashfs.img $FVBE_ROOT/LiveOS/squashfs.img

# Collect some grub files that are not automatically handled.
cp /usr/share/grub/unicode.pf2 $FVBE_ROOT/boot/grub/fonts/unicode.pf2
+cat > $FVBE_ROOT/boot/grub/menu.cfg << EOF
+menuentry 'Frugalware Linux (QEMU Mode)' {
+  linux /boot/vmlinuz root=live:CDLABEL=FVBE quiet 800x600 
locale.LANG=\$LOCALE vconsole.keymap=\$LAYOUT
+  initrd /boot/initrd
+}
+$(do_locales)
+$(do_layouts)
+EOF

# Setup grub2 config.
cat > $FVBE_ROOT/boot/grub/grub.cfg << EOF
@@ -36,7 +70,7 @@ elif [ \$mode = serial ]; then
terminfo -u vt100-color
fi

-read
+configfile /boot/grub/menu.cfg
EOF

# Create the ISO.
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to