LABEL Gentoo 64 console
kernel images/os/gentoo/linux-gentoo-x86_64-console
append splash=silent,theme:livecd-2007.0 CONSOLE=/dev/tty1 initrd=images/os/gentoo/initrd-gentoo-64.lzma quiet fastboot cifspath=//192.168.158.10/images-pxe os=gentoo-x86_64-console.sqfs
IPAPPEND 1
LABEL Gentoo 64 kde4
kernel images/os/gentoo/linux-gentoo-x86_64-kde4
append splash=silent,theme:livecd-2007.0 CONSOLE=/dev/tty1 initrd=images/os/gentoo/initrd-gentoo-64.lzma quiet fastboot cifspath=//192.168.158.10/images-pxe os=gentoo-x86_64-kde4.sqfs
IPAPPEND 1
LABEL Gentoo i586 console
kernel images/os/gentoo/linux-gentoo-i586-console
append splash=silent,theme:livecd-2007.0 CONSOLE=/dev/tty1 initrd=images/os/gentoo/initrd-gentoo-32.lzma quiet fastboot cifspath=//192.168.158.10/images-pxe noapic nolapic os=gentoo-i586-console.sqfs
IPAPPEND 1
#!/bin/sh
. /etc/initrd.defaults
. /etc/initrd.scripts
splash() {
return 0
}
[ -e /etc/initrd.splash ] && . /etc/initrd.splash
# Clean input/output
exec >${CONSOLE} <${CONSOLE} 2>&1
if [ « $$ » != ‘1’ ]
then
echo ‘/linuxrc has to be run as the init process as the one’
echo ‘with a PID of 1. Try adding init= »/linuxrc » to the’
echo ‘kernel command line or running « exec /linuxrc ».’
exit 1
fi
mount -t proc proc /proc >/dev/null 2>&1
mount -o remount,rw / >/dev/null 2>&1
# Set up symlinks
if [ « $0 » = ‘/init’ ]
then
/bin/busybox –install -s
[ -e /linuxrc ] && rm /linuxrc
fi
quiet_kmsg
CMDLINE= »`cat /proc/cmdline` »
# Scan CMDLINE for any specified real_root= or cdroot arguments
for x in ${CMDLINE}
do
case « ${x} » in
domdadm)
USE_MDADM=1
;;
dodmraid)
USE_DMRAID_NORMAL=1
;;
dodmraid\=*)
DMRAID_OPTS=`parse_opt « ${x} »`
USE_DMRAID_NORMAL=1
;;
# Debug Options
debug)
DEBUG=’yes’
;;
# Module no-loads
doload\=*)
MDOLIST=`parse_opt « ${x} »`
MDOLIST= »`echo ${MDOLIST} | sed -e ‘s/,/ /g’` »
;;
nodetect)
NODETECT=1
;;
noload\=*)
MLIST=`parse_opt « ${x} »`
MLIST= »`echo ${MLIST} | sed -e ‘s/,/ /g’` »
export MLIST
;;
# Redirect output to a specific tty
CONSOLE\=*)
CONSOLE=`parse_opt « ${x} »`
exec >${CONSOLE} <${CONSOLE} 2>&1
;;
os\=*)
OS=`parse_opt « ${x} »`
;;
cifspath\=*)
CIFSPATH=`parse_opt « ${x} »`
;;
esac
done
splash ‘init’
detect_sbp2_devices
cmdline_hwopts
# Mount sysfs
mount_sysfs
# Start udev/devfs
start_dev_mgr
# Setup md device nodes if they dont exist
setup_md_device
# Scan volumes
startVolumes
# Set up unionfs
mkdir -p /newroot/
loadkmap < /lib/keymaps/fr.map
mkdir /squashfs
mkdir /tmp
mkdir /ro
mkdir /rw
mount -t cifs ${cifspath} /squashfs -o username=guest,guest,ro
mount /squashfs/ »${os} » /ro -o ro -n
mount -t tmpfs tmpfs /rw -n
mount -t aufs -o br=/rw=rw:/ro=ro none /newroot
# Run debug shell if requested
rundebugshell
verbose_kmsg
[ ! -e /newroot/dev/console ] && mknod /newroot/dev/console c 5 1
[ ! -e /newroot/dev/tty1 ] && mknod /newroot/dev/tty1 c 4 1
echo -ne « ${GOOD}>>${NORMAL}${BOLD} Booting (initramfs)${NORMAL} »
cd /newroot
mkdir /newroot/proc /newroot/sys 2>/dev/null
echo -ne « ${BOLD}.${NORMAL} »
umount /sys || echo ‘*: Failed to unmount the initrd /sys!’
umount /proc || echo ‘*: Failed to unmount the initrd /proc!’
echo -e « ${BOLD}.${NORMAL} »
exec switch_root -c « /dev/console » « /newroot/ » ${REAL_INIT:-/sbin/init} ${INIT_OPTS}
splash ‘verbose’
echo ‘A fatal error has probably occured since /sbin/init did not’
echo ‘boot correctly. Trying to open a shell…’
echo
exec /bin/bash
exec /bin/sh
exec /bin/ash
exec sh