[or-cvs] r11687: Added support for running incognito through qemu from usb. (in incognito/trunk: arch/x86/overlay root_overlay/usr/sbin)

anonym at seul.org anonym at seul.org
Fri Sep 28 14:11:08 UTC 2007


Author: anonym
Date: 2007-09-28 10:11:08 -0400 (Fri, 28 Sep 2007)
New Revision: 11687

Added:
   incognito/trunk/arch/x86/overlay/run-usb.bat
Modified:
   incognito/trunk/arch/x86/overlay/run.bat
   incognito/trunk/root_overlay/usr/sbin/create-usb
Log:
Added support for running incognito through qemu from usb. 


Added: incognito/trunk/arch/x86/overlay/run-usb.bat
===================================================================
--- incognito/trunk/arch/x86/overlay/run-usb.bat	                        (rev 0)
+++ incognito/trunk/arch/x86/overlay/run-usb.bat	2007-09-28 14:11:08 UTC (rev 11687)
@@ -0,0 +1,22 @@
+ at echo off
+echo.
+echo Running Incognito CD/USB in a virtual PC.
+echo.
+echo Defaulting to English locale and keyboard.
+echo.
+echo Type CTRL-ALT-F to toggle fullscreen mode.
+echo.
+echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+echo !!                                                                           !!
+echo !! BEWARE! While running Incognito USB from within Microsoft Windows any     !!
+echo !! changes made to the user home (e.g. new settings, new files) will not be  !!
+echo !! persistant between boots! In other words, any changes made during this    !!
+echo !! session will be lost when shutting down, just like when running from the  !!
+echo !! liveCD. Note, however, that changes made to the user home in the past     !!
+echo !! will be present now.                                                      !!
+echo !!                                                                           !!
+echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
+echo.
+
+set DRIVE=%CD:~0,1%
+start /B %DRIVE%:\qemu\qemu.exe -m 256M -localtime -usb -L %DRIVE%://qemu -hda fat:%DRIVE%:\ -kernel %DRIVE%:\syslinux\gentoo -initrd %DRIVE%:\syslinux\gentoo.igz -append "root=/dev/ram0 init=/linuxrc  looptype=squashfs loop=/image.squashfs cdroot vga=791 splash=silent,theme:livecd-2006.1 CONSOLE=/dev/tty1 acpi=on quiet dokeymap"


Property changes on: incognito/trunk/arch/x86/overlay/run-usb.bat
___________________________________________________________________
Name: svn:executable
   + *

Modified: incognito/trunk/arch/x86/overlay/run.bat
===================================================================
--- incognito/trunk/arch/x86/overlay/run.bat	2007-09-28 13:35:44 UTC (rev 11686)
+++ incognito/trunk/arch/x86/overlay/run.bat	2007-09-28 14:11:08 UTC (rev 11687)
@@ -1,9 +1,9 @@
 @echo off
-echo .
+echo.
 echo Running Incognito CD/USB in a virtual PC.
-echo .
+echo.
 echo Type CTRL-ALT-F to toggle fullscreen mode.
-echo .
+echo.
 
 set DRIVE=%CD:~0,1%
 start /B %DRIVE%:\qemu\qemu.exe -m 256M -localtime -usb -L %DRIVE%://qemu -cdrom //./%DRIVE%: -boot d

Modified: incognito/trunk/root_overlay/usr/sbin/create-usb
===================================================================
--- incognito/trunk/root_overlay/usr/sbin/create-usb	2007-09-28 13:35:44 UTC (rev 11686)
+++ incognito/trunk/root_overlay/usr/sbin/create-usb	2007-09-28 14:11:08 UTC (rev 11687)
@@ -123,7 +123,7 @@
 # Required files
 IMAGE="image.squashfs"
 REQUIRED_FILES="isolinux/isolinux.cfg isolinux/vesamenu.c32 isolinux/splash.png isolinux/gentoo isolinux/gentoo.igz ${IMAGE}"
-EXCLUDE="System.map-gentoo|isolinux.bin|boot.cat|kernels.msg|qemu"
+EXCLUDE="System.map-gentoo|isolinux.bin|boot.cat|kernels.msg|run.bat"
 COPY_FILES=$( find ${MEDIAROOT} ! -type d | egrep -v "$EXCLUDE" | sed "s|${MEDIAROOT}/||g" )
 DIRS=$( find ${MEDIAROOT} -type d | egrep -v "$EXCLUDE" | sed "s|${MEDIAROOT}||g" | sed "s|isolinux|syslinux|g" )
 
@@ -224,6 +224,9 @@
     exit 1
 fi
 
+# Swithc to USB adapted batch file for booting with qemu
+mv -f ${MTPT}/run-usb.bat ${MTPT}/run.bat
+
 # Unmount the drive
 ( echo 90 ; echo 90 ; umount -v "${MTPT}" ) | ${DIALOG} --progress "Completing USB file copy" 0 ${DEFAULT_WIDTH}
 rmdir "${MTPT}"



More information about the tor-commits mailing list