From djmaecki@stud4.tuwien.ac.at Wed Aug 27 19:34:34 2003 Received: from stud4.tuwien.ac.at ([193.170.75.21] ident=root) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 19s4Bm-0008H7-00 for ; Wed, 27 Aug 2003 19:34:34 +0200 Received: from marvin (v208-157.vps.tuwien.ac.at [128.131.208.157]) by stud4.tuwien.ac.at (8.9.3 (PHNE_26304)/8.9.3) with ESMTP id TAA06050 for ; Wed, 27 Aug 2003 19:34:33 +0200 (METDST) Received: from djmaecki by marvin with local (Exim 3.36 #1 (Debian)) id 19s4Bk-0005me-00 for ; Wed, 27 Aug 2003 19:34:32 +0200 Date: Wed, 27 Aug 2003 19:34:32 +0200 From: Thomas Krennwallner To: bootcd-user Message-ID: <20030827173429.GA22212@ull.at> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline Organization: Vienna University of Technology X-GPG-Fingerprint: 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B X-GPG-Key: http://bigfish.ull.at/~djmaecki/krennwallner.gpg.asc X-Accept-Language: en,de X-Operating-System: Debian GNU/Linux User-Agent: Mutt/1.5.4i Subject: [Bootcd-user] Test Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Test! --=20 .''`. Obviously we do not want to leave zombies around. - W. R. Stevens : :' : Thomas Krennwallner `. `'` 1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B `- http://bigfish.ull.at/~djmaecki/ --UugvWAfsgieZRqgk Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQE/TOul/1hOWWeh2nsRAjsAAJ0SXLwJsAu6BBk5QHwCEFbtYtfeFwCghHTO il1QZ7p8KQLfI+trU1onhtk= =WkyO -----END PGP SIGNATURE----- --UugvWAfsgieZRqgk-- From bernd.schumacher@hp.com Mon Sep 29 14:36:17 2003 Received: from bbnrelint01.net.external.hp.com ([192.6.76.88]) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1A3xGD-0001AR-00 for ; Mon, 29 Sep 2003 14:36:17 +0200 Received: from eiach.bbn.hp.com (eiach.bbn.hp.com [15.140.168.10]) by bbnrelint01.net.external.hp.com (Postfix) with ESMTP id 3702E37D58; Mon, 29 Sep 2003 14:32:28 +0200 (CEST) Received: by eiach.bbn.hp.com with Internet Mail Service (5.5.2655.55) id ; Mon, 29 Sep 2003 14:36:17 +0200 Message-ID: <615A249B783CD41192F400D0B747AC860616572C@hesse.bbn.hp.com> From: "SCHUMACHER,BERND (HP-Germany,ex1)" To: "'robs@multiplayer.it'" , "'bootcd-user@lists.alioth.debian.org'" Date: Mon, 29 Sep 2003 14:36:14 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2655.55) Content-Type: text/plain; charset="iso-8859-1" Subject: [Bootcd-user] FW: bootcd and different cdrom devices Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: Hi Roberto, thank you for your mail. I am in the office for the first day now after vacation. It will take some time, until I can answer your quetion. But I will forward your mail to the bootcd-user list now, to make sure it will be answered. Regards Bernd -----Original Message----- From: Roberto Sebastiano [mailto:robs@multiplayer.it] Sent: Samstag, 30. August 2003 17:44 To: bernd.schumacher@hp.com Subject: bootcd and different cdrom devices Hi, After building a bootcd with bootcdwrite (latest debian unstable version, 2.34) with the cdrecorder /dev/hdc, if I try to boot the cd on a computer that has the cd reader on /dev/[something different than hdc] I get a kernel panic (unable to mount rootfs) Any workaround ? Cheers, -- Roberto Sebastiano From bernd.schumacher@hp.com Mon Sep 29 14:26:23 2003 Received: from bbnrelint01.net.external.hp.com ([192.6.76.88]) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1A3x6c-00014V-00 for ; Mon, 29 Sep 2003 14:26:22 +0200 Received: from isar.bbn.hp.com (isar.bbn.hp.com [15.140.168.13]) by bbnrelint01.net.external.hp.com (Postfix) with ESMTP id 21FF037DAB; Mon, 29 Sep 2003 14:22:36 +0200 (CEST) Received: by isar.bbn.hp.com with Internet Mail Service (5.5.2655.55) id ; Mon, 29 Sep 2003 14:26:23 +0200 Message-ID: <615A249B783CD41192F400D0B747AC860616572B@hesse.bbn.hp.com> From: "SCHUMACHER,BERND (HP-Germany,ex1)" To: "'bootcd-user@lists.alioth.debian.org'" , "'klhaung@palm208.nchc.org.tw'" Date: Mon, 29 Sep 2003 14:26:19 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2655.55) Content-Type: multipart/mixed; boundary="----_=_NextPart_000_01C38684.E2ADEC80" Subject: [Bootcd-user] FW: cloop & bootcd Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C38684.E2ADEC80 Content-Type: text/plain; charset="iso-8859-1" Hello Blake, thank you for your mail. I am in the office for the first day now after vacation. It will take some time until I can try your changes. But I will forward your mail to the bootcd-user list now to make sure it will be tried. Regards Bernd -----Original Message----- From: klhaung@palm208.nchc.org.tw [mailto:klhaung@palm208.nchc.org.tw] Sent: Donnerstag, 25. September 2003 02:49 To: bernd.schumacher@hp.com Subject: cloop & bootcd hello, My name is Blake. I am working on a project, named DRBL (http://drbl.nchc.org.tw, http://drbl.sf.net), and use your bootcd to create the installation CD. Thank you for your bootcd that help us to create CD quickly and easily. I had added one new funcationality that use Knopper's cloop to compress the image. Attached are the files I modified. I hope it is useful. Best Regards, Blake ------_=_NextPart_000_01C38684.E2ADEC80 Content-Type: text/plain; name="bootcdwrite" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="bootcdwrite" #!/bin/sh # # bootcdwrite=20 # isoneword() { [ $(echo "$*" | wc -w) -eq 1 ] && return 0 return 1 } #for i in "a b" "a" "a #b"; do #if isoneword "$i"; then echo "<$i> ok"; else echo "<$i> nok"; fi #done #exit 1 cleanup() { echo "--- Cleanup ---" | tee -a $ERRLOG # Be sure that VAR and SRCDISK have no spaces=20 # to not accidently remove anything (for example VAR=3D"/ /var") if ! isoneword "$VAR"; then echo "Error in VAR <$VAR>" >&2 exit 1 fi if ! isoneword "$SRCDISK"; then echo "Error in SRCDISK <$SRCDISK>" >&2 exit 1 fi rm -f "$VAR/cdimage" rm -rf "$VAR/input_dir" rm -rf "$VAR/compressed_dir" rm -rf "$VAR/cloop" rm -rf "$VAR/cloop/isolinux" umount "$VAR/mnt" 2>/dev/null [ -d $VAR/mnt ] && rmdir "$VAR/mnt" # do not use "rm -r $VAR" rm -f "$ERRLOG.tmp" rm -rf "$CHANGES" "$VAR/ram1" "$VAR/ram2" # Blake, 2003/09/09 # $VAR/cloop always exists, so rmdir $VAR is not working .. #[ -d $VAR -a ! -f $VAR/cdimage.iso ] && rmdir "$VAR" } oneline() { if [ "$*" ]; then echo "$*" else cat fi | awk '{printf("%s ",$1)} END {printf("\n")}' | sed "s/ *$//" } # df_file - How much free space has the filesystem on which file $1 = resides ? df_file() { df -k | awk '{printf("%s %s\n",$4,$6)}' | while read size filesys do if [ "`echo $1 | grep ^$filesys`" ]; then namelen=3D`echo $filesys | wc -c`=20 echo "$namelen $filesys $size" fi done | sort -n | tail -1 | awk '{print $3}' } # p - simplify path=20 p() { ERR=3D0 for i in $*; do if [ -d $i ]; then ( cd $i; /bin/pwd ) elif [ -f $i ]; then ( cd $(dirname $i); echo "$(/bin/pwd)/$(basename $i)" ) else echo "$i does not exist." >> $ERRLOG ERR=3D1 continue fi done | oneline return $ERR } # example:=20 #echo "p ////home/../etc/passwd //usr//lib// -> /etc/passwd /usr/lib = =3D" #echo "$(p ////home/../etc/passwd //usr/lib//)" #exit 0 # ex_proc - exclude SRCDI/proc ex_proc() { for i in $*; do if [ "$(p $i)" =3D "$SRCDISK" ]; then find $SRCDISK -maxdepth 1 |=20 grep -v -e "^$SRCDISK$" -e "^$SRCDI/proc$" else p $i fi done | oneline } #SRCDISK=3D"/"; SRCDI=3D"" #echo "SRCDISK=3D/; ex_proc / -> /home /etc /bin ... (without /proc)" #ex_proc / #echo "SRCDISK=3D/; ex_proc /tmp /etc -> /tmp /etc" #ex_proc /tmp /etc #exit 0 # du_dir - How much space do given dirs need togehter du_dir() { LIST1=3D"$(for i in $(p $*); do echo $i; done | sort)" LAST=3D""; LIST2=3D"" for i in $LIST1; do if [ "$LAST" ]; then if [ "$LAST" =3D "/" ]; then=20 [ "$(echo "$i" | grep "^/")" ] && i=3D"" else [ "$(echo "$i" | grep "^$LAST\>")" ] && i=3D"" fi fi if [ "$i" ]; then LIST2=3D"$LIST2 $i" LAST=3D"$i" fi done LIST3=3D$(ex_proc "$LIST2") echo "du -klsc $LIST3" >> $ERRLOG du -klsc $LIST3 | tee -a $ERRLOG | tail -1 | awk '{print $1}' } #ERRLOG=3D/var/log/errlog #echo "du_dir /etc; du_dir /tmp; du_dir /etc /tmp -> A + B =3D C" #du_dir /etc; du_dir /tmp; du_dir /etc /tmp #exit 0 #echo "du_dir /etc; du_dir /etc /etc/network -> A =3D B" #du_dir /etc; du_dir /etc /etc/network #exit 0 trapfunc() { echo "trap" >> $ERRLOG trap "" EXIT SIGINT # Ignore Traps cleanup exit 1 } mk_grep() { if [ "$*" ]; then echo "$*" |=20 sed 's/\(^\| \)*\([^ ]*\)/-e ^\2 /g' | # Insert all "-e" sed "s/[[:space:]]*$//" | # Delete trailing spaces sed "s/^/grep -v /" # Insert "grep -v" else echo "cat" fi } #echo "mk_grep /usr/lib /usr/share -> grep -v -e ^/usr/lib\> -e = ^/usr/share\>" #echo "<$(mk_grep /usr/lib /usr/share)>" #echo "mk_grep "" -> cat" #echo "<$(mk_grep "")>" #exit 0 # #t=3D$(mk_grep /x) #echo "t=3D<$t>" #echo "a/x/b: $(echo "a/x/b" | $t)" #echo "/xb: $(echo "/xb" | $t)" #echo "/x/b: $(echo "/xb" | $t)" #exit 0 # chnglist [-add_ro] [-no_mnt] # -add_ro =3D add ".ro" to directory following # -no_mnt =3D path without # -rel =3D start without / chnglist() { ADD_RO=3D"" NO_MNT=3D"" REL=3D"" OPT=3D"1" while [ "$OPT" ]; do if [ "$1" =3D "-no_mnt" ]; then NO_MNT=3D"1" shift elif [ "$1" =3D "-add_ro" ]; then ADD_RO=3D"1" shift elif [ "$1" =3D "-rel" ]; then REL=3D"1" shift else OPT=3D"" fi done [ $# -ne 2 ] && err "Internal Error calling Function chnglist" =20 S=3D"$1"; [ "$S" =3D "/" ] && S=3D"" echo " $2" | if [ "$ADD_RO" ]; then if [ "$NO_MNT" ]; then sed "s|[[:space:]]$S/\([^/]*\)\>| \1.ro|g" | sed = "s/[[:space:]]*//" else sed "s|[[:space:]]$S\(/[^/]*\)\>| $S\1.ro|g" | sed = "s/[[:space:]]*//" fi else if [ "$NO_MNT" ]; then sed "s|[[:space:]]$S/\([^/]*\)\>| \1|g" else cat fi fi | =20 sed 's|[^[:graph:]]/\+\([[:graph:]]\+\)| \1|g' | # without leading / if [ "$REL" ]; then cat=20 else sed 's|\([[:graph:]]\+\)|/\1|g' fi | sed "s/[[:space:]]*//" # remove leading space } #echo 'chnglist -add_ro "/" "/etc/a /etc/b /root" -> /etc.ro/a = /etc/.ro/b /root.ro' #echo " <$(chnglist -add_ro "/" "/etc/a /etc/b /root")>" #echo 'chnglist -add_ro "/mnt" "/mnt/etc/a /mnt/root" -> /mnt/etc.ro/a = /mnt/root.ro' #echo " <$(chnglist -add_ro "/mnt" "/mnt/etc/a /mnt/root")>" #echo 'chnglist -add_ro -no_mnt "/" "/home/a /root" -> /home.ro/a = /root.ro' #echo " <$(chnglist -add_ro -no_mnt "/" "/home/a /root")>" #echo 'chnglist -add_ro -no_mnt "/mnt" "/mnt/home/b /mnt/root" -> = /home.ro/b /root.ro' #echo " <$(chnglist -add_ro -no_mnt "/mnt" "/mnt/home/b /mnt/root")>" #echo 'chnglist -no_mnt "/" "/etc/a ///etc/b /root" -> /etc/a /etc/b = /root' #echo " <$(chnglist -no_mnt "/" "/etc/a ///etc/b /root")>" #echo 'chnglist -no_mnt "/mnt" "/mnt/etc/a /mnt/root" -> /etc/a /root' #echo " <$(chnglist -no_mnt "/mnt" "/mnt/etc/a /mnt/root")>" #echo 'chnglist -rel -no_mnt "/" "/etc/a /etc/b /root" -> etc/a etc/b = root' #echo " <$(chnglist -rel -no_mnt "/" "/etc/a /etc/b /root")>" #echo 'chnglist -no_mnt -rel "/mnt" "/mnt/etc/a /mnt/root" -> etc/a = root' #echo " <$(chnglist -no_mnt -rel "/mnt" "/mnt/etc/a /mnt/root")>" #exit 0 # mk_bootcdram mk_bootcdram() { CHNG=3D$(chnglist -add_ro -no_mnt "$1" "$2") CHNGGREP=3D$(mk_grep $CHNG) cat /usr/share/bootcd/S12bootcdram.sh |=20 sed "s||$CHNG|" | sed "s||$CHNGGREP|"=20 } #echo 'mk_bootcdram "/mnt" "/mnt/root /mnt/home/a" -> skript with:' #echo '...| grep -v -e ^/root.ro -e ^/home.ro/a |...' #mk_bootcdram "/mnt" "/mnt/root /mnt/home/a" #exit 0 #echo 'mk_bootcdram "/" "/root /home/a" -> skript with:' #echo '...| grep -v -e ^/root.ro -e ^/home.ro/a |...' #mk_bootcdram "/" "/root /home/a" #exit 0 #echo 'mk_bootcdram "/" "" -> skript with: "...| cat |..." and without = "ln -s"' #mk_bootcdram "/" "" #exit 0 do_syslinux() { if [ "$SYSLINUX_SAVE" =3D "yes" ]; then SYSLINUX_SAVE=3D"-s" elif [ "$SYSLINUX_SAVE" =3D "no" ]; then SYSLINUX_SAVE=3D"" else SYSLINUX_SAVE=3D"" warn 'SYSLINUX_SAVE is not defined as "yes" or "no".' \ 'It will be treated as "no".' fi =20 # Build cdboot.img=20 # do not use /usr/lib/syslinux/img1440k.gz, to be able to use other # syslinux options # using 1743k ignore "^1440+0 records" run dd bs=3D1024 count=3D1440 if=3D/dev/zero = of=3D/$CHANGES/cdboot.img ignore "^mkfs.vfat" # mkfs.vfat 2.8 (28 Feb 2001) run mkfs -t vfat /$CHANGES/cdboot.img run syslinux $SYSLINUX_SAVE /$CHANGES/cdboot.img run mount -o loop /$CHANGES/cdboot.img $VAR/mnt -t msdos run cp $KERNEL $VAR/mnt/vmlinuz.img run "cat <$VAR/mnt/syslinux.cfg default linux timeout 50 prompt 1 label linux kernel vmlinuz.img append root=3D$CDDEV1 ramdisk_size=3D$RAMDISK_SIZE $APPEND END" for i in $CDDEVR; do echo "label $(basename $i)" echo " kernel vmlinuz.img" echo " append root=3D$i ramdisk_size=3D$RAMDISK_SIZE $APPEND" done >>$VAR/mnt/syslinux.cfg if [ "$DISPLAY" ]; then=20 run "cat <>$VAR/mnt/syslinux.cfg display display.txt END" run cp $DISPLAY $VAR/mnt/display.txt fi run umount $VAR/mnt losetup -d /dev/loop0 2>/dev/null } do_isolinux() { run mkdir /$CHANGES/isolinux run cp /usr/lib/syslinux/isolinux.bin /$CHANGES/isolinux run cp $KERNEL /$CHANGES/isolinux/vmlinuz LILOINITRD=3D"" if [ "$INITRD" ]; then=20 run cp $INITRD /$CHANGES/isolinux/initrd LILOINITRD=3D"initrd=3D/isolinux/initrd" fi run "cat </$CHANGES/isolinux/isolinux.cfg default linux timeout 50 prompt 1 label linux kernel /isolinux/vmlinuz append $LILOINITRD root=3D$CDDEV1 ramdisk_size=3D$RAMDISK_SIZE = $APPEND END" for i in $CDDEVR; do echo "label $(basename $i)" echo " kernel /isolinux/vmlinuz" echo " append $LILOINITRD root=3D$i ramdisk_size=3D$RAMDISK_SIZE = $APPEND" done >>$CHANGES/isolinux/isolinux.cfg if [ "$DISPLAY" ]; then=20 run "cat <>/$CHANGES/isolinux/isolinux.cfg display display.txt END" run cp $DISPLAY /$CHANGES/isolinux/display.txt fi # add by Blake, Kuo-Lien Huang # copy LOGO to $CHANGES/isolinux if [ "LOGO" ]; then for logo in `echo $LOGO` do name=3D${logo%%.*} sub=3D${logo#$name.} case "$sub" in "png") pngtopnm $logo | ppmtolss16 > /$CHANGES/isolinux/$name.lss ;; "pnm") ppmtolss16 < $logo > /$CHANGES/isolinux/$name.lss ;; *) run cp $logo /$CHANGES/isolinux/ ;; esac done fi } blank_cd() { echo "--- Blanking CD ---" | tee -a $ERRLOG ignore "Drive needs to reload the media to return to proper status" ignore "Copyright (C)" ignore "^scsidev:" ignore "^scsibus:" ignore "^Using libscg version" ignore "^Device type" ignore "^Version" ignore "^Response Format" ignore "^Capabilities" stdout "^Vendor_info" stdout "^Identifikation" stdout "^Revision" ignore "^Device seems to be:" ignore "^Using" ignore "^Driver flags" stdout "^Starting to write CD/DVD" ignore "^Last chance to quit" ignore "^Blocks total: .* Blocks current: .* Blocks remaining: .*" ignore "^Linux sg driver version:" stdout "^Blanking" ignore "^Supported modes:" if [ "$BLANKING" =3D "auto" ]; then stdout "Cannot blank disk" ignore ".*" fi run cdrecord blank=3Dfast speed=3D$CDSPEED dev=3D$CDSCSI } write_cd() { echo "--- Writing CD ---" | tee -a $ERRLOG ignore "Copyright (C)" ignore "^Vendor_info" ignore "^Identifikation" ignore "^Revision" ignore "^FIFO size" ignore "^Linux sg driver version:" ignore "^Lout start:" ignore "^Waiting for reader process to fill input buffer" stdout "^Starting new track at sector" stdout ".* of .* MB written" stdout "^Writing..time:" stdout "^Fixating" ignore "fifo had .* puts and .* gets" ignore "fifo was 0 times empty and .* times full" ignore "^Device seems to be:" ignore "^Using" ignore "^Driver flags" ignore "^Drive buf size :" ignore "^Total size:" ignore "^Current Secsize:" ignore "^ATIP info from disk:" ignore "^..Indicated writing power:" ignore "^..Reference speed:" ignore "^..Is not unrestricted" ignore "^..Is erasable" ignore "^..Is not erasable" ignore "^..Disk sub type:" ignore "^..ATIP start of lead in:" ignore "^..ATIP start of lead out:" ignore "^..speed low: .* speed high:" ignore "^..power mult factor:" ignore "^..recommended erase/write power:" ignore "^..A2 values:" ignore "^Disk type:" ignore "^Manuf. index:" ignore "^Manufacturer:" ignore "Blocks total:.*Blocks current:.*Blocks remaining:" ignore "^Starting to write CD/DVD at speed" ignore "^Last chance to quit, starting real write in" ignore "^TOC Type:" ignore "^scsidev:" ignore "^scsibus:" ignore "^atapi:" ignore "^Device type" ignore "^Version" ignore "^Response Format" ignore "^Capabilities" ignore "^Track .*: data .* MB" ignore "^Track .*: Total bytes read/written:" ignore "^Performing OPC..." ignore "^Supported modes:" ignore "^..1T speed low:" ignore "^..2T speed low:" ignore "^..A1 values:" stdout "^Average write speed" stdout "^Min drive buffer fill was" run cdrecord -v -eject speed=3D$CDSPEED dev=3D$CDSCSI $VAR/cdimage } compress_dir() { if [ "$EXCLUDE" -o "$MKISO_NOT" ]; then ZFTREEEX=3D"$(echo $EXCLUDE $MKISO_NOT | sed "s/-x/-e/g")" fi echo "--- Building input_dir for compression ---" | tee -a $ERRLOG run "cd $SRCDISK; rm -rf $VAR/input_dir; mkdir $VAR/input_dir;=20 find $(ex_proc $SRCDISK) | grep -v -e $VAR -e $ERRLOG -e $SRCDI/tmp $ZFTREEEX | sed \"s|^$SRCDI/||\" | cpio --quiet -pdum $VAR/input_dir/" run mv $VAR/input_dir/home $VAR/input_dir/home.ro run mv $VAR/input_dir/root $VAR/input_dir/root.ro run mv $VAR/input_dir/var $VAR/input_dir/var.ro run mv $VAR/input_dir/etc $VAR/input_dir/etc.ro run mv $VAR/input_dir/dev $VAR/input_dir/dev.ro run "cd $CHANGES; find . | cpio --quiet -pdum $VAR/input_dir/" [ "$DEVFS" =3D "yes" ] && run rm -r $VAR/input_dir/dev.ro echo "--- Compressing input_dir to compressed_dir ---" | tee -a = $ERRLOG run "rm -rf $VAR/compressed_dir; mkzftree $VAR/input_dir = $VAR/compressed_dir" run rm -r $VAR/input_dir } mkisofs_ignore() { stdout "Warning: using transparent compression" stdout "The resulting filesystem can only be transparently" stdout "On other operating systems you need to call" stdout "mkzftree by hand to decompress the files" ignore "^Using .* for" ignore "^Total " ignore "estimate finish" ignore "^Path table size" ignore "^Max brk space used" ignore "^$" stdout "^Size of boot image is" stdout "extents written" stdout "Unable to open directory .*/dev/pts" } uncompress_files() { for i in $*; do F=3D"-F" [ -d $VAR/compressed_dir/$i ] && F=3D"" run mkzftree -u $F $VAR/compressed_dir/$i $VAR/uncompress.tmp run rm -rf $VAR/compressed_dir/$i run mv $VAR/uncompress.tmp $VAR/compressed_dir/$i done } cdimage_compressed_isolinux() { compress_dir uncompress_files isolinux mkisofs_ignore run mkisofs -z -R -b isolinux/isolinux.bin -c isolinux/boot.cat \ -o $VAR/cdimage \ -no-emul-boot -boot-load-size 4 -boot-info-table = \ $VAR/compressed_dir run rm -r $VAR/compressed_dir } cdimage_compressed_normal() { compress_dir uncompress_files cdboot.img mkisofs_ignore run mkisofs -z -R -b cdboot.img -c cdboot.catalog -o $VAR/cdimage \ $VAR/compressed_dir run rm -r $VAR/compressed_dir } cdimage_compressed_hppa() { compress_dir uncompress_files /usr/share/palo/iplboot $KERNEL mkisofs_ignore run mkisofs -z -R -o $VAR/cdimage $VAR/compressed_dir run rm -r $VAR/compressed_dir ignore "^palo version " ignore "^ELF32 executable" ignore "^ELF64 executable" ignore "^ipl: addr " ignore "^ ko 0x" ignore "^<0/boot/vmlinux root=3D$CDDEV1 ramdisk_size=3D$RAMDISK_SIZE = $APPEND>" ignore "^<>$" run palo -k $KERNEL \ -f /dev/null \ -b $SRCDI/usr/share/palo/iplboot \ -c \"0/boot/vmlinux root=3D$CDDEV1 ramdisk_size=3D$RAMDISK_SIZE = $APPEND\" \ -C $VAR/cdimage } # modified by Blake, Kuo-Lien Huang for cloop support #cdimage_isolinux() #{ # mkisofs_ignore # run mkisofs $GRAFTPOINTS $MKISO_NOT \ # -R -b isolinux/isolinux.bin -c isolinux/boot.cat -o $VAR/cdimage \ # -no-emul-boot -boot-load-size 4 -boot-info-table \ # -x $SRCDI/proc -x $VAR -x $ERRLOG \ # -x $SRCDI/etc -x $SRCDI/var -x $SRCDI/tmp \ # -x $SRCDI/dev -x $SRCDI/home -x $SRCDI/root $EXCLUDE \ # /=3D$SRCDI/ /=3D$CHANGES \ # /home.ro/=3D$SRCDI/home /root.ro/=3D$SRCDI/root = /var.ro/=3D$SRCDI/var \ # /etc.ro/=3D$SRCDI/etc $MKISODEVFS #} cdimage_isolinux() { mkisofs_ignore if [ "$USE_CLOOP" =3D "no" ]; then run mkisofs $GRAFTPOINTS $MKISO_NOT \ -R -b isolinux/isolinux.bin -c isolinux/boot.cat -o $VAR/cdimage = \ -no-emul-boot -boot-load-size 4 -boot-info-table \ -x $SRCDI/proc -x $VAR -x $ERRLOG \ -x $SRCDI/etc -x $SRCDI/var -x $SRCDI/tmp \ -x $SRCDI/dev -x $SRCDI/home -x $SRCDI/root $EXCLUDE \ /=3D$SRCDI/ /=3D$CHANGES \ /home.ro/=3D$SRCDI/home /root.ro/=3D$SRCDI/root = /var.ro/=3D$SRCDI/var \ /etc.ro/=3D$SRCDI/etc $MKISODEVFS else mkdir -p $SRCDI/initrd ## create compressed fs CLOOPDI=3D$VAR/cloop mkdir -p $CLOOPDI # Blake, 2003/09/09, create CDIMAGE if needed if [ ! -f $CLOOPDI/CDIMAGE ]; then mkisofs $GRAFTPOINTS $MKISO_NOT \ -R \ -x $SRCDI/proc -x $VAR -x $ERRLOG \ -x $SRCDI/etc -x $SRCDI/var -x $SRCDI/tmp \ -x $SRCDI/dev -x $SRCDI/home -x $SRCDI/root $EXCLUDE \ /=3D$SRCDI/ /=3D$CHANGES \ /home.ro/=3D$SRCDI/home /root.ro/=3D$SRCDI/root = /var.ro/=3D$SRCDI/var \ /etc.ro/=3D$SRCDI/etc $MKISODEVFS | \ create_compressed_fs - 65536 > $CLOOPDI/CDIMAGE fi # Blake, 2003/09/24 # Starting from cloop version 1.0, cloop compressed files can be = setup using=20 # the command losetup. MAX loop device is 8, so cloop module can = handle 8=20 # compressed files through 8 different cloop devices. # $CLOOP_DEV_$i for i in 1 2 3 4 5 6 7 do cloop_dev=3D$(eval echo $(echo \$CLOOP_DEV_$i)) cloop_srcdisk=3D$(eval echo $(echo \$CLOOP_SRCDISK_$i)) if [ "$cloop_dev" !=3D "" -a \ "$cloop_srcdisk" !=3D "" -a \ -d "$cloop_srcdisk" ]; then # create CDIMAGE_$1 if needed if [ ! -f $CLOOPDI/CDIMAGE_$i ]; then mkisofs $GRAFTPOINTS $MKISO_NOT \ -R /=3D$cloop_srcdisk | \ create_compressed_fs - 65536 > $CLOOPDI/CDIMAGE_$i fi fi done ## create initrd for cloop initrd=3D"/tmp/initrd.$$" initrdimg=3D`mktemp /tmp/initrd.img.XXXXXX` initrdmnt=3D"/tmp/initrd.mnt.$$" mkdir -p $initrd mkdir -p $initrdmnt mkdir -p $initrd/dev mkdir -p $initrd/etc mkdir -p $initrd/bin mkdir -p $initrd/lib mkdir -p $initrd/lib/modules mkdir -p $initrd/proc mkdir -p $initrd/sysroot mkdir -p $initrd/cdrom ln -s bin $initrd/sbin # busybox BUSYBOX_VERSION=3D"0.60.3" BUSYBOX=3Dbusybox-$BUSYBOX_VERSION BUSYBOX_SOURCE=3Dhttp://www.busybox.net/downloads/$BUSYBOX.tar.bz2 [ -f $BUSYBOX.tar.bz2 ] || wget $BUSYBOX_SOURCE [ -d $BUSYBOX ] || tar xvjf $BUSYBOX.tar.bz2 perl -pi.orig -e 's/^.*(#define = BB_(INSMOD|PIVOT_ROOT|LOSETUP)).*/$1/' $BUSYBOX/Config.h perl -pi.orig -e 's/^(DOSTATIC).*$/$1 =3D true/' $BUSYBOX/Makefile make -C $BUSYBOX install -m 755 $BUSYBOX/busybox $initrd/bin/ ln -s busybox $initrd/bin/sh ln -s busybox $initrd/bin/echo ln -s busybox $initrd/bin/mknod ln -s busybox $initrd/bin/chmod ln -s busybox $initrd/bin/insmod ln -s busybox $initrd/bin/ifconfig ln -s busybox $initrd/bin/route ln -s busybox $initrd/bin/mount ln -s busybox $initrd/bin/pivot_root ln -s busybox $initrd/bin/umount ln -s busybox $initrd/bin/sleep ln -s busybox $initrd/bin/grep ln -s busybox $initrd/bin/[ ln -s busybox $initrd/bin/sed ln -s busybox $initrd/bin/cat ln -s busybox $initrd/bin/cut ln -s busybox $initrd/bin/losetup rm -rf $BUSYBOX # cloop modules and linuxrc cp $CLOOP_O $initrd/lib/modules cat <<-EOF > $initrd/linuxrc #!/bin/sh PATH=3D/sbin:/bin echo Busybox /linuxrc starting echo Mounting /proc filesystem mount -t proc none /proc echo Creating root device mknod /dev/root b 1 0 chmod 700 /dev/root echo 0x100 > /proc/sys/kernel/real-root-dev DEVICES=3D"/dev/hda /dev/hdb /dev/hdc /dev/hdd" for i in \$DEVICES do echo Looking for CDROM in: \$i if mount -t iso9660 -o ro \$i /cdrom >/dev/null 2>&1 then if [ -f /cdrom/CDIMAGE ]; then echo Found CDIMAGE at \$i break fi umount /cdrom fi done echo Inserting modules /sbin/insmod /lib/modules/cloop.o /sbin/losetup /dev/cloop /cdrom/CDIMAGE mount -o ro /dev/cloop /sysroot EOF for i in 1 2 3 4 5 6 7 do cloop_dev=3D$(eval echo $(echo \$CLOOP_DEV_$i)) cloop_srcdisk=3D$(eval echo $(echo \$CLOOP_SRCDISK_$i)) if [ "$cloop_dev" !=3D "" -a "$cloop_srcdisk" !=3D "" ]; then echo "/sbin/losetup /dev/$cloop_dev /cdrom/CDIMAGE_$i" >> = $initrd/linuxrc echo "mount -o ro /dev/$cloop_dev /sysroot/$cloop_srcdisk" >> = $initrd/linuxrc fi done cat <<-EOF >> $initrd/linuxrc if [ -d /sysroot/initrd ]; then echo Unmounting /proc prior to pivot_root umount /proc echo Pivoting root to /sysroot pivot_root /sysroot /sysroot/initrd cd / =20 echo Releasing locks on old dev exec 0/dev/console exec 2>/dev/console else # Failed to mount root: report error and hang echo FATAL ERROR: Failed to mount root filesystem #echo Press Alt-SysRq-B or hit the reset switch to reboot #while : ; do sleep 6000 ; done fi EOF chmod 755 $initrd/linuxrc dd if=3D/dev/zero bs=3D1k of=3D$initrdimg count=3D$((`du -sk = $initrd | cut -f1` * 7 / 6)) 2> /dev/null /sbin/mke2fs -q -F $initrdimg 2> /dev/null mount -o loop $initrdimg $initrdmnt cp -a $initrd/* $initrdmnt/ mknod $initrdmnt/dev/console c 5 1 mknod $initrdmnt/dev/null c 1 3 mknod $initrdmnt/dev/ram b 1 1 mknod $initrdmnt/dev/systty c 4 0 mknod $initrdmnt/dev/random c 1 8 mknod $initrdmnt/dev/urandom c 1 9 for i in 1 2 3 4; do mknod $initrdmnt/dev/tty$i c 4 $i; done mknod $initrdmnt/dev/hda b 3 0 mknod $initrdmnt/dev/hdb b 3 64 mknod $initrdmnt/dev/hdc b 22 0 mknod $initrdmnt/dev/hdd b 22 64 mknod $initrdmnt/dev/sda b 8 0 mknod $initrdmnt/dev/sdb b 8 16 mknod $initrdmnt/dev/cloop b 240 0 for i in 1 2 3 4 5 6 7 do cloop_dev=3D$(eval echo $(echo \$CLOOP_DEV_$i)) if [ "$cloop_dev" !=3D "" ]; then mknod $initrdmnt/dev/$cloop_dev b 240 $i fi done umount -d $initrdmnt gzip -9 -n -c $initrdimg > initrd-cloop.img # cleanup rm -rf $initrd rm -f $initrdimg rmdir $initrdmnt ## do isolinux run mkdir -p /$CLOOPDI/isolinux run cp /usr/lib/syslinux/isolinux.bin /$CLOOPDI/isolinux run cp $KERNEL /$CLOOPDI/isolinux/vmlinuz run mv initrd-cloop.img /$CLOOPDI/isolinux/initrd run "cat </$CLOOPDI/isolinux/isolinux.cfg default linux timeout 50 prompt 1 label linux kernel /isolinux/vmlinuz append initrd=3D/isolinux/initrd root=3D$CDDEV1 = ramdisk_size=3D$RAMDISK_SIZE $APPEND END" for i in $CDDEVR; do echo "label $(basename $i)" echo " kernel /isolinux/vmlinuz" echo " append initrd=3D/isolinux/initrd root=3D$i = ramdisk_size=3D$RAMDISK_SIZE $APPEND" done >>$CLOOPDI/isolinux/isolinux.cfg if [ "$DISPLAY" ]; then run "cat <>/$CLOOPDI/isolinux/isolinux.cfg display display.txt END" run cp $DISPLAY /$CLOOPDI/isolinux/display.txt fi # add by Blake, Kuo-Lien Huang # copy LOGO to $CHANGES/isolinux if [ "LOGO" ]; then for logo in `echo $LOGO` do name=3D${logo%%.*} sub=3D${logo#$name.} case "$sub" in "png") pngtopnm $logo | ppmtolss16 > /$CLOOPDI/isolinux/$name.lss ;; "pnm") ppmtolss16 < $logo > /$CLOOPDI/isolinux/$name.lss ;; *) run cp $logo /$CLOOPDI/isolinux/ ;; esac done fi # create cdimage mkisofs_ignore run mkisofs $GRAFTPOINTS $MKISO_NOT \ -R -b isolinux/isolinux.bin -c isolinux/boot.cat -o $VAR/cdimage = \ -no-emul-boot -boot-load-size 4 -boot-info-table \ /=3D$CLOOPDI fi } cdimage_normal() { mkisofs_ignore run mkisofs $GRAFTPOINTS $MKISO_NOT \ -R -b cdboot.img -c cdboot.catalog -o $VAR/cdimage \ -x $SRCDI/proc -x $VAR -x $ERRLOG \ -x $SRCDI/etc -x $SRCDI/var -x $SRCDI/tmp \ -x $SRCDI/dev -x $SRCDI/home -x $SRCDI/root $EXCLUDE \ /=3D$SRCDI/ /=3D$CHANGES \ /home.ro/=3D$SRCDI/home /root.ro/=3D$SRCDI/root = /var.ro/=3D$SRCDI/var \ /etc.ro/=3D$SRCDI/etc $MKISODEVFS } cdimage_hppa() { mkisofs_ignore run mkisofs $GRAFTPOINTS $MKISO_NOT \ -R -o $VAR/cdimage \ -x $SRCDI/proc -x $VAR -x $ERRLOG \ -x $SRCDI/etc -x $SRCDI/var -x $SRCDI/tmp \ -x $SRCDI/dev -x $SRCDI/home -x $SRCDI/root $EXCLUDE \ /=3D$SRCDI/ /=3D$CHANGES \ /home.ro/=3D$SRCDI/home /root.ro/=3D$SRCDI/root = /var.ro/=3D$SRCDI/var \ /etc.ro/=3D$SRCDI/etc $MKISODEVFS ignore "^palo version " ignore "^ELF32 executable" ignore "^ELF64 executable" ignore "^ipl: addr " ignore "^ ko 0x" ignore "^<0/boot/vmlinux root=3D$CDDEV1 ramdisk_size=3D$RAMDISK_SIZE = $APPEND>" ignore "^<>$" run palo -k $KERNEL \ -f /dev/null \ -b $SRCDI/usr/share/palo/iplboot \ -c \"0/boot/vmlinux root=3D$CDDEV1 ramdisk_size=3D$RAMDISK_SIZE = $APPEND\" \ -C $VAR/cdimage } CONFDIR=3D"/etc/bootcd" ONLY_FLOPPY=3D"" while [ $# -gt 0 ]; do if [ "$1" =3D "-only_floppy" ]; then shift ONLY_FLOPPY=3D"yes" elif [ "$1" =3D "-c" -a $# -gt 1 ]; then CONFDIR=3D$2 shift 2 else echo "Usage: bootcdwrite [-only_floppy] [-c ]" echo " use man bootcdwrite to get help" echo " and see $CONFDIR/bootcdwrite.conf" exit 1 fi done if [ "`whoami`" !=3D "root" ]; then echo "You have to run bootcdwrite as root" exit 1 fi if [ ! -f $CONFDIR/bootcdwrite.conf ]; then echo "No file $CONFDIR/bootcdwrite.conf" >&2 exit 1 fi CONFVARS=3D"SRCDISK KERNEL APPEND NOT_TO_CD NOT_TO_RAM SSHHOSTKEY = RAMDISK_SIZE \ ERRLOG VAR DO_CHECK BLANKING CDSCSI CDSPEED CDDEV DISPLAY FASTBOOT \ FLOPPY_RUNTIME_DEV FLOPPY_CREATE_DEV BOOTFLOPPY BOOT_ONLY_WITH_FLOPPY \ CLEAN_VAR ISO_ONLY SYSLINUX_SAVE ISOLINUX ARCH INITRD DEVFS TO_FSTAB = TYP COMPRESS" unset $CONFVARS . $CONFDIR/bootcdwrite.conf . /usr/share/bootcd/bootcd-run.lib . /usr/share/bootcd/bootcd-check.lib for i in $CONFVARS; do [ "`set | grep ^$i=3D`" ] || err "$i is not set in = $CONFDIR/bootcdwrite.conf" done if [ "$TYP" =3D "DVDPLUS" ]; then PROBLEM=3D"You have defined TYP=3DDVDPLUS, but = /usr/share/bootcd/bootcd-dvdplus.lib is not installed. Please apt-get bootcd-dvdplus." [ -f /usr/share/bootcd/bootcd-dvdplus.lib ] || err "$PROBLEM" . /usr/share/bootcd/bootcd-dvdplus.lib fi if [ "$ARCH" =3D "HPPA" ]; then PROBLEM=3D"You have defined ARCH=3DHPPA, but = /usr/share/bootcd/bootcd-hppa.lib is=20 not installed. Please apt-get bootcd-hppa." [ -f /usr/share/bootcd/bootcd-hppa.lib ] || err "$PROBLEM" . /usr/share/bootcd/bootcd-hppa.lib fi CHANGES=3D$VAR/changes if [ -e $VAR/cdimage.iso ] ; then echo "The image destination $VAR/cdimage.iso exists." | tee -a = $ERRLOG echo "Delete $VAR/cdimage.iso and try again!" | tee -a $ERRLOG exit 1 fi trap trapfunc EXIT SIGINT date "+--- $0 %d.%m.%Y ---" > $ERRLOG echo "To see full output: tail -f $ERRLOG" | tee -a $ERRLOG cleanup # Write Debug Information to Logfile VERSION=3D$(COLUMNS=3D200 dpkg -l bootcd | tail -1 | awk '{print $3}') echo "bootcd Version $VERSION" >>$ERRLOG for i in $CONFVARS; do eval "echo $i \$$i" >>$ERRLOG=20 done # # marked by Blake,Kuo-Lien Huang # do not warn user # #warn_user check_config # We have to get the sizes (get_sizes) before before the final=20 # check (check_sizes), because some variables with the value "auto" # need the information to become either "yes" or "no". #get_sizes check_arch check_file_rc check_compress check_not2ram check_cdfiles check_kernel check_initrd [ "$ARCH" =3D "HPPA" ] && check_hppa # modified by Blake, Kuo-Lien Huang for cloop support #check_sizes if [ "$USE_CLOOP" =3D "no" ]; then check_sizes else if [ "$(which create_compressed_fs)" =3D "" -o \ "$CLOOP_O" =3D "" -o \ ! -f $CLOOP_O ]; then echo -n "USE_CLOOP is not allowed.. (e)xit or (d)isable? " while read ans do if [ "$ans" =3D "e" -o "$ans" =3D "E" ]; then=20 exit 0 elif [ "$ans" =3D "d" -o "$ans" =3D "D" ]; then USE_CLOOP=3D"no"; break; else echo -n "USE_CLOOP is not allowed.. (e)xit or (d)isable? " fi done fi fi echo "--- Building Modifications ---" | tee -a $ERRLOG run mkdir -p $VAR/mnt $CHANGES/proc $CHANGES/ram1 $CHANGES/ram2 # at Boottime /etc -> /ram1/etc -> /etc.ro for i in etc tmp dev home root; do run ln -sf /$i.ro $CHANGES/ram1/$i; = done for i in var; do run ln -sf /$i.ro $CHANGES/ram2/$i; done for i in etc tmp dev home root; do run ln -sf /ram1/$i $CHANGES/$i; = done for i in var; do run ln -sf /ram2/$i $CHANGES/$i; done if [ "$CLEAN_VAR" =3D "yes" -a ! "$ONLY_FLOPPY" ]; then run apt-get clean # to clear some diskspace in /var=20 fi # build etc.ro var.ro dev.ro tmp.ro home.ro root.ro run mkdir $CHANGES/tmp.ro run chmod 777 $CHANGES/tmp.ro run mkdir $CHANGES/etc.ro run chmod 755 $CHANGES/etc.ro run mkdir $CHANGES/dev.ro run chmod 755 $CHANGES/dev.ro run ln -sf /proc/mounts $CHANGES/etc.ro/mtab mkdir -p $CHANGES/etc.ro/rcS.d run "mk_bootcdram \"$SRCDISK\" \"$NOT_TO_RAM\" = >$CHANGES/etc.ro/rcS.d/S12bootcdram.sh" run "chmod 755 $CHANGES/etc.ro/rcS.d/S12bootcdram.sh" run mkdir -p $CHANGES/usr/bin $CHANGES/etc.ro/bootcd = $CHANGES/usr/share/bootcd run cp /usr/share/bootcd/bootcd2disk $CHANGES/usr/bin/ run cp /usr/share/bootcd/bootcdflopcp $CHANGES/usr/bin/ run "cat /usr/share/bootcd/S13bootcdflop.sh | sed \"s|^\(BOOT_ONLY_WITH_FLOPPY=3D\).*$|\1$BOOT_ONLY_WITH_FLOPPY|\" = | sed \"s|^FLOPPY=3D.*$|FLOPPY=3D$FLOPPY_RUNTIME_DEV|\" | cat >$CHANGES/etc.ro/rcS.d/S13bootcdflop.sh" run chmod 755 $CHANGES/etc.ro/rcS.d/S13bootcdflop.sh run cp /usr/share/bootcd/bootcd2disk.conf $CHANGES/etc.ro/bootcd/ run cp /usr/share/bootcd/bootcd-run.lib $CHANGES/usr/share/bootcd/ echo "KERNEL=3D$REL_KERNEL" >$CHANGES/etc.ro/bootcd/thisbootcd.conf echo "INITRD=3D$REL_INITRD" >>$CHANGES/etc.ro/bootcd/thisbootcd.conf run "cat < $CHANGES/etc.ro/fstab $CDDEV1 / iso9660 defaults,ro 0 1 proc /proc proc defaults 0 0 $TO_FSTAB END" if [ ! "$ONLY_FLOPPY" ]; then if [ "$SSHHOSTKEY" =3D=3D "yes" ]; then # each CD gets a unique hostkey" # create_host_keys will only recreate keys, if they already exist. # So keys will be touched in new dir, if they existed in old dir. for i in ssh_host_key ssh_host_rsa_key ssh_host_dsa_key do if [ -f $SRCDI/etc/ssh/$i ]; then run mkdir -p $CHANGES/etc.ro/ssh touch $CHANGES/etc.ro/ssh/$i fi done create_host_keys $CHANGES/etc.ro/ssh elif [ "$SSHHOSTKEY" !=3D "no" ]; then warn 'SSHHOSTKEY is not defined as "yes" or "no".' \ 'It will be treated as "no".' fi fi if [ "$ARCH" !=3D "HPPA" -a "$ISOLINUX" =3D "no" ]; then do_syslinux fi # modified by Blake, Kuo-Lien Huang for cloop support #if [ "$ISOLINUX" !=3D "no" ]; then # do_isolinux #fi if [ "$ISOLINUX" !=3D "no" -a "$USE_CLOOP" =3D "no" ]; then do_isolinux fi # only create fastboot file, if there are no additional mount points if [ ! "$TO_FSTAB" ]; then run touch $CHANGES/fastboot fi if [ "$FASTBOOT" =3D=3D "yes" ]; then echo "--- Creating /ram[1|2].cpio.gz for FASTBOOT ---" | tee -a = $ERRLOG run mkdir $VAR/ram1 mkdir $VAR/ram1/tmp; chmod 777 $VAR/ram1/tmp FG=3D$(mk_grep $(chnglist -rel -no_mnt "$SRCDISK" "$NOT_TO_RAM = $NOT_TO_CD")) echo "FG (FASTBOOT GREP) =3D <$FG>" >>$ERRLOG if [ "$DEVFS" =3D "yes" ]; then=20 CPIODIR=3D"home root etc" else CPIODIR=3D"home root etc dev" fi for i in $CPIODIR; do=20 run "cd $SRCDISK; find $i | $FG | cpio --quiet -pdum $VAR/ram1" if [ -d $CHANGES/$i.ro ]; then=20 run "cd $CHANGES/$i.ro find . |=20 cut -c3- | grep -v '^$' | # ./file -> file $FG | cpio --quiet -pdum $VAR/ram1/$i" fi done ignore "cpio: .*: truncating inode number" run "cd $VAR/ram1 find . | cpio --quiet -o | gzip -c -9 >$CHANGES/ram1.cpio.gz" run "rm -r $VAR/ram1" =20 run mkdir $VAR/ram2 run "cd $SRCDISK find var -type d | $FG | cpio --quiet -pdum $VAR/ram2" ignore "cpio: .*: truncating inode number" run "cd $VAR/ram2 find . | cpio --quiet -o | gzip -c -9 >$CHANGES/ram2.cpio.gz" run "rm -r $VAR/ram2" elif [ "$FASTBOOT" !=3D "no" ]; then warn 'FASTBOOT is not defined as "yes" or "no".' \ 'It will be treated as "no".' fi if [ ! "$ONLY_FLOPPY" ]; then echo "--- Creating CD-Image ---" | tee -a $ERRLOG =20 MKISO_NOT=3D"" if [ "$NOT_TO_CD" !=3D "" ]; then MKISO_NOT=3D`echo "$NOT_TO_CD" | sed "s/\(^\| \)*\([^ ]*\)/-x \2 = /g"` echo "NOT_TO_CD arguments for mkisofs =3D <$MKISO_NOT>" >>$ERRLOG fi =20 # Are there Files in $SRCDI that we have in $CHANGES too # If so we have to exclude them EXCLUDE=3D"" for i in `(cd $CHANGES; find . ! -type d)`; do # i=3D./etc.ro/mtab j=3D`echo $i|sed "s|^\.||"` # j=3D/etc.ro/mtab k=3D`echo $j|sed "s|\.ro/|/|"` # k=3D/etc/mtab if [ -f $k ]; then EXCLUDE=3D"$EXCLUDE -x $SRCDI$k" fi done # since mkisofs 1.13 we have to use the option -graft-points GRAFTPOINTS=3D`mkisofs --version | awk '{if($2>1.12) {print = "-graft-points"}}'` echo "GRAFTPOINTS=3D<$GRAFTPOINTS>" >>$ERRLOG if [ "$DEVFS" =3D "yes" ]; then MKISODEVFS=3D"" else MKISODEVFS=3D"/dev.ro/=3D$SRCDI/dev" fi if [ "$COMPRESS" =3D "no" ]; then if [ "$ISOLINUX" =3D "yes" ]; then cdimage_isolinux elif [ "$ARCH" =3D "HPPA" ]; then cdimage_hppa else cdimage_normal fi else if [ "$ISOLINUX" =3D "yes" ]; then cdimage_compressed_isolinux elif [ "$ARCH" =3D "HPPA" ]; then cdimage_compressed_hppa else cdimage_compressed_normal fi =20 fi =20 echo "--- Testing CD-Image ---" | tee -a $ERRLOG run mount $VAR/cdimage $VAR/mnt -o loop -t iso9660 ignore ".*" run ls -l $VAR/mnt run umount $VAR/mnt losetup -d /dev/loop0 2>/dev/null =20 if [ "$ISO_ONLY" =3D=3D "no" ]; then if [ "$BLANKING" !=3D "no" ]; then if [ "$TYP" =3D=3D "DVDPLUS" ]; then blank_dvdplus else blank_cd fi fi fi =20 if [ "$ISO_ONLY" =3D=3D "no" ]; then if [ "$TYP" =3D=3D "DVDPLUS" ]; then write_dvdplus else write_cd fi else mv $VAR/cdimage $VAR/cdimage.iso fi fi if [ "$FLOPPY_CREATE_DEV" ]; then echo "--- Writing Floppy ---" | tee -a $ERRLOG stdout "Formatting cylinder" ignore "^mformat" run superformat $FLOPPY_CREATE_DEV if [ "$BOOTFLOPPY" =3D "yes" ]; then ignore=20 run dd if=3D/$CHANGES/cdboot.img of=3D$FLOPPY_CREATE_DEV bs=3D1024 =20 # it works without the next line, but it is very slow then run syslinux $FLOPPY_CREATE_DEV elif [ "$BOOTFLOPPY" !=3D "no" ]; then warn 'BOOTFLOPPY is not defined as "yes" or "no".' \ 'It will be treated as "no".' fi fi ------_=_NextPart_000_01C38684.E2ADEC80 Content-Type: text/plain; name="bootcdwrite.conf" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="bootcdwrite.conf" # # bootcdwrite.conf # # Requirements: # SRCDISK has to fit on one CD # RAMFS has to be big enough to hold /home, /var, /etc, /dev, /tmp, = /root # VAR has to be big enough to hold ... # You have to change at least the following variables in this file:=20 # SRCDISK, KERNEL, RAMDISK_SIZE, BLANKING, TYP, CDSCSI, CDSPEED and = CDDEV # Define the filesystem root from which to build an image. # Example to build bootcd from copy local system: # SRCDISK=3D/ SRCDISK=3D/var/lib/diskless/default/root # Define the kernel which is used KERNEL=3D$SRCDISK/boot/vmlinuz-2.4.22 # Two Ramdisks ram1 and ram2 will be created, with the followin = directories:=20 # ram1: /dev /etc /home /root /tmp # ram2: /var # Both Ramdisks have the same size which is defined by RAMDISK_SIZE # # Example: If you want to spend 16MB for RAM Filesystems: # RAMDISK_SIZE=3D8192 RAMDISK_SIZE=3D8192 # TYP=3DCD|DVDPLUS # Define TYP=3DCD if you have a CD-RW drive. Define TYP=3DDVDPLUS if = you have a # DVD+RW drive and want to write a DVD+ media or TYP=3DCD if you want = to # wirte a CD media.=20 # To use TYP=3DDVDPLUS the debian package bootcd-dvdplus must be = installed. TYP=3DCD # BLANKING=3Dyes|no # If you want to rewrite a CD or DVD you have to specify BLANKING=3Dyes BLANKING=3Dno # CD / DVD+ Writer Informations # If TYP=3DCD then try "cdrecord -scanbus" to get CDSCSI information. = Example: # CDSCSI=3D0,2,0 # If TYP=3DDVDPLUS then use the scsi device you specify to mount a = CD/DVD in # your DVD+ Writer. If you have an IDE unit, use ide-scsi emulation.=20 # (See http://fy.chalmers.se/~appro/linux/DVD+RW/). Example: # CDSCSI=3D/dev/scd0 CDSCSI=3D0,4,0 # Needed if you specified TYP=3DCD CDSPEED=3D2 # = CDDEV=3D/dev/hda|/dev/hdb|/dev/hdc|/dev/hdd|/dev/scd0|/dev/scd1|/dev/scd= 2 # You can specify one or more CD devices to boot from. # The first entry is the default. The rest will be given as boot = options=20 # to the user. See DISPLAY. # CDDEV=3D"/dev/hdc /dev/hda /dev/hdb /dev/hdc /dev/hdd /dev/scd0 = /dev/scd1" CDDEV=3D"/dev/hdc /dev/hda /dev/hdb /dev/hdc /dev/hdd /dev/scd0 = /dev/scd1" # DISPLAY=3D|"" # Text to Display at Boottime (see syslinux doku) # This option is not supported for HPPA # Example: (Where you could place display.txt) # DISPLAY=3D"$SRCDISK/usr/lib/bootcd/display.txt" # There is a predefined DISPLAY which offers the boot options=20 # /dev/hda, /dev/hdb, /dev/hdc, /dev/hdd, /dev/scd0 and /dev/scd1: # DISPLAY=3D"/usr/lib/bootcd/default.txt" #DISPLAY=3D"/usr/lib/bootcd/default.txt" DISPLAY=3D"bootcd/display.txt" LOGO=3D"bootcd/logo.lss" # If you do not have a cd burner and only want to create an iso_image # then set ISO_ONLY=3D"yes" also set BLANKING=3D"no" later in this = file. ISO_ONLY=3D"yes" # DO_CHECK=3Dyes|no # To check for possible problems can take a long time. # But it is recommended to do the checks=20 DO_CHECK=3Dyes # If you need kernel options other than "root=3D..." and = "ramdisk_size=3D..." # see append in lilo.conf(5) # Example:=20 # APPEND=3D"aha1542=3D0x230" APPEND=3D"" # If SRCDISK does not fit on one CD you can now decide which parts of=20 # SRCDISK should not go to CD. # # Example to exclude /home/user1 and /home/user2 # NOT_TO_CD=3D"$SRCDISK/home/user1 $SRCDISK/home/user2" # Example # NOT_TO_CD=3D"$SRCDISK/home/bs/download $SRCDISK/home/bs/vmware" NOT_TO_CD=3D"" # When you boot from CD parts of the CD will be copied to ram # Here you can decide, what should not go to ram. # # The directories /etc /var /dev /tmp /home and /root will be # in RAM because they have to be writable.=20 # # On CD this dirs will get different names (/etc.ro, /var.ro, ...) # but you do not have to use those different names in NOT_TO_RAM any = more !!! # # If you exclude files in NOT_TO_RAM, they will be copied to CD and you # will find a symbolic link instead of the file in RAM pointing to the = file # on CD. # # Example # If you want to exclude /home/bs/bigfile and /home/bs/bigdir/ # NOT_TO_RAM=3D"$SRCDISK/home/bs/bigfile $SRCDISK/home/bs/bigdir" # NOT_TO_RAM=3D"" # SSHOSTKEY=3Dyes|no # If you are using ssh it is helpfull to have a unique ssh hostkey for # each CD. This will be generated at burntime with SSHHOSTKEY=3Dyes. SSHHOSTKEY=3Dyes # Free Space for Log and Image ERRLOG=3D/var/log/bootcdwrite.log VAR=3D/var/spool/bootcd=20 # FLOPPY_RUNTIME_DEV=3D|"" # When you boot from cd you read changes from this device. FLOPPY_RUNTIME_DEV=3D/dev/fd0 # The floppy will be formatted when bootcdwrite is called if you define # FLOPPY_CREATE_DEV=3D"/dev/fd0".=20 # If you do not want to build a floppy spezify=20 # FLOPPY_CREATE_DEV=3D"" FLOPPY_CREATE_DEV=3D"" # BOOTFLOPPY=3Dyes|no # If you want to boot from FLOPPY specify BOOTFLOPPY=3Dyes. This = reduces # space on floppy used by bootcdflopcp. For this to work = FLOPPY_CREATE_DEV # has to be specified. # For HPPA this option is not supported and must be set to no. # Default: # BOOTFLOPPY=3Dno BOOTFLOPPY=3Dno # BOOT_ONLY_WITH_FLOPPY=3Dyes|no # If you want to boot several machines from the same cdrom, you must = have # the individual configuartion (exp: /etc/network/interfaces) on = floppy. # If one can not be mounted it is a good idea to stop booting and to = wait # for manual interaction instead of comming up with a wrong = configuration. # BOOT_ONLY_WITH_FLOPPY=3Dno # # If CLEAN_VAR=3Dyes then some cached files in /var will be deleted, = before=20 # /var will be copied to bootcd. This will minimize needed space on CD. # At this time only the following command will be executed: apt-get = clean # You can disable this with CLEAN_VAR=3Dno=20 # Default: # CLEAN_VAR=3Dyes CLEAN_VAR=3Dyes # # FASTBOOT=3Dyes|no # If FASTBOOT=3Dyes then additional images for the ramdisk will be = created=20 # by bootcdwrite and copied to CD. This allows faster booting, # but needs extra space on CD # Default: # FASTBOOT=3Dyes FASTBOOT=3Dyes # ISOLINUX=3Dauto|yes|no # See /usr/doc/syslinux/isolinux.doc.gz.=20 # If syslinux is recent enough then isolinux can be used instead of = syslinux # and ISOLINUX=3Dauto will be treated as ISOLINUX=3Dyes. # If you want to use syslinux instead you have to use ISOLINUX=3Dno. # Default: # ISOLINUX=3Dauto # ISOLINUX=3Dyes # # SYSLINUX_SAVE=3Dyes|no # This option is only relevant if isolinux is not used. # If SYSLINUX_SAVE=3Dyes then syslinux is called with -s option. The = manpage # of syslinux says: this installs a "save, slow and stupid" version of # syslinux. In earlier version the -s option was always used. Now you # can change it. # Default: # SYSLINUX_SAVE=3Dyes SYSLINUX_SAVE=3Dyes # ARCH=3Dauto|HPPA|X86 # You can create bootcd for HP PA-RISC too. It is possible to let # bootcdwrite detect your architecture with ARCH=3Dauto. # To use ARCH=3DHPPA the debian package bootcd-hppa must be installed. # Default: # ARCH=3Dauto ARCH=3Dauto # DEVFS=3Dyes|no # With devfs you do not need devicefiles and inodes in /dev/*. # If running diskless this will save some ram. # See /usr/src/linux/Documentation/filesystems/devfs/README for more = infos. # DEVFS=3Dno DEVFS=3Dno # INITRD=3D|"" # # Recent official debian kernel images (2.4.x) have started installing = initrd # images. If you want to use such a kernel to build a bootcd without=20 # recompiling the kernel you have to use an initrd image. The installed = # initrd image used to boot from harddisk does not always work from = cdrom.=20 # So you have to create your own initrd image. Or you can change the = default=20 # INITRD_IMAGE with the tool bootcdmkinitrd. # # INITRD=3D"$(dirname $KERNEL)/initrd.img-$(basename $KERNEL | cut -d- = -f2-)" INITRD=3D"" # TO_FSTAB=3D|"" # # Add additional mount point entries to the cdrom's /etc/fstab. If you = don't # want additional mount points, leave it as "". # # TO_FSTAB=3D"/dev/hdc1 /home ext3 defaults 1 1" TO_FSTAB=3D"" # COMPRESS=3D # If you want to have a transparent-compression ISO 9660/Rock Ridge=20 # filesystem define COMPRESS=3Dyes. If not, set COMPRESS=3Dno. # If you want bootcdwrite to check, if you need compression because # running out of space say COMPRESS=3Dauto.=20 # If you define COMPRESS=3Dauto bootcdwrite tries also to check, if you = have=20 # all the necessary software installed. Therefore you have to define=20 # DO_CHECK=3Dyes if you define COMPRESS=3Dauto. COMPRESS=3D"no" # cloop USE_CLOOP=3D"yes" CLOOP_O=3D$SRCDISK/lib/modules/2.4.22/kernel/drivers/block/cloop.o CLOOP_DEV_1=3D"" CLOOP_SRCDISK_1=3D"" CLOOP_DEV_2=3D"" CLOOP_SRCDISK_2=3D"" CLOOP_DEV_3=3D"" CLOOP_SRCDISK_3=3D"" CLOOP_DEV_4=3D"" CLOOP_SRCDISK_4=3D"" CLOOP_DEV_5=3D"" CLOOP_SRCDISK_5=3D"" CLOOP_DEV_6=3D"" CLOOP_SRCDISK_6=3D"" CLOOP_DEV_7=3D"" CLOOP_SRCDISK_7=3D"" ------_=_NextPart_000_01C38684.E2ADEC80-- From djmaecki@ull.at Mon Sep 29 18:13:19 2003 Received: from stud3.tuwien.ac.at ([193.170.75.13]) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1A40eF-0001RH-00 for ; Mon, 29 Sep 2003 18:13:19 +0200 Received: from marvin (v208-157.vps.tuwien.ac.at [128.131.208.157]) by stud3.tuwien.ac.at (8.9.3 (PHNE_26305)/8.9.3) with ESMTP id SAA28105; Mon, 29 Sep 2003 18:13:17 +0200 (METDST) Received: from djmaecki by marvin with local (Exim 3.36 #1 (Debian)) id 1A40eB-0002Lq-00; Mon, 29 Sep 2003 18:13:15 +0200 Date: Mon, 29 Sep 2003 18:13:15 +0200 From: Thomas Krennwallner To: "bootcd-user@lists.alioth.debian.org" Cc: "klhaung@palm208.nchc.org.tw" Subject: Re: [Bootcd-user] FW: cloop & bootcd Message-ID: <20030929161315.GH6315@ull.at> Mail-Followup-To: "bootcd-user@lists.alioth.debian.org" , "klhaung@palm208.nchc.org.tw" References: <615A249B783CD41192F400D0B747AC860616572B@hesse.bbn.hp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="xs+9IvWevLaxKUtW" Content-Disposition: inline In-Reply-To: <615A249B783CD41192F400D0B747AC860616572B@hesse.bbn.hp.com> Organization: Vienna University of Technology X-GPG-Fingerprint: 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B X-GPG-Key: http://bigfish.ull.at/~djmaecki/krennwallner.gpg.asc X-Accept-Language: en,de X-Operating-System: Debian GNU/Linux User-Agent: Mutt/1.5.4i Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: --xs+9IvWevLaxKUtW Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! On Mon Sep 29, 2003 at 02:26:19PM +0200, SCHUMACHER,BERND (HP-Germany,ex1) = wrote: > -----Original Message----- > From: klhaung@palm208.nchc.org.tw [mailto:klhaung@palm208.nchc.org.tw] > Sent: Donnerstag, 25. September 2003 02:49 > To: bernd.schumacher@hp.com > Subject: cloop & bootcd >=20 >=20 > hello, >=20 > My name is Blake. > I am working on a project, named DRBL (http://drbl.nchc.org.tw, > http://drbl.sf.net),=20 > and use your bootcd to create the installation CD. > Thank you for your bootcd that help us to create CD quickly and > easily. >=20 > I had added one new funcationality that use Knopper's cloop to > compress the image. > Attached are the files I modified. > I hope it is useful. Whoa, it's a quite heavy patch ;-). Unfortunately you added your work to a little bit outdated version of bootcd. Can you create an unified diff patch of your work with the version you applied your changes at? Or tell us at least on which version of bootcd you added your cloop work. For now it would be quite nice if you subscribe to bootcd-user@lists.alioth.debian.org so we can do some discussion about your patch. So long Thomas --=20 .''`. Obviously we do not want to leave zombies around. - W. R. Stevens : :' : Thomas Krennwallner `. `'` 1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B `- http://bigfish.ull.at/~djmaecki/ --xs+9IvWevLaxKUtW Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/eFob/1hOWWeh2nsRAhtQAKCXkfs+PN1ahiABa6GRYohJxDmKwgCbBqLe dhq3ekuH+Kg1Usw1RQq8bLg= =W0y6 -----END PGP SIGNATURE----- --xs+9IvWevLaxKUtW-- From djmaecki@ull.at Mon Sep 29 18:18:32 2003 Received: from stud3.tuwien.ac.at ([193.170.75.13]) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1A40jI-0001Sm-00 for ; Mon, 29 Sep 2003 18:18:32 +0200 Received: from marvin (v208-157.vps.tuwien.ac.at [128.131.208.157]) by stud3.tuwien.ac.at (8.9.3 (PHNE_26305)/8.9.3) with ESMTP id SAA29898; Mon, 29 Sep 2003 18:18:35 +0200 (METDST) Received: from djmaecki by marvin with local (Exim 3.36 #1 (Debian)) id 1A40jJ-0002M0-00; Mon, 29 Sep 2003 18:18:33 +0200 Date: Mon, 29 Sep 2003 18:18:33 +0200 From: Thomas Krennwallner To: bootcd-user@lists.alioth.debian.org Cc: robs@multiplayer.it Subject: Re: [Bootcd-user] FW: bootcd and different cdrom devices Message-ID: <20030929161833.GI6315@ull.at> Mail-Followup-To: bootcd-user@lists.alioth.debian.org, robs@multiplayer.it References: <615A249B783CD41192F400D0B747AC860616572C@hesse.bbn.hp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="TKYYegg/GYAC5JIZ" Content-Disposition: inline In-Reply-To: <615A249B783CD41192F400D0B747AC860616572C@hesse.bbn.hp.com> Organization: Vienna University of Technology X-GPG-Fingerprint: 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B X-GPG-Key: http://bigfish.ull.at/~djmaecki/krennwallner.gpg.asc X-Accept-Language: en,de X-Operating-System: Debian GNU/Linux User-Agent: Mutt/1.5.4i Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: --TKYYegg/GYAC5JIZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! On Mon Sep 29, 2003 at 02:36:14PM +0200, SCHUMACHER,BERND (HP-Germany,ex1) = wrote: > -----Original Message----- > From: Roberto Sebastiano [mailto:robs@multiplayer.it] > Sent: Samstag, 30. August 2003 17:44 > To: bernd.schumacher@hp.com > Subject: bootcd and different cdrom devices >=20 >=20 > Hi, > After building a bootcd with bootcdwrite (latest debian unstable > version, 2.34) with the cdrecorder /dev/hdc, if I try to boot the cd on > a computer that has the cd reader on /dev/[something different than hdc] > I get a kernel panic (unable to mount rootfs) I'm not quite sure... Could you please post your /etc/bootcd/bootcdwrite.conf to the bootcd-user@lists.alioth.debian.org list? Are there any strange messages at the initrd stage? So long Thomas --=20 .''`. Obviously we do not want to leave zombies around. - W. R. Stevens : :' : Thomas Krennwallner `. `'` 1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B `- http://bigfish.ull.at/~djmaecki/ --TKYYegg/GYAC5JIZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/eFtZ/1hOWWeh2nsRAkQ7AJ4v4WoQumNoolRbx4Eo2YXmZJbkjACgpB0M wLwGSj5Jo/hcOkgWv6Sc+jo= =+G+0 -----END PGP SIGNATURE----- --TKYYegg/GYAC5JIZ-- From djmaecki@ull.at Mon Sep 29 18:38:05 2003 Received: from stud3.tuwien.ac.at ([193.170.75.13]) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1A412D-0001dV-00 for ; Mon, 29 Sep 2003 18:38:05 +0200 Received: from marvin (v208-157.vps.tuwien.ac.at [128.131.208.157]) by stud3.tuwien.ac.at (8.9.3 (PHNE_26305)/8.9.3) with ESMTP id SAA08064 for ; Mon, 29 Sep 2003 18:38:08 +0200 (METDST) Received: from djmaecki by marvin with local (Exim 3.36 #1 (Debian)) id 1A412F-0002Mz-00 for ; Mon, 29 Sep 2003 18:38:07 +0200 Date: Mon, 29 Sep 2003 18:38:07 +0200 From: Thomas Krennwallner To: "bootcd-user@lists.alioth.debian.org" Subject: Re: [Bootcd-user] FW: cloop & bootcd Message-ID: <20030929163807.GL6315@ull.at> Mail-Followup-To: "bootcd-user@lists.alioth.debian.org" References: <615A249B783CD41192F400D0B747AC860616572B@hesse.bbn.hp.com> <20030929161315.GH6315@ull.at> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="dCSxeJc5W8HZXZrD" Content-Disposition: inline In-Reply-To: <20030929161315.GH6315@ull.at> Organization: Vienna University of Technology X-GPG-Fingerprint: 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B X-GPG-Key: http://bigfish.ull.at/~djmaecki/krennwallner.gpg.asc X-Accept-Language: en,de X-Operating-System: Debian GNU/Linux User-Agent: Mutt/1.5.4i Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: --dCSxeJc5W8HZXZrD Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! On Mon Sep 29, 2003 at 06:13:15PM +0200, Thomas Krennwallner wrote: > > -----Original Message----- > > From: klhaung@palm208.nchc.org.tw [mailto:klhaung@palm208.nchc.org.tw] Seems like this email address doesn't work... I will resend it later. So long Thomas --=20 .''`. Obviously we do not want to leave zombies around. - W. R. Stevens : :' : Thomas Krennwallner `. `'` 1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B `- http://bigfish.ull.at/~djmaecki/ --dCSxeJc5W8HZXZrD Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/eF/v/1hOWWeh2nsRAgWVAJ93VbnNmecYdRyiaFPu+BDrmpHICQCfcWCY rvAhPHmoOG5byBxw+pXCQe4= =u5Fu -----END PGP SIGNATURE----- --dCSxeJc5W8HZXZrD-- From bernd.schumacher@hp.com Tue Oct 21 13:32:52 2003 Received: from bbnrelint01.net.external.hp.com ([192.6.76.88]) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1ABuku-0007sQ-00 for ; Tue, 21 Oct 2003 13:32:52 +0200 Received: from eiach.bbn.hp.com (eiach.bbn.hp.com [15.140.168.10]) by bbnrelint01.net.external.hp.com (Postfix) with ESMTP id 21C2237C9F; Tue, 21 Oct 2003 13:27:45 +0200 (CEST) Received: by eiach.bbn.hp.com with Internet Mail Service (5.5.2655.55) id ; Tue, 21 Oct 2003 13:32:39 +0200 Message-ID: <615A249B783CD41192F400D0B747AC860616574C@hesse.bbn.hp.com> From: "SCHUMACHER,BERND (HP-Germany,ex1)" To: 'raffaele messuti' Cc: "'bootcd-user@lists.alioth.debian.org'" Date: Tue, 21 Oct 2003 13:32:36 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2655.55) Content-Type: text/plain Subject: [Bootcd-user] RE: [bootcd] kmod error Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: > -----Original Message----- > From: raffaele messuti [mailto:raffaele@adv.borse.it] > Sent: Dienstag, 21. Oktober 2003 01:11 > To: bernd.schumacher@hp.com > Subject: [bootcd] kmod error > > > hi ;) > i'm trying to get working bootcd to make bootable cd to use > in a little kiosk distro > > boot fails with this error: > kmod=failed to exec /sbin/modprobe -s -k binfmt-9653, errno=8 > > what is the problem? > i'm using a selfmade kernel, with no modules for fs drivers > i need however to use initrd? > > thanks for reply > greets. > > > -- > raffaele@adv.borse.it > A selfmade kernel is no problem. But did you get warnings as you run bootcdwrite? Which warnings? Did you try to mount your CD to test if everything is readable? From djmaecki@ull.at Fri Oct 24 07:31:05 2003 Received: from stud3.tuwien.ac.at ([193.170.75.13]) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1ACuXR-0001gU-00 for ; Fri, 24 Oct 2003 07:31:05 +0200 Received: from marvin (v208-157.vps.tuwien.ac.at [128.131.208.157]) by stud3.tuwien.ac.at (8.9.3 (PHNE_28810+JAGae91741+JAGae92668)/8.9.3) with ESMTP id HAA26729; Fri, 24 Oct 2003 07:31:02 +0200 (METDST) Received: from djmaecki by marvin with local (Exim 4.22) id 1ACuWv-00076n-BH; Fri, 24 Oct 2003 07:30:33 +0200 Date: Fri, 24 Oct 2003 07:30:32 +0200 From: Thomas Krennwallner To: "'bootcd-user@lists.alioth.debian.org'" Cc: raffaele@adv.borse.it Subject: Re: [Bootcd-user] RE: [bootcd] kmod error Message-ID: <20031024053032.GH16256@ull.at> Mail-Followup-To: "'bootcd-user@lists.alioth.debian.org'" , raffaele@adv.borse.it References: <615A249B783CD41192F400D0B747AC860616574C@hesse.bbn.hp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="nEsDIrWrg+hrB7l1" Content-Disposition: inline In-Reply-To: <615A249B783CD41192F400D0B747AC860616574C@hesse.bbn.hp.com> Organization: Vienna University of Technology X-GPG-Fingerprint: 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B X-GPG-Key: http://bigfish.ull.at/~djmaecki/krennwallner.gpg.asc X-Accept-Language: en,de X-Operating-System: Debian GNU/Linux User-Agent: Mutt/1.5.4i Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: --nEsDIrWrg+hrB7l1 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! On Tue Oct 21, 2003 at 01:32:36PM +0200, Bernd Schumacher wrote: > > From: raffaele messuti [mailto:raffaele@adv.borse.it]=20 > >=20 > > boot fails with this error: > > kmod=3Dfailed to exec /sbin/modprobe -s -k binfmt-9653, errno=3D8 > >=20 > > what is the problem? > > i'm using a selfmade kernel, with no modules for fs drivers > > i need however to use initrd? >=20 > A selfmade kernel is no problem. But did you get warnings as you run > bootcdwrite? > Which warnings? >=20 > Did you try to mount your CD to test if everything is readable? binfmt means binaryformat. I think the kernel wants to execute a binary which isn't supported. So it tries to insmod binfmt-9653. But since he couldn't find it he bails out. Could it be that you forgot to compile in some essential Kernel support for binaries like CONFIG_BINFMT_AOUT, CONFIG_BINFMT_ELF or CONFIG_BINFMT_MISC? At least CONFIG_BINFMT_ELF is always needed. So long Thomas --=20 .''`. Obviously we do not want to leave zombies around. - W. R. Stevens : :' : Thomas Krennwallner `. `'` 1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B `- http://bigfish.ull.at/~djmaecki/ --nEsDIrWrg+hrB7l1 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/mLj4/1hOWWeh2nsRAhwvAKCkWWrj3dR0tb5J1y10GCndX9ORMQCgmBCI p4OCRQQFUbnlotT1PTmZW6w= =KVjS -----END PGP SIGNATURE----- --nEsDIrWrg+hrB7l1-- From azajac@vif.com Mon Oct 27 14:08:31 2003 Received: from ip216-239-64-165.vif.net ([216.239.64.165] helo=petra.vif.com) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1AE76l-0001d3-00 for ; Mon, 27 Oct 2003 14:08:31 +0100 Received: from petra.vif.com (localhost [127.0.0.1]) by petra.vif.com (8.12.9/8.12.9) with ESMTP id h9RD8Un2073088 for ; Mon, 27 Oct 2003 08:08:30 -0500 (EST) (envelope-from azajac@vif.com) Received: (from squid@localhost) by petra.vif.com (8.12.9/8.12.9/Submit) id h9RD8UYB073087 for bootcd-user@lists.alioth.debian.org; Mon, 27 Oct 2003 08:08:30 -0500 (EST) (envelope-from azajac@vif.com) X-Authentication-Warning: petra.vif.com: squid set sender to azajac@vif.com using -f Received: from 142.85.4.18 ([142.85.4.18]) by email.vif.com (Horde) with HTTP for ; Mon, 27 Oct 2003 08:08:30 -0500 Message-ID: <1067260110.50b6ukk1xbc4@email.vif.com> Date: Mon, 27 Oct 2003 08:08:30 -0500 From: azajac@vif.com To: bootcd-user@lists.alioth.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Originating-IP: 142.85.4.18 Subject: [Bootcd-user] (no subject) Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: Hello and thank you for your wonderful application! I am trying to boot from a cdrom and then to use a cdburner. To do this, I want to enable scsi emulation for all cdrom drives (since I will not always know which drive is the burner and which one it the reader.) If I enable scsi emulation, I cannot boot from the cdrom. It gets stuck and cannot find the root filesystem at scd0... I tried to use an initrd which included the neccessary modules (ide-scsi...) without any luck... Any ideas? Would including a script after the bootcdinitrd (discover) script to remount root on scsi (/dev/scd0) work or is that not at all the problem? Thanks! AZ. From djmaecki@ull.at Mon Oct 27 17:12:48 2003 Received: from stud3.tuwien.ac.at ([193.170.75.13]) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1AE9z6-0001qH-00 for ; Mon, 27 Oct 2003 17:12:48 +0100 Received: from marvin (v208-157.vps.tuwien.ac.at [128.131.208.157]) by stud3.tuwien.ac.at (8.9.3 (PHNE_28810+JAGae91741+JAGae92668)/8.9.3) with ESMTP id RAA02049 for ; Mon, 27 Oct 2003 17:12:48 +0100 (MET) Received: from djmaecki by marvin with local (Exim 4.22) id 1AE9z3-0003Ed-Vk for bootcd-user@lists.alioth.debian.org; Mon, 27 Oct 2003 17:12:45 +0100 Date: Mon, 27 Oct 2003 17:12:45 +0100 From: Thomas Krennwallner To: bootcd-user@lists.alioth.debian.org Subject: Re: [Bootcd-user] (no subject) Message-ID: <20031027161245.GA12200@ull.at> Mail-Followup-To: bootcd-user@lists.alioth.debian.org References: <1067260110.50b6ukk1xbc4@email.vif.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8t9RHnE3ZwKMSgU+" Content-Disposition: inline In-Reply-To: <1067260110.50b6ukk1xbc4@email.vif.com> Organization: Vienna University of Technology X-GPG-Fingerprint: 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B X-GPG-Key: http://bigfish.ull.at/~djmaecki/krennwallner.gpg.asc X-Accept-Language: en,de X-Operating-System: Debian GNU/Linux User-Agent: Mutt/1.5.4i Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: --8t9RHnE3ZwKMSgU+ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! On Mon Oct 27, 2003 at 08:08:30AM -0500, azajac@vif.com wrote: > I am trying to boot from a cdrom and then to use a cdburner. To do > this, I want to enable scsi emulation for all cdrom drives (since I > will not always know which drive is the burner and which one it the > reader.) >=20 > If I enable scsi emulation, I cannot boot from the cdrom. It gets > stuck and cannot find the root filesystem at scd0... >=20 > I tried to use an initrd which included the neccessary modules > (ide-scsi...) without any luck... Any ideas? Would including a > script after the bootcdinitrd (discover) script to remount root on > scsi (/dev/scd0) work or is that not at all the problem? If I understand you correctly you are searching a method for searching the "real" cd drive which is booting the bootcd. The only way I can think of making this work is to list all available cd drives (maybe via discover) in the initrd and mount each of them and seek for a unique file at the mountpoint (say you mount the current drive to /mnt you will then search for /mnt/MyBootCD or so). If this script finds the file on the disc it will umount it and sets the real_root_path in the procfs or use such tool as pivot_root to declare the new rootfs and quit. The kernel will then exec /sbin/init on the new rootfs and the usual boot procedure starts. So long Thomas --=20 .''`. Obviously we do not want to leave zombies around. - W. R. Stevens : :' : Thomas Krennwallner `. `'` 1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B `- http://bigfish.ull.at/~djmaecki/ --8t9RHnE3ZwKMSgU+ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/nUP9/1hOWWeh2nsRAuCpAJ9fB22wYOS2VCrc7E+DNuq+PmauogCeN1jk oy04WEHVBhJw+OGaXyRMAKE= =MJNf -----END PGP SIGNATURE----- --8t9RHnE3ZwKMSgU+-- From azajac@vif.com Tue Oct 28 18:09:45 2003 Received: from ip216-239-64-165.vif.net ([216.239.64.165] helo=petra.vif.com) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1AEXLk-0007xY-00 for ; Tue, 28 Oct 2003 18:09:44 +0100 Received: from petra.vif.com (localhost [127.0.0.1]) by petra.vif.com (8.12.9/8.12.9) with ESMTP id h9SH9gn2041957 for ; Tue, 28 Oct 2003 12:09:42 -0500 (EST) (envelope-from azajac@vif.com) Received: (from squid@localhost) by petra.vif.com (8.12.9/8.12.9/Submit) id h9SH9gjB041956 for bootcd-user@lists.alioth.debian.org; Tue, 28 Oct 2003 12:09:42 -0500 (EST) (envelope-from azajac@vif.com) X-Authentication-Warning: petra.vif.com: squid set sender to azajac@vif.com using -f Received: from 142.85.4.18 ([142.85.4.18]) by email.vif.com (Horde) with HTTP for ; Tue, 28 Oct 2003 12:09:42 -0500 Message-ID: <1067360982.5p6pkucwe5gk@email.vif.com> Date: Tue, 28 Oct 2003 12:09:42 -0500 From: azajac@vif.com To: bootcd-user@lists.alioth.debian.org References: <20031028053710.27336.16527.Mailman@quantz.debian.org> In-Reply-To: <20031028053710.27336.16527.Mailman@quantz.debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Originating-IP: 142.85.4.18 Subject: [Bootcd-user] Re: (no subject) Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: I am sorry that I originally forgot to include a proper title to my question... Thank you very much. It works! The hardest part of the whole precess was to get the script into the initrd. I basically appended the script to the bootcd script (within bootcdmkinitrd) and re-ran it. I am not at home so the script is something like: devices=$(discover --device cdrom) for s in $devices do mount $s /mountpoint if test -f /mountpoint/bootcddir/file then echo fount root at $s pivot_root $s /old exit fi umount /mountpoint done echo could not find root! So this works if I pick scd0. If I chose something else, it cannot find the root and panics... I think that I should just include one isolinux option for a root directory and that would be either "/" (if I am allowed to do that) or "/mountpoint." My question is regarding the mountpoints. Right now, /mountpoint and /old exist both in the initrd filesystem as well as the real filesystem (which ends up on the cdrom) Would this work if both of these directories only existed in the initrd? I do not have a great enough understanding of the boot process to know... (I wrote the above script with help from two internet bash tutorials!) Thanks! AZ. From djmaecki@ull.at Tue Oct 28 19:51:09 2003 Received: from stud3.tuwien.ac.at ([193.170.75.13]) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1AEYvt-0003yE-00 for ; Tue, 28 Oct 2003 19:51:09 +0100 Received: from marvin (v208-157.vps.tuwien.ac.at [128.131.208.157]) by stud3.tuwien.ac.at (8.9.3 (PHNE_28810+JAGae91741+JAGae92668)/8.9.3) with ESMTP id TAA29239 for ; Tue, 28 Oct 2003 19:51:08 +0100 (MET) Received: from djmaecki by marvin with local (Exim 4.22) id 1AEYvr-00054p-3u for bootcd-user@lists.alioth.debian.org; Tue, 28 Oct 2003 19:51:07 +0100 Date: Tue, 28 Oct 2003 19:51:07 +0100 From: Thomas Krennwallner To: bootcd-user@lists.alioth.debian.org Subject: Re: [Bootcd-user] Re: (no subject) Message-ID: <20031028185106.GA19447@ull.at> Mail-Followup-To: bootcd-user@lists.alioth.debian.org References: <20031028053710.27336.16527.Mailman@quantz.debian.org> <1067360982.5p6pkucwe5gk@email.vif.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="G4iJoqBmSsgzjUCe" Content-Disposition: inline In-Reply-To: <1067360982.5p6pkucwe5gk@email.vif.com> Organization: Vienna University of Technology X-GPG-Fingerprint: 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B X-GPG-Key: http://bigfish.ull.at/~djmaecki/krennwallner.gpg.asc X-Accept-Language: en,de X-Operating-System: Debian GNU/Linux User-Agent: Mutt/1.5.4i Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: --G4iJoqBmSsgzjUCe Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! On Tue Oct 28, 2003 at 12:09:42PM -0500, azajac@vif.com wrote: > I am not at home so the script is something like: [...] Looks fine! Could you post the working script to the list? Maybe it's worth at least to mention it in the FAQ. Maybe it's even a good way to to include this way as default boot behaviour for initrd kernels. > So this works if I pick scd0. If I chose something else, it cannot > find the root and panics... I think that I should just include one > isolinux option for a root directory and that would be either "/" (if > I am allowed to do that) or "/mountpoint." I'm sorry but I think I don't understand you. You say it only works for scsi (or ide-scsi) devices? > Right now, /mountpoint and /old exist both in the initrd filesystem as > well as the real filesystem (which ends up on the cdrom) Would this > work if both of these directories only existed in the initrd? I do > not have a great enough understanding of the boot process to know... Hm, good question. My understanding of pivot_root is that it tells the kernel to use another mounted filesystem as new rootfs when the script exits. This is a great advantage over the old real_root_dev approach in earlier kernels because you had to echo the device minor and major numbers(!) into a file called real_root_dev in the procfs of the initrd. So my understanding of this is that you don't need to have the directories in the root dir of the bootcd since the script runs in the initrd and this fs end up in /initrd of the cdrom. But maybe I'm completely wrong. Could you give it a try? So long Thomas --=20 .''`. Obviously we do not want to leave zombies around. - W. R. Stevens : :' : Thomas Krennwallner `. `'` 1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B `- http://bigfish.ull.at/~djmaecki/ --G4iJoqBmSsgzjUCe Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/nrqa/1hOWWeh2nsRAt0nAJ92S692224AwkDhj95jluDqIobPdQCgjBrS UcwGJGLZclQPiYkuI7/BS3Q= =yoAe -----END PGP SIGNATURE----- --G4iJoqBmSsgzjUCe-- From azajac@vif.com Tue Oct 28 21:32:21 2003 Received: from ip216-239-64-165.vif.net ([216.239.64.165] helo=petra.vif.com) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1AEaVp-0000Aa-00 for ; Tue, 28 Oct 2003 21:32:21 +0100 Received: from petra.vif.com (localhost [127.0.0.1]) by petra.vif.com (8.12.9/8.12.9) with ESMTP id h9SKWKn2051219 for ; Tue, 28 Oct 2003 15:32:20 -0500 (EST) (envelope-from azajac@vif.com) Received: (from squid@localhost) by petra.vif.com (8.12.9/8.12.9/Submit) id h9SKWF4o051215 for bootcd-user@lists.alioth.debian.org; Tue, 28 Oct 2003 15:32:15 -0500 (EST) (envelope-from azajac@vif.com) X-Authentication-Warning: petra.vif.com: squid set sender to azajac@vif.com using -f Received: from 142.85.4.18 ([142.85.4.18]) by email.vif.com (Horde) with HTTP for ; Tue, 28 Oct 2003 15:32:15 -0500 Message-ID: <1067373135.25us058ma2ro@email.vif.com> Date: Tue, 28 Oct 2003 15:32:15 -0500 From: azajac@vif.com To: bootcd-user@lists.alioth.debian.org References: <20031028053710.27336.16527.Mailman@quantz.debian.org> In-Reply-To: <20031028053710.27336.16527.Mailman@quantz.debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Originating-IP: 142.85.4.18 Subject: [Bootcd-user] scsi booting Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: What I was trying to say in my last post is that instead of having several isolinux append choices (hdc hdd scd0 scd1...) I would just make one and call it "/" Can you pass "root=/" to a booting kernel? In this case / would already be mounted by the script. The thing that is happening now is that the root directory is mounted on the appropriate scsi cdrom but then isolinux is appending stuff like "root=/dev/hdc" or in my case, the only one that will work is "root=/dev/scd0" (the "scd0" option at the prompt). I am assuming that it then mounts root to /dev/scd0 where the /dev directory is the one on the cdrom (mounted as / from the script) It still works because a device is a device. It just makes my head hurt... It is also not elegant as well as not being practical. I have to know what scsi device this drive is before I can successfully boot. So I will try to make the initrd contain the mountpoint and mount it as / and try only using / as the isolinux.cfg arguments... AZ. From azajac@vif.com Thu Oct 30 09:56:42 2003 Received: from ip216-239-64-165.vif.net ([216.239.64.165] helo=petra.vif.com) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1AF6Zm-0004sm-00 for ; Thu, 30 Oct 2003 07:46:34 +0100 Received: from petra.vif.com (localhost [127.0.0.1]) by petra.vif.com (8.12.9/8.12.9) with ESMTP id h9U6kXn2038042 for ; Thu, 30 Oct 2003 01:46:33 -0500 (EST) (envelope-from azajac@vif.com) Received: (from squid@localhost) by petra.vif.com (8.12.9/8.12.9/Submit) id h9U6kXin038041 for bootcd-user@lists.alioth.debian.org; Thu, 30 Oct 2003 01:46:33 -0500 (EST) (envelope-from azajac@vif.com) X-Authentication-Warning: petra.vif.com: squid set sender to azajac@vif.com using -f Received: from ip216-239-65-215.vif.net (ip216-239-65-215.vif.net [216.239.65.215]) by email.vif.com (Horde) with HTTP for ; Thu, 30 Oct 2003 01:46:33 -0500 Message-ID: <1067496393.2tupy3kv1p0k@email.vif.com> Date: Thu, 30 Oct 2003 01:46:33 -0500 From: azajac@vif.com To: bootcd-user@lists.alioth.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Originating-IP: 216.239.65.215 Subject: [Bootcd-user] bootcdmkinitrd and scsi Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: Here is the modified bootcdmkinitrd. It works at getting ide-scsi to work. I have tried it with a 2.4.21 kernel with the parameters "hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi" so that it could work on many different setups. With this as it is, I get a kernel panic if I chose the wrong option at the startup (like picking scd0 if I am really booting from scd1...) I would still like to find a way to boot automatically and not have to tell the kernel where the root filesystem is... I made /bootmount the directory in the initrd as the mountpoint for the cd device. I also used /bootmount in the real filesystem to contain a file named "version" to be detected by the inird script. All this file needs to do is exist... Maybe I should name that directory something different like /bootfind or something to avoid confusion... Cheers! AZ. #!/bin/sh # /usr/sbin/bootcdmkinitrd set -u KERN=$(uname -r) INITRD=/boot/initrd.img-$KERN ETCMKI=/etc/mkinitrd devices="" s="" # Warning echo "Warning: this script assumes the following:" echo "- the running kernel is the one that will be used on bootcd" echo "- initrd is used" echo "- lilo is used" echo "Warning: this script will do the following:" echo "- /etc/mkinitrd/ will be changed." echo "- mkinitrd will be called. This will change $INITRD." echo "- lilo will be called." while :; do echo -n "OK to continue ? (y|n)" read A [ "$A" = "n" ] && exit [ "$A" = "y" ] && break done # Checks if [ ! "$(grep "^[[:blank:]]*initrd=" /etc/lilo.conf)" ]; then echo "/etc/lilo.conf has no line initrd=. This means that you" >&2 echo "are not using lilo, or that you are not using initrd." >&2 echo "This skript only works with lilo and initrd." >&2 exit 1 fi if [ ! "$(grep "^[[:blank:]]*initrd=/initrd.img[[:blank:]]*$" /etc/lilo.conf)" ]; then echo "Your /etc/lilo.conf has no line with initrd=/initrd.img. Because" >&2 echo "this script can only support standard configurations, please edit" >&2 echo "lilo.conf run lilo and reboot to test your configuration. Then " >&2 echo "run this script again." >&2 exit 1 fi if [ ! "$(/bin/ls -l /initrd.img | grep -e "-> $INITRD$")" ]; then echo "/initrd.img must be a link to $INITRD." >&2 exit 1 fi if [ ! -d $ETCMKI ]; then echo "ERROR: No mkinitrd config dir $ETCMKI." >&2 echo " Is initrd-tools.deb installed ?" >&2 fi if [ ! -f $INITRD ]; then echo "$INITRD does not exist." >&2 exit 1 fi # Start [ -f /etc/mkinitrd.tgz ] && mv /etc/mkinitrd.tgz /etc/mkinitrd.tgz.old (cd /etc; tar czf mkinitrd.tgz mkinitrd) F=/etc/mkinitrd/exe touch $F cp $F $F.tmp cat $F.tmp | grep -v "^/sbin/discover\>" >$F echo "/sbin/discover" >>$F rm $F.tmp F=/etc/mkinitrd/modules touch $F cp $F $F.tmp cat $F.tmp | grep -v "^isofs\>" >$F echo "isofs" >>$F rm $F.tmp F=/etc/mkinitrd/files touch $F cp $F $F.tmp cat $F.tmp | grep -v "^/usr/share/discover/.*\.lst\>" >$F ls /usr/share/discover/*.lst >>$F rm $F.tmp F1=/etc/mkinitrd/scripts/50bootcddiscover cat <$F1 #!/bin/sh F2=\$INITRDDIR/scripts/bootcd mkdir \$INITRDDIR/bootmount mkdir \$INITRDDIR/old cat <\$F2 /bin/echo "running /scripts/bootcd" >&2 mount -nt proc proc /proc MODULES=\\\$(discover --disable-all --enable=pci --module scsi) for M in \\\$MODULES; do modprobe \\\$M done devices=\\\$(discover --device cdrom) for s in \\\$devices do mount -n \\\$s /bootmount if test -f /bootmount/bootmount/version then echo found root at \\\$s pivot_root /bootmount /old unmount -n /proc exit fi umount -n /bootmount done umount -n /proc end2 chmod 755 \$F2 end1 chmod 755 $F1 mkinitrd -k -o /initrd.img lilo # Warning echo "Please reboot now, before using bootcdwrite" From azajac@vif.com Fri Oct 31 13:12:11 2003 Received: from ip216-239-64-165.vif.net ([216.239.64.165] helo=petra.vif.com) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1AFY8R-0003Yw-00 for ; Fri, 31 Oct 2003 13:12:11 +0100 Received: from petra.vif.com (localhost [127.0.0.1]) by petra.vif.com (8.12.9/8.12.9) with ESMTP id h9VCCAn2010491 for ; Fri, 31 Oct 2003 07:12:10 -0500 (EST) (envelope-from azajac@vif.com) Received: (from squid@localhost) by petra.vif.com (8.12.9/8.12.9/Submit) id h9VCC9Xq010490 for bootcd-user@lists.alioth.debian.org; Fri, 31 Oct 2003 07:12:09 -0500 (EST) (envelope-from azajac@vif.com) X-Authentication-Warning: petra.vif.com: squid set sender to azajac@vif.com using -f Received: from 142.85.4.18 ([142.85.4.18]) by email.vif.com (Horde) with HTTP for ; Fri, 31 Oct 2003 07:12:09 -0500 Message-ID: <1067602329.6dm8ncuxdqo8@email.vif.com> Date: Fri, 31 Oct 2003 07:12:09 -0500 From: azajac@vif.com To: bootcd-user@lists.alioth.debian.org References: <20031031053709.18566.2.Mailman@quantz.debian.org> In-Reply-To: <20031031053709.18566.2.Mailman@quantz.debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Originating-IP: 142.85.4.18 Subject: [Bootcd-user] Re: bootcdmkinitrd and scsi Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: Ok so the script didn't work. What was happening is that scsi emulation was enabled by the initrd and that was how it was working. That is why I still had to enter the kernel parameters to find root. I fixed a few things in the script after I found that pivot_root was giving me an error. I had not been noticing this. My usage of pivot_root was incorrect it now looks like: mount $s /cdrom cd /cdrom pivot_root . old (no backslash before old...) Anyway, now that that is working I always get a kernel panic. My kernel does not use devfs and I guess that I do not have all the devices I need. I get /dev2/root2 special device not found Should I umount a few things before pivot_root or should I add device nodes to my cdrom tree? I don't know where to go from here... AZ. From djmaecki@ull.at Fri Oct 31 13:24:13 2003 Received: from stud3.tuwien.ac.at ([193.170.75.13]) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1AFYK5-00055I-00 for ; Fri, 31 Oct 2003 13:24:13 +0100 Received: from marvin (v208-157.vps.tuwien.ac.at [128.131.208.157]) by stud3.tuwien.ac.at (8.9.3 (PHNE_28810+JAGae91741+JAGae92668)/8.9.3) with ESMTP id NAA08781 for ; Fri, 31 Oct 2003 13:24:11 +0100 (MET) Received: from djmaecki by marvin with local (Exim 4.22) id 1AFYK2-00084t-My for bootcd-user@lists.alioth.debian.org; Fri, 31 Oct 2003 13:24:10 +0100 Date: Fri, 31 Oct 2003 13:24:10 +0100 From: Thomas Krennwallner To: bootcd-user@lists.alioth.debian.org Subject: Re: [Bootcd-user] Re: bootcdmkinitrd and scsi Message-ID: <20031031122410.GB31010@ull.at> Mail-Followup-To: bootcd-user@lists.alioth.debian.org References: <20031031053709.18566.2.Mailman@quantz.debian.org> <1067602329.6dm8ncuxdqo8@email.vif.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ALfTUftag+2gvp1h" Content-Disposition: inline In-Reply-To: <1067602329.6dm8ncuxdqo8@email.vif.com> Organization: Vienna University of Technology X-GPG-Fingerprint: 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B X-GPG-Key: http://bigfish.ull.at/~djmaecki/krennwallner.gpg.asc X-Accept-Language: en,de X-Operating-System: Debian GNU/Linux User-Agent: Mutt/1.5.4i Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: --ALfTUftag+2gvp1h Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! On Fri Oct 31, 2003 at 07:12:09AM -0500, azajac@vif.com wrote: > /dev2/root2 special device not found >=20 > Should I umount a few things before pivot_root or should I add device > nodes to my cdrom tree? I don't know where to go from here... I'm no pivot_root expert. Maybe the documentation of pivot_root helps. I think it's somewhere in /usr/src/kernel-source-X.Y.Z/Documentation. A quick grep should help ;-) Also try to search for /dev2/root2 in google. so long Krenni --=20 .''`. Obviously we do not want to leave zombies around. - W. R. Stevens : :' : Thomas Krennwallner `. `'` 1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B `- http://bigfish.ull.at/~djmaecki/ --ALfTUftag+2gvp1h Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/olRq/1hOWWeh2nsRAoZOAJ0WDHQkL8P0XG91wBHi/9QSexKZeQCeJVVe fK6kXrVYpCL6hzhSIa3Ghis= =qk7x -----END PGP SIGNATURE----- --ALfTUftag+2gvp1h-- From azajac@vif.com Sat Nov 01 20:32:20 2003 Received: from ip216-239-64-165.vif.net ([216.239.64.165] helo=petra.vif.com) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1AG1Tw-00051q-00 for ; Sat, 01 Nov 2003 20:32:20 +0100 Received: from petra.vif.com (localhost [127.0.0.1]) by petra.vif.com (8.12.9/8.12.9) with ESMTP id hA1JWJn2089627 for ; Sat, 1 Nov 2003 14:32:19 -0500 (EST) (envelope-from azajac@vif.com) Received: (from squid@localhost) by petra.vif.com (8.12.9/8.12.9/Submit) id hA1JWJYF089626 for bootcd-user@lists.alioth.debian.org; Sat, 1 Nov 2003 14:32:19 -0500 (EST) (envelope-from azajac@vif.com) X-Authentication-Warning: petra.vif.com: squid set sender to azajac@vif.com using -f Received: from ip216-239-65-6.vif.net (ip216-239-65-6.vif.net [216.239.65.6]) by email.vif.com (Horde) with HTTP for ; Sat, 1 Nov 2003 14:32:19 -0500 Message-ID: <1067715139.2ntd0gkusc4k@email.vif.com> Date: Sat, 1 Nov 2003 14:32:19 -0500 From: azajac@vif.com To: bootcd-user@lists.alioth.debian.org MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Originating-IP: 216.239.65.6 Subject: [Bootcd-user] Re: Re: bootcdmkinitrd and scsi (Thomas Krennwallner) Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: Hello. I got it to work! I took a look at the initrd's /sbin/init. Since this is called and has to finish before the cdrom filesystem (real root) can be mounted, I thought that it would be interesting. The last thing that it does is cd to /mnt and pivot_root. So I used that. /cdrom is mounted to the discovered root filesystem (see bootcdmkinitrd included) and I modified the initrd /sbin/init to mount /cdrom instead of mounting /mnt. Now it seems to work as desired... I could not modify /sbin/init from the bootcdmkinitrd script since I am not that good a programmer.(not at all) I did it by hand and called mkcramfs initrd /initrd.img PS. I do not reboot after running boocdmkinitrd since this should leave my system unbootable (because no /cdrom is mounted when booting from hard disk...) I remove the initrd=/... from lilo.conf and then run lilo first!!!! So here is the /sbin/init from within the initrd: #!/bin/sh # # $Id: init,v 1.35 2003/09/08 12:33:27 herbert Exp $ mount_device() { unset flags fstype set -f set +f $cmdline for i; do case "$i" in rootflags=*) flags=${i#rootflags=} ;; rootfstype=*) fstype=${i#rootfstype=} ;; esac done if [ -n "$fstype" ]; then mount -nrt "$fstype" ${flags:+-o "$flags"} $device /mnt return fi IFS=, set -f set +f -- $FSTYPES auto unset IFS for i; do mount -nrt "$i" ${flags:+-o "$flags"} $device /mnt && break done } try_name() { [ -f /sys/block/$1/dev ] || return 1 read dev < /sys/block/$1/dev case $dev in *:*) minor=${dev#*:} major=${dev%:*} ;; *) minor=$((0x${dev#??})) major=$((0x${dev%??})) ;; esac if ! [ $2 ]; then return fi [ -f /sys/block/$1/range ] || return 1 read range < /sys/block/$1/range [ $2 -lt $range ] || return 1 minor=$(($minor + $2)) } get_sysfs_device() { case $ROOT in /dev/*) ;; *) return ;; esac IFS=/ set -f set +f ${ROOT#/dev/} IFS=. root=$* unset IFS try_name "$root" && return part=${root##*[!0-9]} root=${root%$part} if [ -z "$root" ]; then return fi try_name "$root" $part && return case $root in *[0-9]p) ;; *) return 0 ;; esac try_name "${root%p}" $part return 0 } get_device() { major=$(($rootdev >> 8)) minor=$(($rootdev & 255)) if [ $rootdev -eq 0 ] || [ $major -eq 58 ] || [ $major -eq 254 ]; then if [ -b "$ROOT" ]; then device=$ROOT return fi if mount -nt sysfs sysfs sys > /dev/null 2>&1; then get_sysfs_device umount -n sysfs fi fi mknod dev2/root2 b $major $minor device=/dev2/root2 } mount_root() { mount -nt proc proc proc mount -nt tmpfs tmpfs dev2 mount -nt devfs devfs devfs get_device mount_device umount -n devfs umount -n dev2 umount -n proc } get_cmdline() { init=/sbin/init root= ide_options= for i in $(cat proc/cmdline); do case $i in init=*) init=${i#init=} ;; root=*) root=${i#root=} ;; ide*= | hd[!=]*=) ide_options="$ide_options $i" ;; esac done case $root in /dev/*) ROOT=$root ;; esac } call() { . "$@" } export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin . /linuxrc.conf echo "initrd-tools: $VERSION" read root < tmp/root umount -n tmp mount -nt proc proc proc echo $root > proc/sys/kernel/real-root-dev get_cmdline [ -c /dev/.devfsd ] && DEVFS=yes mount -nt devfs devfs devfs if [ -n "$ide_options" ]; then echo modprobe -k ide-mod "options=\"$ide_options\"" modprobe -k ide-mod options="$ide_options" fi call /loadmodules if [ $DELAY -gt 0 ]; then echo "Waiting for $DELAY seconds, press ENTER to obtain a shell." trap "timeout=yes" USR1 timeout= { sleep $DELAY; kill -USR1 $$ 2> /dev/null; }& pid=$! read line trap "" USR1 kill $pid wait [ $timeout ] || exec sh fi call /script umount -n devfs umount -n proc for i in /scripts/*; do [ -f "$i" ] || continue case "$i" in *.sh) (. $i) ;; *) $i ;; esac done cd / mount -nt proc proc proc rootdev=$(cat proc/sys/kernel/real-root-dev) cmdline=$(cat /proc/cmdline) umount -n proc if [ $rootdev != 256 ]; then mount_root ################# HERE ARE THE MODIFICATIONS! cd /cdrom [ $DEVFS ] && mount -nt devfs devfs dev pivot_root . initrd fi if ! [ -x ${init#/} ]; then init=/sbin/init fi if type chroot > /dev/null 2>&1; then exec chroot . $init "$@" < dev/console > dev/console 2>&1 fi exec $init "$@" < dev/console > dev/console 2>&1 and here is bootcdmkinitrd: #!/bin/sh # /usr/sbin/bootcdmkinitrd set -u KERN=$(uname -r) INITRD=/boot/initrd.img-$KERN ETCMKI=/etc/mkinitrd devices="" s="" # Warning echo "Warning: this script assumes the following:" echo "- the running kernel is the one that will be used on bootcd" echo "- initrd is used" echo "- lilo is used" echo "Warning: this script will do the following:" echo "- /etc/mkinitrd/ will be changed." echo "- mkinitrd will be called. This will change $INITRD." echo "- lilo will be called." while :; do echo -n "OK to continue ? (y|n)" read A [ "$A" = "n" ] && exit [ "$A" = "y" ] && break done # Checks if [ ! "$(grep "^[[:blank:]]*initrd=" /etc/lilo.conf)" ]; then echo "/etc/lilo.conf has no line initrd=. This means that you" >&2 echo "are not using lilo, or that you are not using initrd." >&2 echo "This skript only works with lilo and initrd." >&2 exit 1 fi if [ ! "$(grep "^[[:blank:]]*initrd=/initrd.img[[:blank:]]*$" /etc/lilo.conf)" ]; then echo "Your /etc/lilo.conf has no line with initrd=/initrd.img. Because" >&2 echo "this script can only support standard configurations, please edit" >&2 echo "lilo.conf run lilo and reboot to test your configuration. Then " >&2 echo "run this script again." >&2 exit 1 fi if [ ! "$(/bin/ls -l /initrd.img | grep -e "-> $INITRD$")" ]; then echo "/initrd.img must be a link to $INITRD." >&2 exit 1 fi if [ ! -d $ETCMKI ]; then echo "ERROR: No mkinitrd config dir $ETCMKI." >&2 echo " Is initrd-tools.deb installed ?" >&2 fi if [ ! -f $INITRD ]; then echo "$INITRD does not exist." >&2 exit 1 fi # Start [ -f /etc/mkinitrd.tgz ] && mv /etc/mkinitrd.tgz /etc/mkinitrd.tgz.old (cd /etc; tar czf mkinitrd.tgz mkinitrd) F=/etc/mkinitrd/exe touch $F cp $F $F.tmp cat $F.tmp | grep -v "^/sbin/discover\>" >$F echo "/sbin/discover" >>$F rm $F.tmp F=/etc/mkinitrd/modules touch $F cp $F $F.tmp cat $F.tmp | grep -v "^isofs\>" >$F echo "isofs" >>$F rm $F.tmp F=/etc/mkinitrd/files touch $F cp $F $F.tmp cat $F.tmp | grep -v "^/usr/share/discover/.*\.lst\>" >$F ls /usr/share/discover/*.lst >>$F ls /dev/scd* >>$F rm $F.tmp F1=/etc/mkinitrd/scripts/50bootcddiscover cat <$F1 #!/bin/sh F2=\$INITRDDIR/scripts/bootcd mkdir \$INITRDDIR/cdrom cat <\$F2 /bin/echo "running /scripts/bootcd" >&2 mount -nt proc proc /proc MODULES=\\\$(discover --disable-all --enable=pci --module scsi) for M in \\\$MODULES; do modprobe \\\$M done devices=\\\$(discover --device cdrom) for s in \\\$devices do mount -n \\\$s /cdrom if test -f /cdrom/bootmount/version then echo found root at \\\$s # Leave /cdrom mounted and leave... umount -n /proc exit fi umount -n /cdrom done umount -n /proc end2 chmod 755 \$F2 end1 chmod 755 $F1 mkinitrd -k -o /initrd.img lilo # Warning echo "Please reboot now, before using bootcdwrite" From admin@zionsecure.com Fri Nov 07 05:28:52 2003 Received: from imf19aec.mail.bellsouth.net ([205.152.59.67]) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1AHyEt-0001gP-00 for ; Fri, 07 Nov 2003 05:28:51 +0100 Received: from adsl-068-209-111-012.sip.mia.bellsouth.net ([68.209.111.12]) by imf19aec.mail.bellsouth.net (InterMail vM.5.01.05.27 201-253-122-126-127-20021220) with ESMTP id <20031107042820.NURQ1849.imf19aec.mail.bellsouth.net@adsl-068-209-111-012.sip.mia.bellsouth.net> for ; Thu, 6 Nov 2003 23:28:20 -0500 From: Brian Toovey Reply-To: admin@zionsecure.com To: bootcd-user@lists.alioth.debian.org Content-Type: text/plain Organization: Zion Network Security Message-Id: <1068179295.1090.81.camel@noc.zionsecure.com> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Thu, 06 Nov 2003 23:28:15 -0500 Content-Transfer-Encoding: 7bit Subject: [Bootcd-user] mysql Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: Hello All: Anyone had success getting mysqld to run? requires socket which not copied to /var in ram copied /var.ro/run/mysql to /var/run/mysql with no effect morpheus:/usr/share/doc/bootcd# cd /etc/init.d morpheus:/etc/init.d# ./mysql start Starting MySQL database server: mysqld...failed. Please take a look at /var/log/mysql/mysql.err morpheus:/etc/init.d# cat /var/log/mysql/mysql.err 031106 23:26:57 mysqld started Warning: Ignoring user change to 'mysql' because the user was set to 'mysql' earlier on the command line 031106 23:26:57 Can't start server : Bind on unix socket: Permission denied 031106 23:26:57 Do you already have another mysqld server running on socket: /var/run/mysqld/mysqld.sock ? 031106 23:26:57 Aborting 031106 23:26:57 /usr/sbin/mysqld: Shutdown Complete 031106 23:26:57 mysqld ended From djmaecki@ull.at Fri Nov 07 08:03:19 2003 Received: from stud3.tuwien.ac.at ([193.170.75.13]) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1AI0eN-0006xQ-00 for ; Fri, 07 Nov 2003 08:03:19 +0100 Received: from marvin (v208-157.vps.tuwien.ac.at [128.131.208.157]) by stud3.tuwien.ac.at (8.9.3 (PHNE_28810+JAGae91741+JAGae92668)/8.9.3) with ESMTP id IAA14531 for ; Fri, 7 Nov 2003 08:03:18 +0100 (MET) Received: from djmaecki by marvin with local (Exim 4.22) id 1AI0eJ-0007R2-58 for bootcd-user@lists.alioth.debian.org; Fri, 07 Nov 2003 08:03:15 +0100 Date: Fri, 7 Nov 2003 08:03:15 +0100 From: Thomas Krennwallner To: bootcd-user@lists.alioth.debian.org Subject: Re: [Bootcd-user] mysql Message-ID: <20031107070314.GD24210@ull.at> Mail-Followup-To: bootcd-user@lists.alioth.debian.org References: <1068179295.1090.81.camel@noc.zionsecure.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="g7w8+K/95kPelPD2" Content-Disposition: inline In-Reply-To: <1068179295.1090.81.camel@noc.zionsecure.com> Organization: Vienna University of Technology X-GPG-Fingerprint: 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B X-GPG-Key: http://bigfish.ull.at/~djmaecki/krennwallner.gpg.asc X-Accept-Language: en,de X-Operating-System: Debian GNU/Linux User-Agent: Mutt/1.5.4i Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: --g7w8+K/95kPelPD2 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! On Thu Nov 06, 2003 at 11:28:15PM -0500, Brian Toovey wrote: > copied /var.ro/run/mysql to /var/run/mysql with no effect is this a directory? Please send the output of ls -la /var/run/mysql > 031106 23:26:57 Do you already have another mysqld server running on > socket: /var/run/mysqld/mysqld.sock ? Hm, is /var/run/mysqld present on the bootcd's ramdisk? So long Thomas --=20 .''`. Obviously we do not want to leave zombies around. - W. R. Stevens : :' : Thomas Krennwallner `. `'` 1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B `- http://bigfish.ull.at/~djmaecki/ --g7w8+K/95kPelPD2 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/q0Oy/1hOWWeh2nsRAldSAJ46b8CGRY61SDCZjLi5CxKhCyFbWACgryPS cuU3L+/1X9qnJzSN0e4pBtg= =T2r7 -----END PGP SIGNATURE----- --g7w8+K/95kPelPD2-- From bernd.schumacher@hp.com Fri Dec 12 11:07:16 2003 Received: from bbnrelbul01.net.external.hp.com ([155.208.255.20]) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1AUkCa-0003SY-00 for ; Fri, 12 Dec 2003 11:07:16 +0100 Received: from isar.bbn.hp.com (isar.bbn.hp.com [15.140.168.13]) by bbnrelbul01.net.external.hp.com (Postfix) with ESMTP id C2FC238320; Fri, 12 Dec 2003 11:07:12 +0100 (CET) Received: by isar.bbn.hp.com with Internet Mail Service (5.5.2657.72) id ; Fri, 12 Dec 2003 11:07:12 +0100 Message-ID: <3EB3EB7AC1D0B14FA1DA4AF23C04B7FD9B9FCD@hesse.bbn.hp.com> From: "SCHUMACHER,BERND (HP-Germany,ex1)" To: 'Olivier Le Cam' , "SCHUMACHER,BERND (HP-Germany,ex1)" Cc: "'bootcd-user@lists.alioth.debian.org'" Date: Fri, 12 Dec 2003 11:07:09 +0100 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2657.72) Content-Type: text/plain Subject: [Bootcd-user] RE: bootcd recognize CDROM drive Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: Hi for this to work you could use initrd. Because I do not use initrd personally I only try to make sure that initrd is working without any special features (bootcdmkinitrd). But you could build a script which runs in initrd. This script would have to test every possible CDROM Device for a special file which is only on a bootcd. I think this is the way how knoppix works. So you could look at knoppix for an example. If anybody would build such a skript, we could include it in the Debian Package bootcdmkinitrd. Bernd > -----Original Message----- > From: Olivier Le Cam [mailto:Olivier.LeCam@crdp.ac-versailles.fr] > Sent: Donnerstag, 11. Dezember 2003 14:48 > To: bernd.schumacher@hp.com > Subject: bootcd > > > Hi - > > I currently work on a self-debian installer to help > professors who have > no linux experience to install a file server in their school. > > I use for that bootcd, which is really a nice software, and I > thank you > for that. > > However, I would like to get bootcd to be able to recognize > itself which > CDROM drive device it is mounted on, because most of the > professors are > completely stripped regarding to the "kernel panic" which > appears if the > CD device is not hdc. Do you know if it is possible to do > something for? > > Thanks in anticipation for your help. > > Regards, > -- > Olivier Le Cam > Data processing department of French national education > From djmaecki@ull.at Fri Dec 12 11:18:57 2003 Received: from stud3.tuwien.ac.at ([193.170.75.13]) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1AUkNt-0003iB-00 for ; Fri, 12 Dec 2003 11:18:57 +0100 Received: from marvin (v208-157.vps.tuwien.ac.at [128.131.208.157]) by stud3.tuwien.ac.at (8.9.3 (PHNE_28810+JAGae91741+JAGae92668)/8.9.3) with ESMTP id LAA20471; Fri, 12 Dec 2003 11:18:56 +0100 (MET) Received: from djmaecki by marvin with local (Exim 4.22) id 1AUkMK-0006th-Ax; Fri, 12 Dec 2003 11:17:20 +0100 Date: Fri, 12 Dec 2003 11:17:20 +0100 From: Thomas Krennwallner To: "bootcd-user@lists.alioth.debian.org" Cc: Olivier Le Cam Subject: Re: [Bootcd-user] RE: bootcd recognize CDROM drive Message-ID: <20031212101719.GK22744@ull.at> Mail-Followup-To: "bootcd-user@lists.alioth.debian.org" , Olivier Le Cam References: <3EB3EB7AC1D0B14FA1DA4AF23C04B7FD9B9FCD@hesse.bbn.hp.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FxavXfDenm+F7xE/" Content-Disposition: inline In-Reply-To: <3EB3EB7AC1D0B14FA1DA4AF23C04B7FD9B9FCD@hesse.bbn.hp.com> Organization: Vienna University of Technology X-GPG-Fingerprint: 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B X-GPG-Key: http://bigfish.ull.at/~djmaecki/krennwallner.gpg.asc X-Accept-Language: en,de X-Operating-System: Debian GNU/Linux User-Agent: Mutt/1.5.4i Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: --FxavXfDenm+F7xE/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! On Fri Dec 12, 2003 at 11:07:09AM +0100, Bernd Schumacher wrote: > for this to work you could use initrd. Because I do not use initrd > personally I only try to make sure that initrd is working without any > special features (bootcdmkinitrd).=20 >=20 > But you could build a script which runs in initrd. This script would > have to test every possible CDROM Device for a special file which is > only on a bootcd. I think this is the way how knoppix works. So you > could look at knoppix for an example. >=20 > If anybody would build such a skript, we could include it in the > Debian Package bootcdmkinitrd. I'm looking forward to hack such script in the xmas holidays (if I get the time). Maybe someone can help me testing it? I will post it on bootcd-user. So long Thomas --=20 .''`. Obviously we do not want to leave zombies around. - W. R. Stevens : :' : Thomas Krennwallner `. `'` 1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B `- http://bigfish.ull.at/~djmaecki/ --FxavXfDenm+F7xE/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.3 (GNU/Linux) iD8DBQE/2ZWv/1hOWWeh2nsRAnfyAJ45xc7MrjGJY/avN7g886ulzSmXvACghtrG SjHh0OvWO+skpaR5+a16DNE= =Bxa7 -----END PGP SIGNATURE----- --FxavXfDenm+F7xE/-- From azajac@vif.com Sun Dec 14 03:12:03 2003 Received: from ip216-239-64-165.vif.net ([216.239.64.165] helo=petra.vif.com) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1AVLjn-0007Eu-00 for ; Sun, 14 Dec 2003 03:12:03 +0100 Received: from petra.vif.com (localhost [127.0.0.1]) by petra.vif.com (8.12.9/8.12.9) with ESMTP id hBE2C2n2002023 for ; Sat, 13 Dec 2003 21:12:02 -0500 (EST) (envelope-from azajac@vif.com) Received: (from squid@localhost) by petra.vif.com (8.12.9/8.12.9/Submit) id hBE2C2ob002022 for bootcd-user@lists.alioth.debian.org; Sat, 13 Dec 2003 21:12:02 -0500 (EST) (envelope-from azajac@vif.com) X-Authentication-Warning: petra.vif.com: squid set sender to azajac@vif.com using -f Received: from ip216-239-66-207.vif.net (ip216-239-66-207.vif.net [216.239.66.207]) by email.vif.com (Horde) with HTTP for ; Sat, 13 Dec 2003 21:12:02 -0500 Message-ID: <1071367922.5t5govm3iesc@email.vif.com> Date: Sat, 13 Dec 2003 21:12:02 -0500 From: azajac@vif.com To: bootcd-user@lists.alioth.debian.org References: <20031213053457.23263.57402.Mailman@quantz.debian.org> In-Reply-To: <20031213053457.23263.57402.Mailman@quantz.debian.org> MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) 4.0-cvs X-Originating-IP: 216.239.66.207 Subject: [Bootcd-user] Re: RE: bootcd recognize CDROM drive Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: > I'm looking forward to hack such script in the xmas holidays (if I get > the time). > > Maybe someone can help me testing it? I will post it on bootcd-user. > Regarding CDROM recognition, I got it to work in november, but I have to modify the initrd by hand. If you can put it into a script so that you do not have to modify the initrd, I would be happy to test it out... AZ. From djmaecki@ull.at Sun Dec 14 08:47:55 2003 Received: from stud3.tuwien.ac.at ([193.170.75.13]) by quantz.debian.org with esmtp (Exim 3.35 #1 (Debian)) id 1AVQyo-0000CI-00 for ; Sun, 14 Dec 2003 08:47:54 +0100 Received: from marvin (v208-157.vps.tuwien.ac.at [128.131.208.157]) by stud3.tuwien.ac.at (8.9.3 (PHNE_28810+JAGae91741+JAGae92668)/8.9.3) with ESMTP id HAA06734 for ; Sun, 14 Dec 2003 07:43:59 +0100 (MET) Received: from djmaecki by marvin with local (Exim 4.22) id 1AVQwT-0000ZZ-Jn for bootcd-user@lists.alioth.debian.org; Sun, 14 Dec 2003 08:45:29 +0100 Date: Sun, 14 Dec 2003 08:45:29 +0100 From: Thomas Krennwallner To: bootcd-user@lists.alioth.debian.org Subject: Re: [Bootcd-user] Re: RE: bootcd recognize CDROM drive Message-ID: <20031214074529.GC32713@ull.at> Mail-Followup-To: bootcd-user@lists.alioth.debian.org References: <20031213053457.23263.57402.Mailman@quantz.debian.org> <1071367922.5t5govm3iesc@email.vif.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="RYJh/3oyKhIjGcML" Content-Disposition: inline In-Reply-To: <1071367922.5t5govm3iesc@email.vif.com> Organization: Vienna University of Technology X-GPG-Fingerprint: 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B X-GPG-Key: http://bigfish.ull.at/~djmaecki/krennwallner.gpg.asc X-Accept-Language: en,de X-Operating-System: Debian GNU/Linux User-Agent: Mutt/1.5.4i Sender: bootcd-user-admin@lists.alioth.debian.org Errors-To: bootcd-user-admin@lists.alioth.debian.org X-BeenThere: bootcd-user@lists.alioth.debian.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Mailing list for users of bootcd List-Unsubscribe: , List-Archive: --RYJh/3oyKhIjGcML Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! On Sat Dec 13, 2003 at 09:12:02PM -0500, azajac@vif.com wrote: > Regarding CDROM recognition, I got it to work in november, but I have > to modify the initrd by hand. If you can put it into a script so that > you do not have to modify the initrd, I would be happy to test it > out... I know ;-). Right know I don't have the time to integrate it. But I would say that it would be default to search for cdrom if someone uses initrd booting. So long Thomas --=20 .''`. Obviously we do not want to leave zombies around. - W. R. Stevens : :' : Thomas Krennwallner `. `'` 1024D/67A1DA7B 9484 D99D 2E1E 4E02 5446 DAD9 FF58 4E59 67A1 DA7B `- http://bigfish.ull.at/~djmaecki/ --RYJh/3oyKhIjGcML Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNA