diff --git a/target/livecd/build.sh b/target/livecd/build.sh index ba8b8952f..ba20c76ba 100644 --- a/target/livecd/build.sh +++ b/target/livecd/build.sh @@ -1,33 +1,2 @@ -disksdir="$build_rock/livecd" - -if [ -z "`which mksquashfs`" ] ; then - echo "Please make sure mksquashfs is installed! Rock Package: fake/squashfs-tools" - exit 1; -fi ; - pkgloop -rm -rf $disksdir; mkdir -p $disksdir; chmod 700 $disksdir - -. scripts/parse-config - -. $base/target/$target/build_stage2.sh - -. $base/target/$target/build_stage1.sh - -if [ -f $base/target/$target/$arch/build.sh ]; then - . $base/target/$target/$arch/build.sh -fi - -echo_header "Creating ISO filesystem description." -cd $disksdir; rm -rf isofs; mkdir -p isofs - -echo_status "Creating livecd/isofs directory.." -ln 2nd_stage.img.z isofs/ -ln *.img initrd.gz isofs/ 2>/dev/null || true - -echo_status "Creating isofs.txt file .." -echo "DISK1 build/${ROCKCFG_ID}/ROCK/livecd/isofs/ ` - `${ROCKCFG_SHORTID}/" > ../isofs_generic.txt -cat ../isofs_*.txt > ../isofs.txt - diff --git a/target/livecd/build_stage1.sh b/target/livecd/build_stage1.sh deleted file mode 100644 index 709bae49b..000000000 --- a/target/livecd/build_stage1.sh +++ /dev/null @@ -1,213 +0,0 @@ - -echo_header "Creating initrd data:" -rm -rf $disksdir/initrd -mkdir -p $disksdir/initrd/{dev,proc,sys,mnt/{cdrom,floppy,stick,}} -mkdir -p $disksdir/initrd/mnt/{cowfs_ro/{etc,home,bin,sbin,opt,usr/{bin,sbin},tmp,var,lib},cowfs_rw} -cd $disksdir/initrd - -# -echo_status "Creating read-only symlinks..." -for d in etc home bin sbin opt usr tmp var lib ; do - ln -s mnt/cowfs_rw/$d $d - ln -s ../cowfs_ro/$d mnt/cowfs_rw/$d -done -# -if [ -L $disksdir/2nd_stage/lib64 ] ; then - ln -s mnt/cowfs_rw/lib64 lib64 - ln -s ../cowfs_ro/lib64 mnt/cowfs_rw/lib64 -fi - -rock_targetdir="$base/target/$target/" -rock_target="$target" - -rootdir="$disksdir/2nd_stage" -targetdir="$disksdir/initrd" -cross_compile="" -if [ "$ROCKCFG_CROSSBUILD" = "1" ] ; then - cross_compile="`find ${base}/ROCK/tools.cross/ -name "*-readelf"`" - cross_compile="${cross_compile##*/}" - cross_compile="${cross_compile%%readelf}" -fi -initrdfs="ext2fs" -block_size="" -ramdisk_size=12288 - -case ${initrdfs} in - ext2fs|ext3fs|cramfs) - initrd_img="${disksdir}/initrd.img" - ;; - ramfs) - initrd_img="${disksdir}/initrd.cpio" - ;; -esac - -echo_status "Creating some device nodes" -mknod ${targetdir}/dev/ram0 b 1 0 -mknod ${targetdir}/dev/null c 1 3 -mknod ${targetdir}/dev/zero c 1 5 -mknod ${targetdir}/dev/tty c 5 0 -mknod ${targetdir}/dev/console c 5 1 - -# this copies a set of programs and the necessary libraries into a -# chroot environment - -echo_status "Create checkisomd5 binary" -cp -r ${base}/misc/isomd5sum ${base}/build/${ROCKCFG_ID}/ -cat >${base}/build/${ROCKCFG_ID}/compile_isomd5sum.sh </dev/null | grep "(NEEDED)" | - sed -e"s,.*Shared library: \[\(.*\)\],\1," | - while read library ; do - find ${libdirs} -name "${library}" 2>/dev/null | - sed -e "s,^${rootdir},,g" | tr '\n' ' ' - done -} - -libs="${libs} `needed_libs bin/checkisomd5`" - -echo_status "Copying other files ... " -for x in ${rock_targetdir}/initrd/initrd_* ; do - [ -f ${x} ] || continue - while read file target ; do - file="${rootdir}/${file}" - [ -e ${file} ] || continue - - while read f ; do - tfile=${targetdir}/${target}${f#${file}} - [ -e ${tfile} ] && continue - - if [ -d ${f} -a ! -L ${f} ] ; then - mkdir -p "${tfile}" - continue - else - mkdir -p "${tfile%/*}" - fi - - cp -a ${f} ${tfile} - - file -L ${f} | grep -q ELF || continue - libs="${libs} `needed_libs ${f}`" - done < <( find "${file}" ) - done < ${x} -done - -for x in modprobe.static modprobe.static.old \ - insmod.static insmod.static.old -do - if [ -f ../2nd_stage/sbin/${x/.static/} ]; then - rm -f mnt/cowfs_ro/bin/${x/.static/} - cp -a ../2nd_stage/sbin/${x/.static/} mnt/cowfs_ro/sbin/ - fi - if [ -f ../2nd_stage/sbin/$x ]; then - rm -f mnt/cowfs_ro/bin/$x mnt/cowfs_ro/bin/${x/.static/} - cp -a ../2nd_stage/sbin/$x mnt/cowfs_ro/sbin/ - ln -sf $x mnt/cowfs_ro/bin/${x/.static/} - fi -done -# -echo_status "Copy kernel modules." -for x in ../2nd_stage/lib/modules/*/kernel/drivers/{scsi,cdrom,ide,ide/pci,ide/legacy}/*.{ko,o} ; do - # this test is needed in case there are only .o or only .ko files - if [ -f $x ]; then - xx=mnt/cowfs_ro/${x#../2nd_stage/} - mkdir -p $( dirname $xx ) ; cp $x $xx - strip --strip-debug $xx - fi -done -# -for x in ../2nd_stage/lib/modules/*/modules.{dep,pcimap,isapnpmap} ; do - cp $x mnt/cowfs_ro/${x#../2nd_stage/} || echo "not found: $x" ; -done -# -rm -f mnt/cowfs_ro/lib/modules/[0-9]*/kernel/drivers/net/{dummy,ppp*}.{o,ko} - -echo_status "Copying required libraries ... " -while [ -n "${libs}" ] ; do - oldlibs=${libs} - libs="" - for x in ${oldlibs} ; do - [ -e "${targetdir}/${x}" ] && continue - mkdir -p "${targetdir}/${x%/*}" - cp ${rootdir}/${x} ${targetdir}/${x} - file -L ${rootdir}/${x} | grep -q ELF || continue - for y in `needed_libs ${rootdir}/${x}` ; do - [ ! -e "${targetdir}/${y}" ] && libs="${libs} ${y}" - done - done -done - -echo_status "Creating links for identical files ..." -while read ck fn -do - # don't link empty files... - if [ "${oldck}" = "${ck}" -a -s "${fn}" ] ; then - echo_status "\`- Found ${fn#${targetdir}} -> ${oldfn#${targetdir}}." - rm ${fn} ; ln -s /${oldfn#${targetdir}} ${fn} - else - oldck=${ck} ; oldfn=${fn} - fi -done < <( find ${targetdir} -type f | xargs md5sum | sort ) - -cd .. - -echo_header "Creating initrd filesystem image: " - -ramdisk_size=8139 - -[ "${block_size}" == "" ] && block_size=1024 -block_count=$(( ( 1024 * ${ramdisk_size} ) / ${block_size} )) - -echo_status "Creating temporary files." -tmpdir=`mktemp -d` ; mkdir -p ${tmpdir} -dd if=/dev/zero of=${initrd_img} bs=${block_size} count=${block_count} &> /dev/null -tmpdev="`losetup -f 2>/dev/null`" -if [ -z "${tmpdev}" ] ; then - for x in /dev/loop* /dev/loop/* ; do - [ -b "${x}" ] || continue - losetup ${x} 2>&1 >/dev/null || tmpdev="${x}" - [ -n "${tmpdev}" ] && break - done - if [ -z "${tmpdev}" ] ; then - echo_status "No free loopback device found!" - rm -f ${tmpfile} ; rmdir ${tmpdir}; exit 1 - fi -fi -echo_status "Using loopback device ${tmpdev}." -losetup "${tmpdev}" ${initrd_img} - -echo_status "Writing initrd image file." -mkfs.${initrdfs:0:4} -b ${block_size} -m 0 -N 360 -q ${tmpdev} &> /dev/null -mount -t ${initrdfs:0:4} ${tmpdev} ${tmpdir} -rmdir ${tmpdir}/lost+found/ -cp -a ${targetdir}/* ${tmpdir} -umount ${tmpdir} - -echo_status "Removing temporary files." -losetup -d ${tmpdev} -rm -rf ${tmpdir} -# -echo_status "Compressing initrd image file." -gzip -9 -c ${initrd_img} > ${initrd_img}.gz -mv ${initrd_img%.img}{.img,}.gz - -target="$rock_target" diff --git a/target/livecd/build_stage2.sh b/target/livecd/build_stage2.sh deleted file mode 100644 index 35ec20fcf..000000000 --- a/target/livecd/build_stage2.sh +++ /dev/null @@ -1,63 +0,0 @@ -# -set -e -# -echo_header "Creating 2nd stage filesystem:" -mkdir -p $disksdir/2nd_stage -cd $disksdir/2nd_stage -mkdir -p mnt/source mnt/target ramdisk -# -echo_status "Extracting the packages archives." -for x in $( ls ../../pkgs/*.tar.bz2 | \ - grep -v ':doc.tar.bz2' ) -do - echo_status "\`- Extracting ${x##*/} ..." - tar --use-compress-program=bzip2 --force-local -xpf $x -done -# -echo_status "Saving boot/* - we do not need this on the 2nd stage ..." -rm -rf ../boot ; mkdir ../boot -mv boot/* ../boot/ -# -echo_status "Remove the stuff we do not need ..." -rm -rf usr/src -# -# TODO finish-package!! -echo_status "Running ldconfig to create links ..." -ldconfig -r . -echo_status "Running depmod for target system ..." -depmod -b $PWD -F ../boot/System.map `ls ../boot/vmlinuz_* | sed -e 's,\.\./boot/vmlinuz_,,'` -echo_status "Running mkfontscale/mkfontdir and fc-cache ..." -for dir in usr/X11R7/lib/X11/fonts/* ; do - [ -d $dir ] || continue - mkfontscale $dir - mkfontdir $dir - fc-cache -v $dir -done -# -echo_status "replacing some vital files for live useage ..." -cp -f $base/target/$target/fixedfiles/inittab etc/inittab -cp -f $base/target/$target/fixedfiles/login-shell sbin/login-shell -# this got drop once, so we ensure it's +xed. -chmod 0755 sbin/login-shell -cp -f $base/target/$target/fixedfiles/system etc/rc.d/init.d/system -cp -f $base/target/$target/fixedfiles/xorg.conf etc/X11/xorg.conf -# -echo_status "Creating home directories and users..." -mkdir home/{rocker,root} -chown 1000:100 home/rocker - -sed -i -e 's,root:.*,root:x:0:0:root:/home/root:/bin/bash,' etc/passwd -sed -i -e 's,root:.*,root:$1$9KtEb9vt$IDoD/c7IG5EpCwxvBudgA:13300::::::,' etc/shadow -echo 'rocker:x:1000:100:ROCK Live CD User:/home/rocker:/bin/bash' >> etc/passwd -echo 'rocker:$1$b3mL1k/q$zneIjKcHqok1T80fp1cPI1:13300:0:99999:7:::' >> etc/shadow -sed -i -e 's,wheel:x:10:,wheel:x:10:rocker,' etc/group -sed -i -e 's,video:x:16:,video:x:16:rocker,' etc/group -sed -i -e 's,sound:x:17:,sound:x:17:rocker,' etc/group -sed -i -e 's,cdrom:x:29:,cdrom:x:29:rocker,' etc/group - -# -echo_status "activating shadowfs through /etc/ld.so.preload" -echo "/usr/lib/libcowfs.so" > etc/ld.so.preload -# -echo_status "Creating 2nd_stage.img.z image... (this takes some time)... " -cd .. ; mksquashfs 2nd_stage 2nd_stage.img.z -noappend > /dev/null 2>&1 diff --git a/target/livecd/config.in b/target/livecd/config.in index 553f06751..3062052e6 100644 --- a/target/livecd/config.in +++ b/target/livecd/config.in @@ -1,3 +1,4 @@ +#!/bin/bash # --- ROCK-COPYRIGHT-NOTE-BEGIN --- # # This copyright note is auto-generated by ./scripts/Create-CopyPatch. @@ -23,26 +24,10 @@ #. target/livecd/default.pkgsel -ROCKCFG_LIVECD_USEKISS=1 - ROCKCFGSET_CREATE_TARBZ2=1 ROCKCFGSET_CREATE_GEM=0 ROCKCFGSET_PKGFILE_VER=0 -ROCKCFGSET_DIETLIBC=1 -ROCKCFGSET_DIETLIBC_DYN=0 -ROCKCFGSET_DIETLIBC_ALL=0 -ROCKCFGSET_DIETLIBC_modutils=1 -ROCKCFGSET_DIETLIBC_module_init_tools=1 -ROCKCFGSET_DIETLIBC_kiss=1 -ROCKCFGSET_DIETLIBC_gawk=0 - -ROCKCFGSET_PKG_GCC2_NO_CHILL=1 -ROCKCFGSET_PKG_GCC32_NO_JAVA=1 -ROCKCFGSET_PKG_GCC33_NO_JAVA=1 -ROCKCFGSET_PKG_GCC34_NO_JAVA=1 -ROCKCFGSET_PKG_GCC_GCC34=1 -ROCKCFGSET_PKG_GCC_GCC32=0 ROCKCFGSET_PKG_BASH_PROGCOMP=0 ROCKCFGSET_DO_REBUILD_STAGE=0 @@ -50,16 +35,8 @@ ROCKCFGSET_CREATE_DOCS=0 ROCKCFGSET_OPTSIZE=1 ROCKCFGSET_LIMITCXX=0 -ROCKCFGSET_PKG_LINUX_SRC24=0 -ROCKCFGSET_PKG_LINUX_SRC26=1 -ROCKCFGSET_PKG_LINUX_IMG24=0 -ROCKCFGSET_PKG_LINUX_IMG26=1 -ROCKCFGSET_PKG_LINUX_HEADERS=linux26 ROCKCFGSET_PKG_LINUX_USE26MODTOOLS=1 -# not static subversion -ROCKCFGSET_PKG_SUBVERSION_STATIC=0 - # default package selection for this target... # begin the sed string echo "pkgfilter sed '" > config/$config.$swpid/predefined-pkgsel.parsed @@ -69,14 +46,27 @@ echo "pkgfilter sed '" > config/$config.$swpid/predefined-pkgsel.parsed echo "'" >> config/$config.$swpid/predefined-pkgsel.parsed . config/$config.$swpid/predefined-pkgsel.parsed -pkgenable kiss -pkgenable dietlibc -pkgenable squashfs-tools -pkgenable shadowfs -pkgenable pseudonative-daemon +pkgdisable gcc2 +pkgdisable gcc32 +pkgdisable gcc33 +pkgdisable gcc34 +pkgdisable gcc40 +pkgdisable gcc41 + +# pkgenable pseudonative-daemon pkgenable tcp_wrappers pkgenable portmap -pkgenable pcmcia-cs -pkgenable hotplug +# pkgenable pcmcia-cs +# pkgenable hotplug pkgenable udev pkgenable disktype + +pkgenable fuse +pkgenable aufs +pkgenable rockinitramfs +pkgenable cpio + +pkgenable initramfs +pkgenable 2nd-stage-livecd +pkgenable bootloader +pkgenable isofs diff --git a/target/livecd/download.txt b/target/livecd/download.txt deleted file mode 100644 index 30c46f762..000000000 --- a/target/livecd/download.txt +++ /dev/null @@ -1 +0,0 @@ -611656477 squashfs3.0.tar.gz http://dl.sourceforge.net/squashfs/ diff --git a/target/livecd/fixedfiles/inittab b/target/livecd/fixedfiles/inittab deleted file mode 100644 index 919f01ff0..000000000 --- a/target/livecd/fixedfiles/inittab +++ /dev/null @@ -1,84 +0,0 @@ -# --- ROCK-COPYRIGHT-NOTE-BEGIN --- -# -# This copyright note is auto-generated by ./scripts/Create-CopyPatch. -# Please add additional copyright information _after_ the line containing -# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by -# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! -# -# ROCK Linux: rock-src/target/livecd/fixedfiles/inittab -# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. A copy of the GNU General Public -# License can be found at Documentation/COPYING. -# -# Many people helped and are helping developing ROCK Linux. Please -# have a look at http://www.rocklinux.org/ and the Documentation/TEAM -# file for details. -# -# --- ROCK-COPYRIGHT-NOTE-END --- -# -# See "man 5 inittab" for details. -# - -# The default runlevel. -id:2:initdefault: - -# /etc/rc.d executes the S and K scripts upon change -# of runlevel. -# -# Runlevels 0 and 6 are halt and reboot. -# Runlevels 1-5 are multi-user. -# Runlevel S is single user. -l0:0:wait:/etc/rc.d/rc -l1:1:wait:/etc/rc.d/rc -l2:2:wait:/etc/rc.d/rc -l3:3:wait:/etc/rc.d/rc -l4:4:wait:/etc/rc.d/rc -l5:5:wait:/etc/rc.d/rc -l6:6:wait:/etc/rc.d/rc -ls:S:wait:/etc/rc.d/rc -~~:S:wait:/sbin/sulogin - -# What to do when CTRL-ALT-DEL is pressed. -ca:12345:ctrlaltdel:/sbin/shutdown -r now - -# /sbin/agetty invocations for the runlevels. -# -# The "id" field MUST be the same as the last -# characters of the device (after "tty"). -# -# Format: -# ::: - -# -# Maintenace Console on /dev/console -# -#1:12345:respawn:/sbin/agetty -L -i -I '\012\015\012Maintenance Console:\012' 9600 console linux - -# -# Virtual Consoles 1-6 -# -# to enable the SAK blocking feature add the options "-t 10 -s /etc/sakmsg" -# -# to clear the screen on ANSI terminals add the option "-I '\033[H\033[J'" -# -# there are 3 Issue files: -# /etc/issue ........ Simple login screen for consoles or terminals -# /etc/issue.ansi ... Login screen for ANSI consoles or terminals -# /etc/issue.net .... Login message for network connections -# -1:12345:respawn:/sbin/agetty -L -i -I '\012\015\012Maintenance Console:\012' -l /sbin/login-shell -n 38400 vc/1 linux -2:12345:respawn:/sbin/agetty -f /etc/issue.ansi -l /sbin/login-shell -n 38400 vc/2 linux -3:12345:respawn:/sbin/agetty -f /etc/issue.ansi -l /sbin/login-shell -n 38400 vc/3 linux -4:12345:respawn:/sbin/agetty -f /etc/issue.ansi -l /sbin/login-shell -n 38400 vc/4 linux -5:12345:respawn:/sbin/agetty -f /etc/issue.ansi -l /sbin/login-shell -n 38400 vc/5 linux -6:12345:respawn:/sbin/agetty -f /etc/issue.ansi -l /sbin/login-shell -n 38400 vc/6 linux - -# -# A X display manager (multiplexer) -# -X:5:respawn:/usr/X11/bin/startxdm - diff --git a/target/livecd/fixedfiles/login-shell b/target/livecd/fixedfiles/login-shell deleted file mode 100644 index 1f82cd952..000000000 --- a/target/livecd/fixedfiles/login-shell +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/bash -echo "root and rocker's password is 'rock'" -cd /home/rocker -[ ! -f .profile ] && echo "cd /home/rocker" > .profile -exec /bin/su - rocker -c "/bin/bash --login" diff --git a/target/livecd/fixedfiles/system b/target/livecd/fixedfiles/system deleted file mode 100644 index e550ee968..000000000 --- a/target/livecd/fixedfiles/system +++ /dev/null @@ -1,238 +0,0 @@ -#!/bin/sh -# -# --- ROCK-COPYRIGHT-NOTE-BEGIN --- -# -# This copyright note is auto-generated by ./scripts/Create-CopyPatch. -# Please add additional copyright information _after_ the line containing -# the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by -# the ./scripts/Create-CopyPatch script. Do not edit this copyright text! -# -# ROCK Linux: rock-src/target/livecd/fixedfiles/system -# ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf -# -# This program is free software; you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation; either version 2 of the License, or -# (at your option) any later version. A copy of the GNU General Public -# License can be found at Documentation/COPYING. -# -# Many people helped and are helping developing ROCK Linux. Please -# have a look at http://www.rocklinux.org/ and the Documentation/TEAM -# file for details. -# -# --- ROCK-COPYRIGHT-NOTE-END --- -# -# Desc: System bootup and shutdown -# Runlevel: 01 rcX rc1 rc2 rc3 rc4 rc5 -# - -title() { - local x w="$( stty size 2>/dev/null /etc/mtab || error=$? - status - if [ -f /etc/conf/hardware ] ; then - . /etc/conf/hardware - fi - - if [ -f /etc/conf/devfs ] ; then - title "Configuring the /dev filesystem ..." - sh /etc/conf/devfs || error=$? - status - fi - - if [ -d /etc/hotplug ] ; then - title "Configuring hardware by activating hotplug." - [ -f /proc/sys/kernel/hotplug ] && \ - echo "/sbin/hotplug" > /proc/sys/kernel/hotplug - for RC in /etc/hotplug/*.rc; do - echo -n "[$( basename ${RC%.rc} )] " - $RC start || error=$?; - done ; echo - mkdir -p /var/lock/subsys - touch /var/lock/subsys/hotplug - status - fi - - title "Loading kernel modules and configuring the kernel." - if [ -f /etc/conf/kernel ] ; then - sh /etc/conf/kernel || error=$? - fi - - [ -f /etc/conf/clock ] && . /etc/conf/clock - if [ "$clock_tz" = localtime ] ; then - status - - title "Setting kernel clock to local time." - hwclock --hctosys --localtime || error=$? - fi - status - - if [ "$clock_rtc" ] ; then - if [ -w /proc/sys/dev/rtc/max-user-freq ] ; then - title "Setting enhanced real time clock precision to $clock_rtc." - echo $clock_rtc > /proc/sys/dev/rtc/max-user-freq || error=$? - status - fi - fi - - title "Setting hostname to $(cat /etc/HOSTNAME)." - hostname "$(cat /etc/HOSTNAME)" || error=$? - status - - mkdir /tmp/.ICE-unix - chmod 1777 /tmp/.ICE-unix - - title "Writing /var/log/boot.msg." - dmesg > /var/log/boot.msg || error=$? - status - - if [ -e /etc/default.keymap ] ; then - title "Setting keyboard mappings." - mapfile=$( readlink -f /etc/default.keymap ) - loadkeys $mapfile || error=$? - status - fi - - title "Setting keyboard repeat rate and delay time." - kbd_rate=30; kbd_delay=250 - [ -f /etc/conf/kbd ] && . /etc/conf/kbd - /usr/bin/kbdrate -r $kbd_rate -d $kbd_delay < /dev/console || error=$? - status - - if [ -e /etc/default.vcfont ] ; then - title "Setting console screen font." - fontfile=$( readlink -f /etc/default.vcfont ) - setfont $fontfile || error=$? - status - fi - - title "Setting console terminal type and blank interval." - con_term=linux; con_blank=0 - [ -f /etc/conf/console ] && . /etc/conf/console - /usr/bin/setterm -term $con_term -blank $con_blank > /dev/console || error=$? - status - - title "Setting up loopback networking." - ip link set lo up || error=$? - ip addr add 127.0.0.1/8 dev lo || error=$? - ip route add 127/8 dev lo || error=$? - status - - title "Setting overflow UID and GID kernel parameters." - sysctl -w kernel.overflowuid=$(id -u nobody) > /dev/null || error=$? - sysctl -w kernel.overflowgid=$(id -g nobody) > /dev/null || error=$? - status - - if [ -e /etc/sysctl.conf ] ; then - title "Reading /etc/sysctl.conf file." - sysctl -p || error=$? - status - fi - - if [ -e /var/state/random-seed ] ; then - title "Initializing kernel random number generator." - cat /var/state/random-seed >/dev/urandom || error=$? - status - fi - - title "Setting mixer devices Master and PCM to 65%." - /usr/bin/amixer sset PCM 20 >/dev/null 2>&1 || error=$? - /usr/bin/amixer sset PCM unmute >/dev/null 2>&1 || error=$? - /usr/bin/amixer sset Master 20 >/dev/null 2>&1 || error=$? - /usr/bin/amixer sset Master unmute >/dev/null 2>&1 || error=$? - status - - ;; - - stop) - title "Unconfiguring hardware by de-activating hotplug." - for RC in /etc/hotplug/*.rc; do - echo -n "[$( basename ${RC%.rc} )] " - $RC stop || error=$?; - done ; echo - rm -f /var/lock/subsys/hotplug - status - - title "Sending all processes a SIGTERM (15)." - killall5 -15 || error=$? ; sleep 5 - status - - title "Sending all processes a 2nd SIGTERM (15)." - killall5 -15 || error=$? ; sleep 5 - status - - title "Sending all processes a SIGKILL (9)." - killall5 -9 || error=$? ; sleep 5 - status - - title "Turning off swap devices." - swapoff -a || error=$? - sync ; sleep 1 - status - - title "Remounting sync/ro and umount filesystems." - cut -d' ' -f-3 /etc/mtab /proc/mounts | sort -k2 -u -r | \ - while read dev dir fs ; do - [ "$dir" = "/" ] && continue - [ "$dir" = "/dev" ] && continue - [ "$dir" = "/dev/shm" ] && continue - [ "$dir" = "/proc" ] && continue - [ "$dir" = "/sys" ] && continue - [ "$dir" = "/tmp" ] && continue - echo "Umounting $dev on $dir ($fs)." - mount -o remount,sync $dir - mount -o remount,ro $dir - umount -d $dir - bash - done - status - - title "Unmounting remaining file systems." - grep -E -v '^none (/|[a-z]+:) ' /proc/mounts > /etc/mtab - sync ; sleep 1 ; sync - umount -vdnra -t nodevfs,proc,sysfs,shm - mount -vn -o remount,sync / - mount -vn -o remount,ro / - sleep 1 ; sync ; sleep 1 - status - - command="" - [ "$RUNLEVEL" = 0 ] && command=halt - [ "$RUNLEVEL" = 6 ] && command=reboot - if [ -n "$command" ] ; then - echo "Going to $command the system ..." - $command -d -f -i -p - while true ; do sleep 1 ; done - fi - ;; - - restart) - $0 stop; $0 start - ;; - - *) - echo "Usage: $0 { start | stop | restart }" - exit 1 - ;; - -esac - -exit 0 diff --git a/target/livecd/fixedfiles/xorg.conf b/target/livecd/fixedfiles/xorg.conf deleted file mode 100644 index 2c0155f8b..000000000 --- a/target/livecd/fixedfiles/xorg.conf +++ /dev/null @@ -1,136 +0,0 @@ -Section "Monitor" - Identifier "Monitor1" -# NOTE: THE VALUES HERE ARE EXAMPLES ONLY. REFER TO YOUR MONITOR'S -# USER MANUAL FOR THE CORRECT NUMBERS !! -# normally uncomment this lines -# HorizSync 24.0 - 80.0 -# VertRefresh 50-100 -EndSection - -Section "Device" - Identifier "Card1" - # Use this for framebuffer devices - should work on most systems. - Driver "fbdev" - Option "fbdev" "/dev/fb/0" - # Some driver accept an UseFBDev option (e.g. radeon) to switch the - # mode via the Linux framebuffer layer. Needed e.g. as workaround for - # iBooks. - # Option "UseFBDev" -EndSection - -Section "Screen" - Identifier "Screen1" - Device "Card1" - Monitor "Monitor1" - DefaultDepth 16 - - Subsection "Display" - Depth 4 - Modes "1024x768" "800x600" "640x480" - ViewPort 0 0 - EndSubsection - Subsection "Display" - Depth 8 - Modes "1024x768" "800x600" "640x400" - ViewPort 0 0 - EndSubsection - Subsection "Display" - Depth 16 - Modes "1024x768" "800x600" "640x480" - ViewPort 0 0 - EndSubsection - Subsection "Display" - Depth 24 - Modes "1024x768" "800x600" "640x480" - ViewPort 0 0 - EndSubsection - Subsection "Display" - Depth 32 - Modes "1024x768" "800x600" "640x480" - ViewPort 0 0 - EndSubsection -EndSection - -Section "Module" - - Load "dbe" # DBE (double buffer extension) - Load "ddc" # Display Data Channel extension - -# This loads the miscellaneous extensions module - SubSection "extmod" - Option "omit xfree86-dga" # don't initialise the DGA extension - Option "omit XFree86-VidModeExtension" # disable mode-switching-supoprt - EndSubSection - -# This loads the Type1 and FreeType font modules - Load "type1" - Load "freetype" - -# Load "glx" # GLX extension (OpenGL visuals) -# Load "dri" # Direct Rendering Interface extension (OpenGL) - -# Load "v4l" # Video 4 Linux extension (provides a xv adapter) -EndSection - -# this enabled normal users to use DRI - the Direct Rendering Extension. -# it is also possible to use a group to control access. -# -Section "DRI" - Mode 0666 -EndSection - -Section "Files" - RgbPath "/usr/X11R7/share/X11/rgb" - FontPath "/usr/X11R7/lib/X11/fonts/75dpi/:unscaled" - FontPath "/usr/X11R7/lib/X11/fonts/100dpi/:unscaled" - FontPath "/usr/X11R7/lib/X11/fonts/CID/" - FontPath "/usr/X11R7/lib/X11/fonts/PEX/" - FontPath "/usr/X11R7/lib/X11/fonts/Speedo/" - FontPath "/usr/X11R7/lib/X11/fonts/Type1/" - FontPath "/usr/X11R7/lib/X11/fonts/cyrillic/" - FontPath "/usr/X11R7/lib/X11/fonts/encodings/" - FontPath "/usr/X11R7/lib/X11/fonts/freefont/" - FontPath "/usr/X11R7/lib/X11/fonts/latin2/" - FontPath "/usr/X11R7/lib/X11/fonts/local/" - FontPath "/usr/X11R7/lib/X11/fonts/misc/" - FontPath "/usr/X11R7/lib/X11/fonts/sharefont" - FontPath "/usr/X11R7/lib/X11/fonts/TrueType" - FontPath "/usr/share/ghostscript/fonts/" -EndSection - -Section "ServerFlags" -EndSection - -Section "InputDevice" - - Identifier "Keyboard1" - Driver "keyboard" - Option "AutoRepeat" "250 30" - Option "XkbRules" "xfree86" - Option "XkbModel" "pc105" -EndSection - - -Section "InputDevice" - Identifier "Mouse1" - Driver "mouse" - Option "Protocol" "Auto" - Option "Device" "/dev/input/mice" - #Option "Emulate3Buttons" "true" # for a two button touch-pad -EndSection - -Section "InputDevice" - Identifier "Mouse2" - Driver "mouse" - Option "Protocol" "Auto" - Option "Device" "/dev/misc/psaux" -EndSection - -Section "ServerLayout" - Identifier "Simple Layout" - Screen "Screen1" - InputDevice "Mouse1" "CorePointer" - InputDevice "Mouse2" "SendCoreEvents" - InputDevice "Keyboard1" "CoreKeyboard" -EndSection - diff --git a/target/livecd/initrd/initrd_livecd b/target/livecd/initrd/initrd_livecd deleted file mode 100644 index 73367f68d..000000000 --- a/target/livecd/initrd/initrd_livecd +++ /dev/null @@ -1,38 +0,0 @@ -bin/awk mnt/cowfs_ro/bin/awk -bin/bash2 mnt/cowfs_ro/bin/bash2 -bin/bash mnt/cowfs_ro/bin/bash -bin/cat mnt/cowfs_ro/bin/cat -bin/cp mnt/cowfs_ro/bin/cp -bin/dmesg mnt/cowfs_ro/bin/dmesg -bin/find mnt/cowfs_ro/bin/find -bin/gawk mnt/cowfs_ro/bin/gawk -bin/grep mnt/cowfs_ro/bin/grep -bin/gzip mnt/cowfs_ro/bin/gzip -bin/ln mnt/cowfs_ro/bin/ln -bin/ls mnt/cowfs_ro/bin/ls -bin/mkdir mnt/cowfs_ro/bin/mkdir -bin/mount mnt/cowfs_ro/bin/mount -bin/rmdir mnt/cowfs_ro/bin/rmdir -bin/rm mnt/cowfs_ro/bin/rm -bin/sh mnt/cowfs_ro/bin/sh -bin/sleep mnt/cowfs_ro/bin/sleep -bin/tar mnt/cowfs_ro/bin/tar -bin/umount mnt/cowfs_ro/bin/umount -bin/uname mnt/cowfs_ro/bin/uname -etc/udev mnt/cowfs_ro/etc/udev -lib/udev mnt/cowfs_ro/lib/udev -sbin/hwscan mnt/cowfs_ro/sbin/hwscan -sbin/ip mnt/cowfs_ro/sbin/ip -sbin/losetup mnt/cowfs_ro/sbin/losetup -sbin/pivot_root mnt/cowfs_ro/sbin/pivot_root -sbin/swapoff mnt/cowfs_ro/sbin/swapoff -sbin/swapon mnt/cowfs_ro/sbin/swapon -sbin/udevcontrol mnt/cowfs_ro/sbin/udevcontrol -sbin/udevd mnt/cowfs_ro/sbin/udevd -sbin/udevsettle mnt/cowfs_ro/sbin/udevsettle -sbin/udevtrigger mnt/cowfs_ro/sbin/udevtrigger -usr/bin/expand mnt/cowfs_ro/usr/bin/expand -usr/bin/find mnt/cowfs_ro/usr/bin/find -usr/bin/readlink mnt/cowfs_ro/usr/bin/readlink -usr/bin/wget mnt/cowfs_ro/usr/bin/wget -usr/sbin/lspci mnt/cowfs_ro/usr/sbin/lspci diff --git a/target/livecd/linuxrc.sh b/target/livecd/linuxrc.sh deleted file mode 100644 index ae3db1eb8..000000000 --- a/target/livecd/linuxrc.sh +++ /dev/null @@ -1,483 +0,0 @@ -#!/bin/bash - -STAGE_2_BIG_IMAGE="2nd_stage.img.z" - -#640kB, err, 64 MB should be enought for the tmpfs ;-) -TMPFS_OPTIONS="size=67108864" - -mod_load_info () { # {{{ - read os host version rest < <( uname -a ) - if [ -z "${os}" ] ; then - echo "Can't run \`uname -a\`" - return - elif [ "${os}" != "Linux" ] ; then - echo "Your operating system is not supported ?!" - return - fi - - mod_loader="/sbin/insmod" - mod_dir="/lib/modules/" - - # kernel module suffix for <= 2.4 is .o, .ko if above - if [ ${version:2:1} -gt 4 ] ; then - mod_suffix=".ko" - mod_suffix_len=3 - else - mod_suffix=".o" - mod_suffix_len=2 - fi -} # }}} -doboot() { # {{{ - echo "doboot starting - trying to exec /sbin/init" - exec /sbin/init -} # }}} -trymount() { # {{{ - source=${1} - target=${2} - mount -t iso9600 -o ro ${source} ${target} && return 0 - mount -t ext3 -o ro ${source} ${target} && return 0 - mount -t ext2 -o ro ${source} ${target} && return 0 - mount -t minix -o ro ${source} ${target} && return 0 - mount -t vfat -o ro ${source} ${target} && return 0 - return -1 -} # }}} -httpload() { # {{{ - echo -n "Enter base URL (e.g. http://1.2.3.4/rock): " - - read baseurl - [ -z "${baseurl}" ] && return - - cat < " - read cmd par - if [ "${cmd}" == "cd" ] ; then - cd ${par} - elif [ -f "${cmd}${mod_suffix}" ] ; then - insmod ${PWD%/}/${cmd}${mod_suffix} ${par} - elif [ -z "${cmd}" ] ; then - break - else - echo "No such module: ${cmd}" - fi - done - return -} # }}} -getdevice () { # {{{ - while : ; do - echo -en "\nDevice file to use (q to return) : "; - read device; - [ "${device}" == "q" ] && return -1; - if [ ! -e "${device}" ] ; then - echo -e "\nNot a valid device!" - else - devicefile=${device} - return 0; - fi - done -} # }}} -getcdromdevice () { # {{{ - cdroms="${1}" - floppies="${2}" - autoboot="${3}" - devicelists="/dev/cdroms/* /dev/floppy/*" - - [ "${cdroms}" == "0" -a "${floppies}" == "0" ] && return -1 - - devnr=0 - for dev in ${devicelists} ; do - [ -e "${dev}" ] || continue - [[ ${dev} = /dev/cdroms* ]] && [ "${cdroms}" == "0" ] && continue - [[ ${dev} = /dev/floppy* ]] && [ "${floppies}" == "0" ] && continue - - eval "device_${devnr}='${dev}'" - devnr=$((${devnr}+1)) - done - - [ ${devnr} -eq 0 ] && return -1 - - x=0 - floppy=1 - cdrom=1 - while [ ${x} -lt ${devnr} ] ; do - eval "device=\${device_${x}}" - if [[ ${device} = /dev/cdrom* ]] ; then - echo " ${x}. CD-ROM #${cdrom} (IDE/ATAPI or SCSI)" - cdrom=$((${cdrom}+1)) - fi - if [[ ${device} = /dev/flopp* ]] ; then - echo " ${x}. FDD (Floppy Disk Drive) #${floppy}" - floppy=$((${floppy}+1)) - fi - x=$((${x}+1)) - done - - echo -en "\nEnter number or device file name (default=0): " - - if [ ${autoboot} -eq 1 ] ; then - echo "0" - text=0 - else - read text - fi - - [ -z "${text}" ] && text=0 - - while : ; do - if [ -e "${text}" ] ; then - devicefile="${text}" - return 0 - fi - - eval "text=\"\${device_${text}}\"" - if [ -n "${text}" ] ; then - devicefile="${text}" - return 0 - fi - - echo -n "No such device found. Try again (enter=back): " - read text - [ -z "${text}" ] && return -1 - done - - return 1; -} # }}} - -prepare_root () { - local ret=0 F - - echo "preparing /dev" - cd /dev || ret=1 - rm -rf fd - ln -svf /proc/kcore core || ret=1 - ln -svf /proc/self/fd fd || ret=1 - ln -svf fd/0 stdin || ret=1 - ln -svf fd/1 stdout || ret=1 - ln -svf fd/2 stderr || ret=1 - cd / || ret=1 - - ln -svf /mnt/cowfs_ro/* /mnt/cowfs_rw-new/ - rm -rf /mnt/cowfs_rw-new/{home,tmp} - mkdir -p /mnt/cowfs_rw-new/{home,tmp} - chmod 1777 /mnt/cowfs_rw-new/tmp - mkdir -p /mnt/cowfs_rw-new/home/{rocker,root} - chmod 755 /mnt/cowfs_rw-new/home/rocker - chmod 700 /mnt/cowfs_rw-new/home/root - if ! chown 1000:100 /mnt/cowfs_rw-new/home/rocker ; then - echo "could not chown /mnt/cowfs_rw-new/home/rocker to rocker:users" - ret=1 - fi - - mount --move /mnt/cowfs_rw-new /mnt/cowfs_rw - rm -rf /mnt/cowfs-rw-new - - return $ret -} - -load_ramdisk_file() { # {{{ - local devicetype=${1} autoboot=${2} - - echo -en "Select a device for loading the 2nd stage system from: \n\n" - - if [ "${devicetype}" == "cdroms" ] ; then - getcdromdevice 1 1 ${autoboot} || return - else - getdevice || return - fi - - cat << EOF -Select a stage 2 image file: - - 1. ${STAGE_2_BIG_IMAGE} - -EOF - echo -n "Enter number or image file name (default=1): " - if [ ${autoboot} -eq 1 ] ; then - text=1 - else - read text - fi - - if [ -z "${text}" -o "${text}" = "1" ] ; then - filename="${STAGE_2_BIG_IMAGE}" - else - filename="${text}" - fi - - exit_linuxrc=1 - echo "Using ${devicefile}:${filename}." - - if ! mkdir -p /mnt/cdrom ; then - echo "Can't create /mnt/cdrom" - exit_linuxrc=0 - fi - - if ! mount ${devicefile} "/mnt/cdrom" -o ro ; then - echo "Can't mount /mnt/cdrom" - exit_linuxrc=0 - fi - - loopdev="dev/loop/0" ; [ ! -e "${loopdev}" ] && loopdev="/dev/loop0" - if ! losetup "${loopdev}" "/mnt/cdrom/${filename}" ; then - echo "Can't losetup /mnt/cdrom/${filename}" - exit_linuxrc=0 - fi - -# mkdir -p /mnt/cowfs_r{o,w} - - if ! mount -t squashfs "${loopdev}" /mnt/cowfs_ro -o ro ; then - echo "Can't mount squashfs on /mnt/cowfs_ro" - exit_linuxrc=0 - fi - - if ! mkdir -p /mnt/cowfs_rw-new ; then - echo "Can't mkdir -p /mnt/cowfs_rw-new" - exit_linuxrc=0 - fi - - if ! mount -t tmpfs -o ${TMPFS_OPTIONS} tmpfs /mnt/cowfs_rw-new ; then - echo "Can't mount tmpfs on /mnt/cowfs_rw-new" - exit_linuxrc=0 - fi - - export ROCK_INSTALL_SOURCE_DEV=${devicefile} - export ROCK_INSTALL_SOURCE_FILE=${filename} - - if prepare_root ; then - rm -rf /mnt/cowfs_rw-new - doboot - fi -} # }}} - -activate_swap() { # {{{ - echo - echo -n "Enter file name of swap device: " - - read text - if [ -n "${text}" ] ; then - swapon ${text} - fi -} # }}} -config_net() { # {{{ - ip addr - echo - ip route - echo - - echo -n "Enter interface name (eth0): " - read dv - [ -z "${dv}" ] && dv="eth0" - - echo -n "Enter ip (192.168.0.254/24): " - read ip - [ -z "${ip}" ] && ip="192.168.0.254/24" - - ip addr add ${ip} dev ${dv} - ip link set ${dv} up - - echo -n "Enter default gateway (none): " - read gw - [ -n "${gw}" ] && ip route add default via ${gw} - - ip addr - echo - ip route - echo -} # }}} -exec_sh() { # {{{ - echo "Quit the shell to return to the stage 1 loader!" - /bin/sh -} # }}} -checkisomd5() { # {{{ - echo "Select a device for checking: " - - getcdromdevice 1 0 0 || return - echo "Running check..." - - /bin/checkisomd5 ${devicefile} - - echo "done" - echo "Press Return key to continue." - read -} # }}} - -emit_udev_events() { # {{{ - /sbin/udevtrigger - /sbin/udevsettle -} # }}} - -input=1 -exit_linuxrc=0 -[ -z "${autoboot}" ] && autoboot=0 - -mount -t tmpfs -o ${TMPFS_OPTIONS} tmpfs /tmp || echo "Can't mount /tmpfs" -mount -t proc proc /proc || echo "Can't mount /proc" -mount -t sysfs sysfs /sys || echo "Can't mount sysfs on /sys" -mount -t tmpfs tmpfs /dev || echo "Can't mount a tmpfs on /dev" - -export PATH="/sbin:/bin:/usr/sbin:/usr/bin:$PATH" - -cp -r /lib/udev/devices/* /dev - -mount -t devpts devpts /dev/pts || echo "Can't mount devpts on /dev/pts" - -echo "" > /proc/sys/kernel/hotplug -/sbin/udevd --daemon - -# create nodes for devices already in kernel -emit_udev_events - -mod_load_info - -# some devices (scsi...) need time to settle... -echo "Waiting for devices to settle..." -sleep 5 - -ip addr add 127.0.0.1 dev lo -ip link set lo up - -if [ ${autoboot} -eq 1 ] ; then - load_ramdisk_file cdroms 1 -fi -autoboot=0 -cat << EOF - ============================================ - === ROCK Linux 1st stage boot system === - ============================================ - -The ROCK Linux install / rescue system boots up in two stages. You -are now in the first of this two stages and if everything goes right -you will not spend much time here. Just load your SCSI and networking -drivers (if needed) and configure the installation source so the -2nd stage boot system can be loaded and you can start the installation. -EOF -while [ ${exit_linuxrc} -eq 0 ] ; do - cat < $archdir/squashfs3.2.patch -} - -hook_add prepatch 1 extract_squashfspatch -var_append patchfiles " " "$archdir/squashfs3.2.patch" diff --git a/target/livecd/powerpc/boot.msg b/target/livecd/powerpc/boot.msg deleted file mode 100644 index 3a12df2b6..000000000 --- a/target/livecd/powerpc/boot.msg +++ /dev/null @@ -1,17 +0,0 @@ - ____ ___ ___ _ __ _ - | _ \ / _ \ / __| |/ / | | _ _ __ _ _ _ _ - | . _/| | | | | | '_/ | | |_| '_ \| | | | \/ | - | |\ \| |_| | |__| . \ | |__| | | | | `_' |> < - |_| \_\ ___/ \___|_|\_\ |____|_|_| |_|\___/|_/\_| - [============> http://www.rocklinux.org/ <============] - | L I V E CD | - +-------------+ - -Actions: -------- - - Start live cd system - livecd-text Start live cd system in text mode - livecd options Start with the given options - -. diff --git a/target/livecd/powerpc/build.sh b/target/livecd/powerpc/build.sh deleted file mode 100644 index 3d814a562..000000000 --- a/target/livecd/powerpc/build.sh +++ /dev/null @@ -1,53 +0,0 @@ - -cd $disksdir - -echo_header "Cleaning boot directory:" -rm -rfv boot/*-rock boot/System.map boot/kconfig* boot/initrd*.img boot/*.b boot/second - -echo_header "Creating yaboot setup:" -# -echo_status "Extracting yaboot boot loader images." -mkdir -p boot etc -tar --use-compress-program=bzip2 \ - -xf $base/build/${ROCKCFG_ID}/ROCK/pkgs/yaboot.tar.bz2 \ - usr/lib/yaboot/yaboot -O > boot/yaboot -tar --use-compress-program=bzip2 \ - -xf $base/build/${ROCKCFG_ID}/ROCK/pkgs/yaboot.tar.bz2 \ - usr/lib/yaboot/yaboot.rs6k -O > boot/yaboot.rs6k -mv boot/yaboot.rs6k install.bin -# -echo_status "Creating yaboot config files." -cp -v $base/target/$target/powerpc/{boot.msg,ofboot.b} \ - boot -( - echo "device=cdrom:" - cat $base/target/$target/powerpc/yaboot.conf -) > etc/yaboot.conf -( - echo "device=cd:" - cat $base/target/$target/powerpc/yaboot.conf -) > boot/yaboot.conf -# -echo_status "Moving image (initrd) to boot directory." -mv -v initrd.gz boot/ -# -echo_status "Copy more config files." -cp -v $base/target/$target/powerpc/mapping . -# -echo_status "Copying oldworld pmac support files..." -rm -rf oldworld -mkdir -p oldworld -cp -v $base/download/mirror/B/BootX_1.2.2.sit oldworld/ -cp -v $base/target/$target/powerpc/oldworld-readme.txt oldworld/README.txt -# -datadir="build/${ROCKCFG_ID}/ROCK/livecd" -cat > ../isofs_arch.txt <<- EOT - BOOT -hfs -part -map $datadir/mapping -hfs-volid "ROCK_Linux_CD" - BOOTx -hfs-bless boot -sysid PPC -l -L -r -T -chrp-boot - BOOTx -prep-boot install.bin - DISK1 $datadir/boot/ boot/ - DISK1 $datadir/etc/ etc/ - DISK1 $datadir/oldworld/ oldworld/ - DISK1 $datadir/install.bin install.bin -EOT - diff --git a/target/livecd/powerpc/download.txt b/target/livecd/powerpc/download.txt deleted file mode 100644 index 1a1b7b566..000000000 --- a/target/livecd/powerpc/download.txt +++ /dev/null @@ -1 +0,0 @@ -655936802 BootX_1.2.2.sit http://penguinppc.org/~benh/ diff --git a/target/livecd/powerpc/mapping b/target/livecd/powerpc/mapping deleted file mode 100644 index f24e608c6..000000000 --- a/target/livecd/powerpc/mapping +++ /dev/null @@ -1,17 +0,0 @@ -# EXTN XLate CREATOR TYPE Comment -.hqx Ascii 'BnHx' 'TEXT' "BinHex file" -.b Raw 'UNIX' 'tbxi' "bootstrap" -.txt Ascii 'ttxt' 'ttro' "README" -yaboot Raw 'UNIX' 'boot' "bootstrap" -*linux Raw 'UNIX' 'boot' "kernel" -*.conf Raw 'UNIX' 'conf' "bootstrap" -initrd.gz Raw 'UNIX' 'root' "root_image" -.sit Raw 'SITx' 'disk' "StuffIT Archive" -# just a reminder - we want to get rid of the .sit -#App Raw 'BooX' 'APPC' "BootX App" -#CacheSetting Raw '????' 'APPL' "GrabG3CacheSetting" -#MakeMkPlugin Raw '????' 'APPL' "MakeMkPlugin" -#miBoot.img Raw 'ddsk' 'dimg' "miBoot Image" -#System Raw 'MACS' 'zsys' "miBoot System" -# the rest -* Raw '????' '????' "Unknown" diff --git a/target/livecd/powerpc/ofboot.b b/target/livecd/powerpc/ofboot.b deleted file mode 100644 index 8b5b4d663..000000000 --- a/target/livecd/powerpc/ofboot.b +++ /dev/null @@ -1,64 +0,0 @@ - - -MacRISC MacRISC3 MacRISC4 - - -ROCK Linux Live CD Bootloader - - -" screen" output -load-base release-load-area -boot cd:,\boot\yaboot - - -1010 -000000000000F8FEACF6000000000000 -0000000000F5FFFFFEFEF50000000000 -00000000002BFAFEFAFCF70000000000 -0000000000F65D5857812B0000000000 -0000000000F5350B2F88560000000000 -0000000000F6335708F8FE0000000000 -00000000005600F600F5FD8100000000 -00000000F9F8000000F5FAFFF8000000 -000000008100F5F50000F6FEFE000000 -000000F8F700F500F50000FCFFF70000 -00000088F70000F50000F5FCFF2B0000 -0000002F582A00F5000008ADE02C0000 -00090B0A35A62B0000002D3B350A0000 -000A0A0B0B3BF60000505E0B0A0B0A00 -002E350B0B2F87FAFCF45F0B2E090000 -00000007335FF82BF72B575907000000 -000000000000ACFFFF81000000000000 -000000000081FFFFFFFF810000000000 -0000000000FBFFFFFFFFAC0000000000 -000000000081DFDFDFFFFB0000000000 -000000000081DD5F83FFFD0000000000 -000000000081DDDF5EACFF0000000000 -0000000000FDF981F981FFFF00000000 -00000000FFACF9F9F981FFFFAC000000 -00000000FFF98181F9F981FFFF000000 -000000ACACF981F981F9F9FFFFAC0000 -000000FFACF9F981F9F981FFFFFB0000 -00000083DFFBF981F9F95EFFFFFC0000 -005F5F5FDDFFFBF9F9F983DDDD5F0000 -005F5F5F5FDD81F9F9E7DF5F5F5F5F00 -0083DD5F5F83FFFFFFFFDF5F835F0000 -000000FBDDDFACFBACFBDFDFFB000000 -000000000000FFFFFFFF000000000000 -0000000000FFFFFFFFFFFF0000000000 -0000000000FFFFFFFFFFFF0000000000 -0000000000FFFFFFFFFFFF0000000000 -0000000000FFFFFFFFFFFF0000000000 -0000000000FFFFFFFFFFFF0000000000 -0000000000FFFFFFFFFFFFFF00000000 -00000000FFFFFFFFFFFFFFFFFF000000 -00000000FFFFFFFFFFFFFFFFFF000000 -000000FFFFFFFFFFFFFFFFFFFFFF0000 -000000FFFFFFFFFFFFFFFFFFFFFF0000 -000000FFFFFFFFFFFFFFFFFFFFFF0000 -00FFFFFFFFFFFFFFFFFFFFFFFFFF0000 -00FFFFFFFFFFFFFFFFFFFFFFFFFFFF00 -00FFFFFFFFFFFFFFFFFFFFFFFFFF0000 -000000FFFFFFFFFFFFFFFFFFFF000000 - - diff --git a/target/livecd/powerpc/oldworld-readme.txt b/target/livecd/powerpc/oldworld-readme.txt deleted file mode 100644 index a2fdef20e..000000000 --- a/target/livecd/powerpc/oldworld-readme.txt +++ /dev/null @@ -1 +0,0 @@ -For booting the ROCK Linux LiveCD on oldworld macs, currentlyonly BootX is support. Extract BootX-1.2.2.sit, and copy/boot/vmlinuxas kernel to load into the "Linux Kernels" Folder, and tell it to use/boot/initrd.gzas ramdisk to load (paths relative to the CD).You also need to add additional parameters to pass to the kernel:init=/linuxrc rwHave fun! diff --git a/target/livecd/powerpc/yaboot.conf b/target/livecd/powerpc/yaboot.conf deleted file mode 100644 index 1a082e3f2..000000000 --- a/target/livecd/powerpc/yaboot.conf +++ /dev/null @@ -1,18 +0,0 @@ -message=/boot/boot.msg - -timeout = 120 -default = livecd - -## CD-ROM Installs ## -image=/boot/vmlinux - label=livecd - initrd=/boot/initrd.gz - initrd-size=8192 - append="root=/dev/ram devfs=nocompat init=/linuxrc rw autoboot=1" - -image=/boot/vmlinux - label=livecd-text - initrd=/boot/initrd.gz - initrd-size=8192 - append="root=/dev/ram devfs=nocompat init=/linuxrc rw video=ofonly autoboot=1" - diff --git a/target/livecd/sparc/boot.msg b/target/livecd/sparc/boot.msg deleted file mode 100644 index da6b6ef62..000000000 --- a/target/livecd/sparc/boot.msg +++ /dev/null @@ -1,14 +0,0 @@ - ____ ___ ___ _ __ _ - | _ \ / _ \ / __| |/ / | | _ _ __ _ _ _ _ - | . _/| | | | | | '_/ | | |_| '_ \| | | | \/ | - | |\ \| |_| | |__| . \ | |__| | | | | `_' |> < - |_| \_\ ___/ \___|_|\_\ |____|_|_| |_|\___/|_/\_| - [============> http://www.rocklinux.org/ <============] - | L I V E CD | - +-------------+ - -Actions: --------- - - Start live cd system - diff --git a/target/livecd/sparc/build.sh b/target/livecd/sparc/build.sh deleted file mode 100644 index d5921b6a4..000000000 --- a/target/livecd/sparc/build.sh +++ /dev/null @@ -1,28 +0,0 @@ - -cd $disksdir - -echo_header "Cleaning boot directory:" -rm -rfv boot/*-rock boot/System.map boot/kconfig* boot/initrd*img boot/*.b - -echo_header "Creating silo setup:" -# -echo_status "Extracting silo boot loader images." -mkdir -p boot -tar --use-compress-program=bzip2 \ - -xf $base/build/${ROCKCFG_ID}/ROCK/pkgs/silo.tar.bz2 \ - boot/second.b -O > boot/second.b -# -echo_status "Creating silo config file." -cp -v $base/target/$target/sparc/{silo.conf,boot.msg} \ - boot -# -echo_status "Moving image (initrd) to boot directory." -mv -v initrd.gz boot/ -# -buildroot="build/${ROCKCFG_ID}" -datadir="build/${ROCKCFG_ID}/ROCK/livecd" -cat > ../isofs_arch.txt <<- EOT - BOOT -G $buildroot/boot/isofs.b -B ... - DISK1 $datadir/boot/ boot/ -EOT - diff --git a/target/livecd/sparc/silo.conf b/target/livecd/sparc/silo.conf deleted file mode 100644 index f10ea10eb..000000000 --- a/target/livecd/sparc/silo.conf +++ /dev/null @@ -1,16 +0,0 @@ -partition=1 -timeout=100 -message=/boot/boot.msg -default=livecd -root=/dev/ram -initrd=/boot/initrd.gz -read-write -append="devfs=nocompat init=/linuxrc autoboot=1" - -image[sun4u]=/boot/vmlinux64.gz - label=livecd - alias=linux -image[sun4c,sun4d,sun4m]=/boot/vmlinux.gz - label=livecd - alias=linux - diff --git a/target/livecd/x86/build.sh b/target/livecd/x86/build.sh deleted file mode 100644 index d280d382c..000000000 --- a/target/livecd/x86/build.sh +++ /dev/null @@ -1,26 +0,0 @@ - -syslinux_ver="`sed -n 's,.*syslinux-\(.*\).tar.*,\1,p' \ - $base/target/livecd/$arch/download.txt`" - -cd $disksdir - -echo_header "Creating isolinux setup:" -# -echo_status "Extracting isolinux boot loader." -mkdir -p isolinux -tar --use-compress-program=bzip2 -xOf $base/download/mirror/s/syslinux-$syslinux_ver.tar.bz2 \ - syslinux-$syslinux_ver/isolinux.bin > isolinux/isolinux.bin -# -echo_status "Creating isolinux config file." -cp $base/target/$target/x86/isolinux.cfg isolinux/ -cp $base/target/$target/x86/help?.txt isolinux/ -# -echo_status "Copy images to isolinux directory." -cp initrd.gz boot/vmlinuz isolinux/ -# -cat > ../isofs_arch.txt <<- EOT - BOOT -b isolinux/isolinux.bin -c isolinux/boot.catalog - BOOTx -no-emul-boot -boot-load-size 4 -boot-info-table - DISK1 build/${ROCKCFG_ID}/ROCK/livecd/isolinux/ isolinux/ -EOT - diff --git a/target/livecd/x86/download.txt b/target/livecd/x86/download.txt deleted file mode 100644 index a6664c0df..000000000 --- a/target/livecd/x86/download.txt +++ /dev/null @@ -1 +0,0 @@ -454536525 syslinux-3.07.tar.bz2 http://www.kernel.org/pub/linux/utils/boot/syslinux/ diff --git a/target/livecd/x86/help0.txt b/target/livecd/x86/help0.txt deleted file mode 100644 index 858273568..000000000 --- a/target/livecd/x86/help0.txt +++ /dev/null @@ -1,19 +0,0 @@ - ____ ___ ___ _ __ _ - | _ \ / _ \ / __| |/ / | | _ _ __ _ _ _ _ - | . _/| | | | | | '_/ | | |_| '_ \| | | | \/ | - | |\ \| |_| | |__| . \ | |__| | | | | `_' |> < - |_| \_\ ___/ \___|_|\_\ |____|_|_| |_|\___/|_/\_| - [============> http://www.rocklinux.org/ <============] - | L I V E CD | - +-------------+ [F1=Overview] [F2=Options] - -Actions: --------- - - Start live cd system at 1024x786-16 - livecd-1280 Start live cd system at 1280x1024-16 - livecd-800 Start live cd system at 800x600-16 - livecd-640 Start live cd system at 640x480-16 - livecd-text Start live cd system in text mode - livecd options Start with the given options - diff --git a/target/livecd/x86/help1.txt b/target/livecd/x86/help1.txt deleted file mode 100644 index d9fe6506e..000000000 --- a/target/livecd/x86/help1.txt +++ /dev/null @@ -1,15 +0,0 @@ - ____ ___ ___ _ __ _ - | _ \ / _ \ / __| |/ / | | _ _ __ _ _ _ _ - | . _/| | | | | | '_/ | | |_| '_ \| | | | \/ | - | |\ \| |_| | |__| . \ | |__| | | | | `_' |> < - |_| \_\ ___/ \___|_|\_\ |____|_|_| |_|\___/|_/\_| - [============> http://www.rocklinux.org/ <============] - | L I V E CD | - +-------------+ [F1=Overview] [F2=Options] - -Options: --------- - -linuxrc_debug enable debug output from linuxrc and kernel -stage2init= the program to exec after linuxrc finished - diff --git a/target/livecd/x86/isolinux.cfg b/target/livecd/x86/isolinux.cfg deleted file mode 100644 index 9b81c01c8..000000000 --- a/target/livecd/x86/isolinux.cfg +++ /dev/null @@ -1,28 +0,0 @@ - -DEFAULT livecd -TIMEOUT 600 -PROMPT 1 - -DISPLAY help0.txt -F1 help0.txt -F2 help1.txt - -LABEL livecd - kernel vmlinuz - APPEND initrd=initrd.gz root=/dev/ram devfs=nocompat init=/linuxrc video=vesa:ywrap,mtrr autoboot=1 vga=0x317 rw - -LABEL livecd-1280 - kernel vmlinuz - APPEND initrd=initrd.gz root=/dev/ram devfs=nocompat init=/linuxrc video=vesa:ywrap,mtrr autoboot=1 vga=0x31A rw - -LABEL livecd-800 - kernel vmlinuz - APPEND initrd=initrd.gz root=/dev/ram devfs=nocompat init=/linuxrc video=vesa:ywrap,mtrr autoboot=1 vga=0x314 rw - -LABEL livecd-640 - kernel vmlinuz - APPEND initrd=initrd.gz root=/dev/ram devfs=nocompat init=/linuxrc video=vesa:ywrap,mtrr autoboot=1 vga=0x311 rw - -LABEL livecd-text - kernel vmlinuz - APPEND initrd=initrd.gz root=/dev/ram devfs=nocompat init=/linuxrc autoboot=1 vga=0 rw