Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=fvbe.git;a=commitdiff;h=cf1c1d65e3253d2edd36997e6e1023100b908e48
commit cf1c1d65e3253d2edd36997e6e1023100b908e48 Author: James Buren <r...@frugalware.org> Date: Thu Mar 7 05:16:17 2013 -0600 configure ISO so it can built to start over video mode or serial mode diff --git a/bin/create-iso b/bin/create-iso index 4316f9b..cbe1f9c 100755 --- a/bin/create-iso +++ b/bin/create-iso @@ -4,6 +4,9 @@ set -e . ./fvbe.conf +# First, clean up. +rm -rf $FVBE_ROOT + # Create the skeleton directory. mkdir -p $FVBE_ROOT/{boot/grub,LiveOS} @@ -16,29 +19,18 @@ cp squashfs.img $FVBE_ROOT/LiveOS/squashfs.img # Setup grub2 config. cat > $FVBE_ROOT/boot/grub/grub.cfg << EOF -search --no-floppy --set=root --label FVBE -terminal_input console -terminal_output console - -insmod efi_gop -insmod efi_uga - -set locale=fr_FR.utf8 - -menuentry 'Frugalware (Normal)' { - linux /boot/vmlinuz root=live:CDLABEL=FVBE video=800x600 locale.LANG=\$locale - initrd /boot/initrd -} - -submenu 'Frugalware Locale' { - menuentry 'en_US.utf8' { - set locale=en_US.utf8 - } -} +set mode=$FVBE_ISO_IO_MODE + +if [ \$mode = video ]; then + insmod video_all + insmod gfxterm +elif [ \$mode = serial ]; then + insmod serial +fi EOF # Create the ISO. grub-mkrescue -o fwlive.iso $FVBE_ROOT -- -boot_image any partition_offset=16 -volid FVBE # Delete the root directory. -#rm -rf $FVBE_ROOT +rm -rf $FVBE_ROOT diff --git a/skel.conf b/skel.conf index fc1061d..f687f36 100644 --- a/skel.conf +++ b/skel.conf @@ -32,3 +32,12 @@ FVBE_ROOTFS_CLEAN="no" # the compression method to use FVBE_ROOTFS_COMPRESS="lzo" + +# specify if we are to use video or serial IO mode +FVBE_ISO_IO_MODE="video" + +# use this to configure the serial port for grub +FVBE_ISO_IO_SERIAL_GRUB="serial --speed=38400 --unit=0" + +# use this to configure the serial port for linux +FVBE_ISO_IO_SERIAL_LINUX="console=ttyS0,38400" _______________________________________________ Frugalware-git mailing list Frugalware-git@frugalware.org http://frugalware.org/mailman/listinfo/frugalware-git