diff options
author | Sebastian Schmelzer | 2010-10-25 16:53:54 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2010-10-25 16:53:54 +0200 |
commit | 3050a9253437f4a4b5ad4bf3b3efdc3c660a5137 (patch) | |
tree | 91ac22153e416aac7ca20916b314b5e2ffa871b1 /initramfs | |
download | preboot-master.tar.gz preboot-master.tar.xz preboot-master.zip |
Diffstat (limited to 'initramfs')
203 files changed, 2031 insertions, 0 deletions
diff --git a/initramfs/eglibc-rootfs/bin/ash b/initramfs/eglibc-rootfs/bin/ash new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/ash @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/bash b/initramfs/eglibc-rootfs/bin/bash new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/bash @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/busybox b/initramfs/eglibc-rootfs/bin/busybox Binary files differnew file mode 100755 index 0000000..a67f935 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/busybox diff --git a/initramfs/eglibc-rootfs/bin/cat b/initramfs/eglibc-rootfs/bin/cat new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/cat @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/chgrp b/initramfs/eglibc-rootfs/bin/chgrp new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/chgrp @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/chmod b/initramfs/eglibc-rootfs/bin/chmod new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/chmod @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/chown b/initramfs/eglibc-rootfs/bin/chown new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/chown @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/cp b/initramfs/eglibc-rootfs/bin/cp new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/cp @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/cpio b/initramfs/eglibc-rootfs/bin/cpio new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/cpio @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/cttyhack b/initramfs/eglibc-rootfs/bin/cttyhack new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/cttyhack @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/date b/initramfs/eglibc-rootfs/bin/date new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/date @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/dd b/initramfs/eglibc-rootfs/bin/dd new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/dd @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/df b/initramfs/eglibc-rootfs/bin/df new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/df @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/dmesg b/initramfs/eglibc-rootfs/bin/dmesg new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/dmesg @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/dnsdomainname b/initramfs/eglibc-rootfs/bin/dnsdomainname new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/dnsdomainname @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/dumpkmap b/initramfs/eglibc-rootfs/bin/dumpkmap new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/dumpkmap @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/echo b/initramfs/eglibc-rootfs/bin/echo new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/echo @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/egrep b/initramfs/eglibc-rootfs/bin/egrep new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/egrep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/false b/initramfs/eglibc-rootfs/bin/false new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/false @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/grep b/initramfs/eglibc-rootfs/bin/grep new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/grep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/gunzip b/initramfs/eglibc-rootfs/bin/gunzip new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/gunzip @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/gzip b/initramfs/eglibc-rootfs/bin/gzip new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/gzip @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/hostname b/initramfs/eglibc-rootfs/bin/hostname new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/hostname @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/ip b/initramfs/eglibc-rootfs/bin/ip new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/ip @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/ipcalc b/initramfs/eglibc-rootfs/bin/ipcalc new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/ipcalc @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/kill b/initramfs/eglibc-rootfs/bin/kill new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/kill @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/ln b/initramfs/eglibc-rootfs/bin/ln new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/ln @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/ls b/initramfs/eglibc-rootfs/bin/ls new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/ls @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/mkdir b/initramfs/eglibc-rootfs/bin/mkdir new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/mkdir @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/mknod b/initramfs/eglibc-rootfs/bin/mknod new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/mknod @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/mount b/initramfs/eglibc-rootfs/bin/mount new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/mount @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/mv b/initramfs/eglibc-rootfs/bin/mv new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/mv @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/netstat b/initramfs/eglibc-rootfs/bin/netstat new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/netstat @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/nice b/initramfs/eglibc-rootfs/bin/nice new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/nice @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/nslookup b/initramfs/eglibc-rootfs/bin/nslookup new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/nslookup @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/pidof b/initramfs/eglibc-rootfs/bin/pidof new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/pidof @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/ping b/initramfs/eglibc-rootfs/bin/ping new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/ping @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/ps b/initramfs/eglibc-rootfs/bin/ps new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/ps @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/pwd b/initramfs/eglibc-rootfs/bin/pwd new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/pwd @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/rev b/initramfs/eglibc-rootfs/bin/rev new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/rev @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/rm b/initramfs/eglibc-rootfs/bin/rm new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/rm @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/sed b/initramfs/eglibc-rootfs/bin/sed new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/sed @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/sh b/initramfs/eglibc-rootfs/bin/sh new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/sh @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/sleep b/initramfs/eglibc-rootfs/bin/sleep new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/sleep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/sync b/initramfs/eglibc-rootfs/bin/sync new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/sync @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/tar b/initramfs/eglibc-rootfs/bin/tar new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/tar @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/touch b/initramfs/eglibc-rootfs/bin/touch new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/touch @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/true b/initramfs/eglibc-rootfs/bin/true new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/true @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/umount b/initramfs/eglibc-rootfs/bin/umount new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/umount @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/uname b/initramfs/eglibc-rootfs/bin/uname new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/uname @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/usleep b/initramfs/eglibc-rootfs/bin/usleep new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/usleep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/vi b/initramfs/eglibc-rootfs/bin/vi new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/vi @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/bin/zcat b/initramfs/eglibc-rootfs/bin/zcat new file mode 120000 index 0000000..c3fa810 --- /dev/null +++ b/initramfs/eglibc-rootfs/bin/zcat @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/etc/functions b/initramfs/eglibc-rootfs/etc/functions new file mode 100644 index 0000000..3985bd5 --- /dev/null +++ b/initramfs/eglibc-rootfs/etc/functions @@ -0,0 +1,1029 @@ +# Copyright (c) 2003..2006 - RZ Uni Freiburg +# Copyright (c) 2006..2009 - OpenSLX GmbH +# +# This program/file is free software distributed under the GPL version 2. +# See http://openslx.org/COPYING +# +# If you have any feedback please consult http://openslx.org/feedback and +# send your feedback to feedback@openslx.org +# +# General information about OpenSLX can be found at http://openslx.org +# +# Common functions file for the configuration of linux diskless clients +# (included by init, hwautocfg, servconfig, ... within OpenSLX initialramfs) + +############################################################################# +# set of empty dummy functions (loaded before real functions in the +# distro specific files - to have no undeclared function in init, serv- +# config, hwautocfg, ...) + +# distro specific funtion called at the beginning of init script +preinit () { +: +} +# distro specific funtion called at the end of init script +postinit () { +: +} +# distro specific general function called from servconfig script +config_distro () { +: +} + +############################################################################# +# produce error message and if $2 is empty run (debug) shell +error () { +local e_msg="$1" +# set LOGFILE if not defined +[ -z "${LOGFILE}" ] && LOGFILE="/dev/null" +# if nonfatal error else fatal error message and shell +if [ -n "$2" ] ; then + [ "$DEBUGLEVEL" -ge 1 -a "$DEBUGLEVEL" != 8 ] && \ + echo -e "${error_msg}${e_msg}${error_nfe}" >> ${LOGFILE} + [ "$DEBUGLEVEL" -gt 1 -a "$DEBUGLEVEL" != 8 ] && \ + echo -e "${error_msg}${e_msg}${error_nfe}" + [ "$DEBUGLEVEL" -gt 2 -a "$DEBUGLEVEL" != 8 ] && usleep 10 +else + echo -e "${error_msg}${e_msg}${error_shell}" + /bin/sh + echo -n "Reboot now? [y] (nothing happens here at the moment)" + exec < /dev/console > /dev/console + #input="y" + #read input + #[ -z "$input" -o "$input" = "y" -o "$input" = "Y" ] && { + # sleep 4 + # [ -f /proc/sysrq-trigger ] || mount -t proc none /proc + # echo "b" > /proc/sysrq-trigger + #} +fi +} +############################################################################# +# system uptime for performance analysis +sysup () { +uptime=$(sed -e "s, .*,," /proc/uptime) +echo "${uptime} s." +# if start times are kept, a summary of runtimes would be possible too +} +############################################################################# +# (re)generate dynamic linked libraries cache from /etc/ld.so.conf +ldcfg () { +[ -n "${ldsc}" ] && echo -e "$init_ldcfg" && ldconfig /tmp/ld.so.cache & +} +############################################################################# +# URI interpreter $1 variable to interprete, $2 type of token to return +# prot: tftp, http, nbd, ... server: IP or FQDN +uri_token () { +local var=$1 +local prot +local rest +local server +local path +local port +local tmpval +local query="" +# first check if URI starts with prot:// - URI scheme +if strinstr "://" "$1" ; then + prot=${var%://*} + rest=${var#*://} +else + rest="$var" + prot="" +fi +# remove temporary '::' from path, since it conflicts with port specification +# ticket #232 +if strinstr "::" "$rest" ; then + rest=$(echo $rest | sed -e 's,::,§§§§§,g') +elif strinstr "\:\:" "$rest" ; then + rest=$(echo $rest | sed -e 's,\:\:,§§§§§,g') +fi +# get the server IP or name and port - URI authority +# you get the path or other token without leading "/" - add it later if +# needed (fixme: port might be broken) +if strinstr ":" "$rest" ; then + server="${rest%:*}" + rest="${rest#*:}" + path="${rest#*/}" + port="${rest%/$path}" +else + tmpval=$rest + rest="${rest#*/}" + server="$(echo $tmpval|sed 's,/.*,,')" + path="${tmpval#${server}}" + port="" +fi +# get path and query components - URI path, query +if strinstr "\?" "$rest" ; then + path="${path%\?*}" + query="${rest#*\?}" +fi +# return the requested token +case "$2" in + prot) echo "$prot" ;; + server) echo "$server" ;; + # add '::' again to path, remove duplicate "//" + path) echo "$path" | sed -e 's,§§§§§,\:\:,g;s,//,/,' ;; + port) echo "$port" ;; + query) echo "$query" ;; +esac +} +############################################################################# +# mounter for different file sources +fsmount () { +local proto=$1 +local server=$2 +local srcpath=$3 +local target=$4 +local mntopt=$5 +local transport +testmkd ${target} +case "${proto}" in + *nbd) + # TODO: to be filled in ... + ;; + lbdev) + # we expect the stuff on toplevel directory, filesystem type should be + # autodetected here ... (vmimgserv is blockdev here) + vmbdev=/dev/${server} + waitfor ${vmbdev} 20000 + mount -o ro ${vmbdev} ${target} || error "$scfg_evmlm" nonfatal + ;; + nfs) + # we expect nfs mounts here ... check that nfs module is loaded before + cat /proc/filesystems | grep -q -E "[[:space:]]nfs" || \ + { modprobe ${MODPRV} nfs 2>/dev/null || error "$error_nfsmod" nonfatal; } + for transport in tcp udp fail; do + [ $transport = "fail" ] && { error "$init_nfs" nonfatal; + noimg=yes; break;} + mount -n -t nfs -o ${mntopt},nolock,${transport} \ + ${server}:${srcpath} ${target} && break + done + ;; + smb|cifs) + # cifs mounts might be problematic if accessed with superuser id + mount -n -o ${mntopt},user=guest,guest,file_mode=0755,dir_mode=0755 \ + -t ${proto} //${server}${srcpath} ${target} + #d_mkrlscript entry boot.slx "/opt/openslx/uclib-rootfs/bin/mount -n \ + #-o ${mntopt},guest,user=guest,file_mode=0755,dir_mode=0755 -t ${proto} \ + #//${server}${srcpath} ${target#/mnt}" + ;; +esac +} +############################################################################# +# replace @@@serverip@@@ with real serverip. Allows the usage of a variable +# for the server ip address (e.g. in machine-setup or kernel commandline) +checkip () +{ +if [ "@@@serverip@@@" = "$1" -a -n "$serverip" ] ; then + echo $serverip +else + echo $1 +fi +} +############################################################################# +# replacement for which command to find executables inside stage4 rootfs +binfinder() +{ +local program="$1" +local s4path +local notfound=1 +for s4path in bin sbin usr/bin usr/sbin usr/local/bin \ + usr/local/sbin usr/bin/X11; do + if [ -f "/mnt/$s4path/$program" ] && \ + [ -x "/mnt/$s4path/$program" ]; then + printf '%s\n' "/$s4path/$program" + notfound=0 + break + fi +done +return $notfound +} +############################################################################# +# disk formatter and mounter. some proper error message output should be +# added. It uses programs invoked from stage 4 root filesystem. First +# argument is blockdev or file to be formatted, second mountpoint if not +# /mnt/tmp (default) +diskfm () { +local target=$1 +local mntpnt=$2 +local fs +local path +[ -f /lib/ld-linux.so.2 ] || ln -s /mnt/lib/ld-linux.so.2 /lib/ld-linux.so.2 +for fs in xfs reiserfs ext2 ; do + if strinfile "$fs" /proc/filesystems || modprobe ${MODPRV} $fs ; then + unset $found + for path in /sbin /bin /usr/sbin /usr/bin ; do + if test -x /mnt/$path/mkfs.$fs ; then + found=yes + case mkfs.$fs in + mkfs.xfs) + fopt="-f" + mopt="-o noexec" + ;; + mkfs.ext2) + fopt="-Fq" + mopt="-o nocheck,noexec" + ;; + mkfs.reiserfs) + fopt="-f" + mopt="-o noexec" + ;; + esac + LD_LIBRARY_PATH=/mnt/lib /mnt/$path/mkfs.$fs $fopt $target \ + >/dev/null 2>&1 #|| error + if [ -z $mntpnt ] ; then + umount /mnt/tmp 2>/dev/null + if mount -t $fs -n $mopt $target /mnt/tmp 2>/dev/null; then + return 0 + else + mount -n -t tmpfs none /mnt/tmp + fi + else + testmkd $mntpnt + mount -t $fs -n -o loop $target $mntpnt 2>/dev/null + return 0 + fi + fi + done + [ -z $found ] && continue + else break + fi +done +} + +############################################################################# +# dhcp client function +rundhcp () +{ +local vci="$1" +# ensure the interface is up - might produce conflicts - nbd could fail!! +# fixme: really needed? +# [ -n "$noipyet" ] && ip link set dev $nwif up +[ -f /lib/modules/${KERNEL}/kernel/net/packet/af_packet.ko ] && \ + modprobe ${MODPRV} af_packet +echo "Starting udhcpc for IP configuration" +mkdir /var/lib/dhcp >/dev/null 2>&1 +[ -n $vci ] && vci="-V $vci" +testmkd /usr/share/udhcpc +ln -sf /bin/dhcpmkconfig /usr/share/udhcpc/default.script +# see for options.c file in udhcp subdir of busybox for accepted "-O option" +udhcpc -O nissrv -O nisdomain -t 8 -q $vci \ + -s /usr/share/udhcpc/default.script -i $nwif 2>/dev/null +} + +############################################################################# +# function for retrieving configuration file (machine-setup) via tftp from a +# predefined server or given source (file=tftp-server:/path via kernel +# command line) +unpack () { +# $1 is config file name to get, $2 IP of server to get file from +local dst=$1 +if [ -s $dst ] ; then + # fixme: handle different types of packaging (gzip/bzip2)?? + if ! tar -xpzf $dst 2> /tmp/ConfTGZ-tar-error ; then + cat /tmp/ConfTGZ-tar-error + error "$unpack_ConfTGZ" nonfatal + rm /tmp/ConfTGZ-tar-error + fi + [ "$DEBUGLEVEL" -le 2 -o "$DEBUGLEVEL" -eq 8 ] && rm $dst + return 0 +else + return 1 +fi +} + +# tftp wrapper +# usage tftp_get <path> <tftpdserver> [count] +# count is optional - default is 3 - use -1 for indefinit +tftp_get () { + local file="$1" + local file_server="$2" + local download_successful=0 + local countdown="$3" + + if [ -z "$1" -o -z "$2" ]; then + [ $DEBUGLEVEL -ge 1 ] && \ + echo "[tftp_get] Usage: tftp_get <path> <server> [count]" + return 1; + fi + + [ "$countdown" = "" ] && countdown=3 + + until [ $download_successful -eq 1 ] + do + if [ "$countdown" = "0" ]; then + [ $DEBUGLEVEL -ge 1 ] && \ + echo "[tftp_get] download of \"$file\" from \"$file_server\" ... failed" + return 0; + fi + tftp -g -r $file -l /tmp/$(basename $file) $file_server + [ -s /tmp/$(basename $file) ] && download_successful=1 + countdown=$(expr $countdown - 1) + usleep 200000 + done + [ $DEBUGLEVEL -ge 1 ] && \ + echo "[tftp_get] download of \"$file\" from \"$file_server\" ... successful" + return 0; +} + + +# wget wrapper +# usage wget_get <path> <ftp/httpserver> [count] +# count is optional - default is 3 - use -1 for indefinit +wget_get () { + local file="$1" + local file_server="$2" + local download_successful=0 + local countdown="$3" + + if [ -z "$1" -o -z "$2" ]; then + [ $DEBUGLEVEL -ge 1 ] && \ + echo "[wget_get] Usage: wget_get <path> <server> [count]" + return 1; + fi + + [ "$countdown" = "" ] && countdown=3 + + until [ $download_successful -eq 1 ] + do + if [ "$countdown" = "0" ]; then + [ $DEBUGLEVEL -ge 1 ] && \ + echo "[wget_get] download of \"$file\" from \"$file_server\" ... failed" + return 0; + fi + wget -q $file_server$file -O /tmp/$(basename $file) + [ -s /tmp/$(basename $file) ] && download_successful=1 + countdown=$(expr $countdown - 1) + usleep 200000 + done + [ $DEBUGLEVEL -ge 1 ] && \ + echo "[wget_get] download of \"$file\" from \"$file_server\" ... successful" + return 0; +} + + +fileget () { +# normally tftp would be used, alternatively use wget for ftp or http +# if local device file is specified - mount and unmount after copying +local cfgfile +[ "x$fileprot" = "x" ] && fileprot=tftp +if [ "x$filepath" != "x" ] ; then + cfgfile=${filepath} + [ "x$fileserv" = "x" ] && fileserv=$(checkip ${serverip}) + # wait for dns if "fileserv" is a name and not lbd device + [ "$fileprot" != "lbd" ] && \ + echo ${fileserv} | grep -qi [a-z] && waitfor /tmp/dhcp-done 10000 + [ $DEBUGLEVEL -ge 1 ] && echo "fileget - fileprot:$fileprot, filepath:\ +$filepath, fileserv:$fileserv" >>$LOGFILE + case "$fileprot" in + ftp|http) + wget_get $cfgfile $fileprot://$fileserv \ + && { unpack /tmp/$(basename $cfgfile) && break; } 2>>$LOGFILE + ;; + lbd) + local ldev=$fileserv + echo "Waiting for configuration file ${cfgfile} ...." + [ $DEBUGLEVEL -ge 1 ] && echo "fileget - fileprot:$fileprot, filepath:\ +$filepath, fileserv:$fileserv" >>$LOGFILE + waitfor /mnt/${cfgfile} 10000 + if [ -f /mnt/${cfgfile} ]; then + unpack /mnt/$cfgfile + else + error "$init_errlfg" + fi + ;; + *) + tftp_get $cfgfile $fileserv \ + && unpack /tmp/$(basename $cfgfile) 2>>$LOGFILE + ;; + esac +else + # predefined value for OpenSLX environment; it is expected that this + # directory is just below the tftpboot (path to which the daemon is + # restricted to) + filepath="client-config" + [ "x$fileserv" = "x" ] && fileserv=$(checkip ${serverip}) + [ $DEBUGLEVEL -ge 1 ] && echo "fileget - fileprot:$fileprot, filepath:\ +$filepath, fileserv:$fileserv" >>$LOGFILE + # try to get configuration files successively; start with distro client + # and try last distro default ... + mac=$(echo $macaddr|sed "s/:/-/g") + for cfgfile in ${filepath}/${SYSTEM_NAME}/01-$mac.tgz \ + ${filepath}/${SYSTEM_NAME}/default.tgz ; do + case "$fileprot" in + ftp|http) + wget $fileprot://$fileserv/$cfgfile -O /tmp/$(basename $cfgfile) \ + 2>>$LOGFILE && { unpack /tmp/$(basename $cfgfile) && break; } + ;; + tftp) + tftp_get $cfgfile $fileserv \ + 2>>$LOGFILE && { unpack /tmp/$(basename $cfgfile) && break; } + ;; + esac + done + echo -e "\n## Configuration via fileget from ${fileprot}://${fileserv}/\ +${cfgfile}\n# Hierarchy is distro client and as last distro/default" \ + >>/tmp/confviafile +fi +cat /initramfs/machine-setup >>/tmp/confviafile 2>/dev/null || \ + error "$nomachsetup" +echo "fileget via $fileprot from $fileserv/$cfgfile finished" >/tmp/file-done +[ $DEBUGLEVEL -ge 1 ] && echo "fileget from $cfgfile finished" >>$LOGFILE +} + +############################################################################# +# function for creating directories after testing of their existance avoids +# to recreate directories in union mounts. If second and/or third parameters +# are given check for permission patterns +testmkd () { + test -d $1 || mkdir -p $1 >/dev/null 2>&1 + [ $# -ge 2 ] && for i in "$2" "$3" ; do + echo "$i" | grep -q -E "^[0-9]{3,4}$" && chmod "$i" $1 >/dev/null 2>&1 + echo "$i" | grep -q -E ":." && chown "$i" $1 >/dev/null 2>&1 + done +} + +############################################################################# +# function for writing a syslog-ng.conf file. First parameter is absolute +# destination (incl. /mnt prefix) +# sysngwriter $dest $start_syslog +sysngwriter () { +local mysyslogngcfg=$1 +# logging servers might be specified in $log_servers (from e.g. dhcp) +# fixme!? only first logserver from dhcp variable is used +[ -n "$log_servers" ] && start_syslog="syslog://${log_servers% *}:514/udp" +echo -e "# File written by $0 within InitRamFS\n\ +source src {\n\tfile(\"/proc/kmsg\");\n\ +\tunix-dgram(\"/dev/log\");\n\tinternal();\n};\ndestination console_all {\ +\n\tfile(\"/dev/tty10\");\n};" >$mysyslogngcfg +case "$start_syslog" in + yes|Yes|YES) + echo -e "\nlog {\n\tsource(src);\n\tdestination(console_all);\n};" \ + >>$mysyslogngcfg + ;; + file) + echo -e "destination allmessages {\n\tfile(\"/var/log/allmessages\");\n};\ +\nlog {\n\tsource(src); destination(allmessages);\n};" >>$mysyslogngcfg + ;; + *) + syslogsrv=$(uri_token $start_syslog server) + syslogport=$(uri_token $start_syslog port) + syslogprot=$(uri_token $start_syslog path) + [ -z ${syslogport} ] && syslogport=514 + [ -z ${syslogprot} ] && syslogprot=udp + echo -e "destination loghost {\n\t${syslogprot}(\"${syslogsrv}\" \ +port(${syslogport}));\n};\nlog {\n\tsource(src);\n\tdestination(loghost);\n};"\ + >>$mysyslogngcfg + ;; +esac +} + +############################################################################# +# simple string in string search +strinstr () { + case "$2" in *$1*) return 0;; esac + return 1 +} + +############################################################################# +# simple string in file search, for the future grep should be used instead +strinfile () { + case "$(cat $2)" in *$1*) return 0;; esac + return 1 +} + +############################################################################# +# wait for a file to appear and stop after maxwait counts +waitfor () { +local file=$1 +local maxwait=$2 +local count=0 +[ -z $file ] && return 0 +[ -z $maxwait ] && maxwait=5000 +while [ ! -e $file ] ; do + usleep 1000 + count=$(($count + 1)) + [ $count -gt $maxwait ] && return 1 +done +return 0 +} + +############################################################################# +# ldconfig is needed if rootfilesystem is composed of several parts. Search +# for ldconfig and execute it (we expect ldconfig not to be a dynamically +# linked tool) +# check that /mnt/etc/ld.so.conf is never lost +ldconfig () { +local cachefile="$1" +for ldcfg in /mnt/sbin/ldconfig \ + /mnt/bin/ldconfig \ + /mnt/usr/sbin/ldconfig; do + test -x $ldcfg && { + $ldcfg -r /mnt -C $cachefile; break; } +done +echo "finished at $(sysup)" >/tmp/ldcfg +} + +############################################################################# +# base passwd/shadow, the standard user present in every system. All other +# system users should be generated within the service function +basepasswd () { +# hack (see Ticket #206) +root_pw="$1" +# strip every line with userid between 500 and 99999 from the passwd +# file +sed '/^[a-zA-Z0-9]*:[a-zA-Z0-9]*:[1-9][0-9]\{3,4\}:/d;/^+:*/d;/^+$/d; + /^[a-zA-Z0-9]*:[a-zA-Z0-9]*:[5-9][0-9]\{2\}:/d' /mnt/etc/passwd \ + >/tmp/newpasswd +# and add user nobody again (is there a more elegant way?) +sed -n -e '/nobody/p' /mnt/etc/passwd >>/tmp/newpasswd +# create the shadow from passwd file +echo -e "root:"${root_pw}":12958:0:10000::::" >/mnt/etc/shadow +sed 's/:.*/:!:13078:0:99999:7:::/;/^root.*/d' /tmp/newpasswd \ + >>/mnt/etc/shadow +mv /tmp/newpasswd /mnt/etc/passwd +chmod 0640 /mnt/etc/shadow +} + +############################################################################# +# wait for the completion of configuration file (machine-setup). It is +# composed from different sources +cfgcomplete () { +waitfor /tmp/dhcp-done 10000 || error "$error_errdcfg" nonfatal +waitfor /tmp/file-done 10000 || error "$error_errfcfg" nonfatal +waitfor /tmp/ldap-done 10000 || error "$error_errlcfg" nonfatal +# concatenate the different files now into the central config file, order +# matters - ldap (not implemented yet) data has highest priority +if ! test -f /tmp/cfgcomplete ; then + echo "## Stage3 configuration via initial/early /etc/initramfs-setup" \ + >/etc/ext-initramfs-setup + for config in /etc/initramfs-setup /tmp/confviadhcp /tmp/confviafile \ + /tmp/confvialdap + do test -f $config && cat $config >>/etc/ext-initramfs-setup + done +# check again and replace @@@serverip@@@ and produce a final version for +# stage4 (no much use, just debugging) +sed "s,@@@serverip@@@,$serverip," -i /etc/ext-initramfs-setup +. /etc/ext-initramfs-setup +cp /etc/ext-initramfs-setup /mnt/etc/machine-setup +mv /etc/ext-initramfs-setup /etc/initramfs-setup +echo "config completed" >/tmp/cfgcomplete +fi +} + +############################################################################# +# execute all shell scripts in the given init-hook folder +runinithook () { +local hook=$1 +if [ -d /etc/init-hooks/$hook ]; then + for hook_script in /etc/init-hooks/$hook/*.sh; do + if [ -e $hook_script ]; then + /bin/init-wrapper $hook_script $DEBUGLEVEL + . /tmp/env/wrapper.env + fi + done +fi +} + +############################################################################# +# localization simply derived from $language variable set in machine-setup or +# other sources - mostly taken from knoppix +localization () { +country="$1" +CONSOLE_FONT="lat9w-16.psfu" +case "$country" in + # German version + de*) + COUNTRY="de" + LANG="de_DE.UTF-8" + KEYTABLE="de-latin1-nodeadkeys" + XKEYBOARD="de" + KDEKEYBOARD="de" + CHARSET="utf8" + KDEKEYBOARDS="us,fr" + TZ="Europe/Berlin" + ;; + # Belgian version + be*) + COUNTRY="be" + LANG="C" + KEYTABLE="be2-latin1" + XKEYBOARD="be" + KDEKEYBOARD="be" + CHARSET="iso8859-15" + KDEKEYBOARDS="us,de,fr" + TZ="Europe/Brussels" + ;; + # Bulgarian version + bg*) + COUNTRY="bg" + LANG="bg_BG" + KEYTABLE="bg" + XKEYBOARD="bg" + KDEKEYBOARD="bg" + CHARSET="microsoft-cp1251" + KDEKEYBOARDS="us,de,fr" + TZ="Europe/Sofia" + ;; + # Switzerland (basically de with some modifications) + ch) + LANGUAGE="de" + COUNTRY="ch" + LANG="de_CH" + KEYTABLE="sg-latin1" + XKEYBOARD="de_CH" + KDEKEYBOARD="de_CH" + CHARSET="iso8859-15" + KDEKEYBOARDS="de,us,fr" + TZ="Europe/Zurich" + ;; + # Simplified Chinese + cn) + COUNTRY="cn" + LANG="zh_CN.GB2312" + KEYTABLE="us" + XKEYBOARD="us" + KDEKEYBOARD="us" + CHARSET="gb2312.1980-0" + KDEKEYBOARDS="us,de,fr" + XMODIFIERS="@im=Chinput" + TZ="Asia/Shanghai" + ;; + # Czechoslovakia + cs|cz) + LANGUAGE="cs" + COUNTRY="cs" + LANG="cs_CZ.UTF-8" + KEYTABLE="cz-lat2" + XKEYBOARD="cs" + KDEKEYBOARD="cz" + CHARSET="iso8859-2" + KDEKEYBOARDS="us,de,fr" + TZ="Europe/Prague" + CONSOLE_FONT="iso02g" + ;; + # Denmark + dk|da) + COUNTRY="dk" + LANG="da_DK.UTF-8" + # Workaround: "dk" broken in gettext, use da:da_DK + LANGUAGE="da:da_DK" + KEYTABLE="dk" + XKEYBOARD="dk" + KDEKEYBOARD="dk" + CHARSET="iso8859-15" + KDEKEYBOARDS="dk,de,us,fr" + TZ="Europe/Copenhagen" + ;; + es) + # Spain + COUNTRY="es.UTF-8" + LANG="es_ES" + KEYTABLE="es" + XKEYBOARD="es" + KDEKEYBOARD="es" + CHARSET="iso8859-15" + KDEKEYBOARDS="de,us,fr" + TZ="Europe/Madrid" + ;; + # Finland + fi) + COUNTRY="fi" + LANG="fi_FI.UTF-8" + KEYTABLE="fi" + XKEYBOARD="fi" + KDEKEYBOARD="fi" + CHARSET="iso8859-15" + KDEKEYBOARDS="us" + TZ="Europe/Helsinki" + ;; + # France + fr*) + COUNTRY="fr" + LANG="fr_FR.UTF-8" + KEYTABLE="fr" + XKEYBOARD="fr" + KDEKEYBOARD="fr" + CHARSET="iso8859-15" + KDEKEYBOARDS="de,us" + TZ="Europe/Paris" + ;; + he|il) + # Hebrew version + LANGUAGE="he" + COUNTRY="il" + LANG="he_IL.UTF-8" + KEYTABLE="us" + XKEYBOARD="us" + KDEKEYBOARD="il" + CHARSET="iso8859-8" + KDEKEYBOARDS="us,fr,de" + TZ="Asia/Jerusalem" + ;; + # Ireland + ie) + COUNTRY="ie" + LANG="en_IE.UTF-8" + KEYTABLE="uk" + XKEYBOARD="uk" + KDEKEYBOARD="gb" + CHARSET="iso8859-15" + KDEKEYBOARDS="us,de,es,fr,it" + TZ="Europe/Dublin" + ;; + # Italy + it) + COUNTRY="it" + LANG="it_IT.UTF-8" + KEYTABLE="it" + XKEYBOARD="it" + KDEKEYBOARD="it" + CHARSET="iso8859-15" + KDEKEYBOARDS="fr,us,de" + TZ="Europe/Rome" + ;; + # Japan + ja) + COUNTRY="jp" + LANG="ja_JP.UTF-8" + LANGUAGE="ja" + KEYTABLE="us" + XKEYBOARD="us" + KDEKEYBOARD="us" + CHARSET="iso8859-15" + KDEKEYBOARDS="fr,us,de" + TZ="Asia/Tokyo" + ;; + # The Netherlands + nl) + COUNTRY="nl" + LANG="nl_NL.UTF-8" + KEYTABLE="us" + XKEYBOARD="us" + KDEKEYBOARD="en_US" + CHARSET="iso8859-15" + KDEKEYBOARDS="nl,de,fr" + TZ="Europe/Amsterdam" + ;; + # Poland + pl) + COUNTRY="pl" + LANG="pl_PL.UTF-8" + KEYTABLE="pl" + XKEYBOARD="pl" + KDEKEYBOARD="pl" + CHARSET="iso8859-2" + KDEKEYBOARDS="de,us,fr" + TZ="Europe/Warsaw" + CONSOLE_FONT="iso02g" + ;; + # Russia + ru) + COUNTRY="ru" + LANG="ru_RU.UTF-8" + KEYTABLE="ru" + XKEYBOARD="ru" + KDEKEYBOARD="ru" + CHARSET="koi8-r" + CONSOLE_FONT="Cyr_a8x16" + KDEKEYBOARDS="de,us,fr" + TZ="Europe/Moscow" + ;; + # Slovakia + sk) + COUNTRY="sk" + LANG="sk_SK.UTF-8" + KEYTABLE="sk-qwerty" + XKEYBOARD="sk" + KDEKEYBOARD="sk" + CHARSET="iso8859-2" + KDEKEYBOARDS="us,de" + TZ="Europe/Bratislava" + CONSOLE_FONT="iso02g" + ;; + # Slovenia + sl) + LANGUAGE="sl" + COUNTRY="si" + LANG="sl_SI.UTF-8" + KEYTABLE="slovene" + XKEYBOARD="sl" + KDEKEYBOARD="si" + CHARSET="iso8859-2" + KDEKEYBOARDS="us,de" + TZ="Europe/Ljubljana" + CONSOLE_FONT="iso02g" + ;; + tr) +# Turkish version (guessed) + COUNTRY="tr" + LANG="tr_TR.UTF-8" + KEYTABLE="tr_q-latin5" + XKEYBOARD="tr" + KDEKEYBOARD="tr" + CHARSET="iso8859-9" + KDEKEYBOARDS="us,de,fr" + TZ="Europe/Istanbul" + ;; + # Taiwan - Traditional Chinese version + tw) + COUNTRY="tw" + LANG="zh_TW.UTF-8" + LANGUAGE="zh_TW.Big5" + KEYTABLE="us" + XKEYBOARD="us" + KDEKEYBOARD="us" + CHARSET="iso8859-1" + KDEKEYBOARDS="us" + XMODIFIERS="@im=xcin" + TZ="Asia/Taipei" + ;; + # Great Britian + uk) + COUNTRY="uk" + LANG="en_GB.UTF-8" + LANGUAGE="en" + KEYTABLE="uk" + XKEYBOARD="uk" + KDEKEYBOARD="gb" + CHARSET="iso8859-1" + KDEKEYBOARDS="us" + TZ="Europe/London" + ;; + # US and default configuration + *) + LANGUAGE="us" + COUNTRY="us" + LANG="C" + KEYTABLE="us" + XKEYBOARD="us" + KDEKEYBOARD="us" + CHARSET="iso8859-1" + KDEKEYBOARDS="de,fr" + TZ="America/New_York" + ;; +esac +} + +############################################################################# +# This function gets an uri or a comma separated list of uris as parameter. +# It will then try to mount these uris and add them to the union at / +include_in_fsroot_union () { + union_id=0 # used to have guarantee differing names for the unions mount point + union_type=$1 + for ROOTFS in $(echo $2 |sed 's/,/ /g'); do + union_id=$(($union_id + 1)) + srvproto=$(uri_token $ROOTFS prot) + case $srvproto in + nfs) + # activate kernel nfs if not present, nfsroot consists now of two + # different parts + root_path=$(uri_token $ROOTFS path) + nfsserver=$(uri_token $ROOTFS server) + mkdir -p /mnt/tmp/${root_path}_${union_id} + for proto in tcp udp fail; do + [ $proto = "fail" ] && { error "$scfg_nfs"; break; } + mount -n -t nfs -o ro,nolock,$proto $nfsserver:$root_path \ + /mnt/tmp/${root_path}_${union_id} && break + done + ;; + *nbd) + echo "Not working yet" + nbdmod=$srvproto + # get settings for nbd-client, filesystem equals to path in URI + # notation + nbdhost=$(uri_token $ROOTFS server) + nbdport=$(uri_token $ROOTFS port) + nbdrfst=$(uri_token $ROOTFS path) + echo -e "(D)NBD $ROOTFS parsed to $srvproto - $nbdhost - \ + $nbdport - $nbdrfst" >> /tmp/testlog + #FIXME: do mount + ;; + aoe) + echo "Not implemented yet" + ;; + iscsi) + echo "Not implemented yet" + #iscsiserver=$(uri_token $ROOTFS server) + #iscsiport=$(uri_token $ROOTFS port) + #iscsitarget=$(uri_token $ROOTFS path) + ;; + esac + if [ "X$union_type" == "XUnionFS" ]; then + [ "$DEBUGLEVEL" -gt 2 -a "$DEBUGLEVEL" != 8 ] && \ + echo "Using unionctl to mount ${root_path}_${union_id} (type: \ + $union_type)" + unionctl /mnt/ --add --after 1 --mode ro /mnt/tmp/${root_path}_${union_id} + elif [ "X$union_type" == "XAUFS" ]; then + # unionctl for aufs is a sh script needing tools not included in our + # initramfs + [ "$DEBUGLEVEL" -gt 2 -a "$DEBUGLEVEL" != 8 ] && \ + echo "Using aufs-mount to mount ${root_path}_${union_id} (type: $union_type)" + mount -n -o remount,add:1:/mnt/tmp/${root_path}_${union_id}=ro none /mnt + else + error ${init_loadunions} nonfatal + fi + done +} + +############################################################################# +# dummy functions - avoid undefined functions in servconfig (functions are +# normally overwritten by settings within distro-functions) - a file +# generated by mkdxsinitrd from <distro>/functions-default & ~-version + +# setup initial boot scripts (for most standard distributions, gentoo is to +# be handled differently) +initial_boot () { +: +} +# function for udev configuration +config_udev () { +: +} +# function for ntp configuration +config_ntp () { +: +} +# function for afs +config_afs () { +: +} +# function for atd +config_atd () { +: +} +# function for configuration of cron services +config_cron () { +: +} +# syslog service +config_syslog () { +: +} +# secure shell service +config_sshd () { +: +} +# snmp agent for remote monitoring +config_snmp () { +: +} +# consolefont +consolefont () { +: +} +# acpi and powersave +config_acpi () { +: +} +# configure hal, dbus, resmgr and services like that +config_dreshal () { +: +} +# configure automounter, simple NFSv3 imports only +config_automount () { +: +} +# configure print services / start requested printer daemon +config_printer () { +: +} +# configure bluetooth services +config_bt () { +: +} +# create a compliant runlevel script, needed for boot.slx +d_mkrlscript () { +: +} +# start name service caching daemon +config_nscd () { +: +} +# configure automounter +config_automount () { +: +} +# configure samba service (not winbind, but nmbd, smbd) +config_samba () { +: +} +# start portmapper (needed at least for nfs and nis services) +config_portmap () { +: +} +# start nis/ypbind +config_nis () { +: +} +# configure nfsv4 stuff +config_nfsv4 () { +: +} +# configure keyboard layout +keytable () { +: +} +# set up localization like keytable, console +dlocale () { +: +} diff --git a/initramfs/eglibc-rootfs/etc/inittab b/initramfs/eglibc-rootfs/etc/inittab new file mode 100644 index 0000000..3789e54 --- /dev/null +++ b/initramfs/eglibc-rootfs/etc/inittab @@ -0,0 +1,9 @@ + +tty1::respawn:/sbin/getty -n -l /bin/ash 38400 tty1 +tty2::respawn:/sbin/getty -n -l /bin/ash 38400 tty2 +tty3::respawn:/sbin/getty -n -l /bin/ash 38400 tty3 +tty4::respawn:/sbin/getty -n -l /bin/ash 38400 tty4 +tty5::respawn:/sbin/getty -n -l /bin/ash 38400 tty5 +tty6::respawn:/sbin/getty -n -l /bin/ash 38400 tty6 +tty7::respawn:/sbin/getty -n -l /bin/ash 38400 tty7 +tty8::respawn:/sbin/getty -n -l /bin/ash 38400 tty8 diff --git a/initramfs/eglibc-rootfs/etc/issue b/initramfs/eglibc-rootfs/etc/issue new file mode 100644 index 0000000..4079078 --- /dev/null +++ b/initramfs/eglibc-rootfs/etc/issue @@ -0,0 +1,11 @@ + _ + /_`_ _ _ _ _ _ __ _ _ _ _ _ + ._//_// / // / //_'//_ /_|/ / //_//_/_\ + / ** 2010 ** + DisklessBoot + +Anleitungen & Tools gibt es auf: + o http://sc2010.openslx.org + +Viel Spass.. + diff --git a/initramfs/eglibc-rootfs/etc/keymaps/de_DE b/initramfs/eglibc-rootfs/etc/keymaps/de_DE Binary files differnew file mode 100644 index 0000000..375c201 --- /dev/null +++ b/initramfs/eglibc-rootfs/etc/keymaps/de_DE diff --git a/initramfs/eglibc-rootfs/etc/ldap-functions b/initramfs/eglibc-rootfs/etc/ldap-functions new file mode 100644 index 0000000..d2b6753 --- /dev/null +++ b/initramfs/eglibc-rootfs/etc/ldap-functions @@ -0,0 +1,75 @@ +####################################################################### +# configuration via ldap +# get_timeranges: helper function for ldapconf, retrieving timeranges +# of machineconfig-objects under search base $1 (Host,Group,Default) +get_timeranges(){ +trquery=`ldapsearch -x -H ldap://$ldapserver -b $1 -D $user -w $pwd -LLL \ +"(objectclass=machineconfig)" Timerange|sed -n '/Tim*/p'|sed 's/TimeRange: /#/'` +} +# matching_timerange: helper function for ldapconf to get "most +# specific timerange" matching actual time +matching_timerange(){ +match=0 +lines=$[`echo $trquery | sed 's/#/\n#/g'|wc -l` -1] +for ((i=0;i<$lines;i++)) ; do + timerange[$i]=`echo $trquery | cut -d "#" -f $[$i+2] | sed 's/ //g'` +done +while true ; do + for ((i=0;i<$lines;i++)) ; do + trday=`echo ${timerange[i]} | cut -d "_" -f 1` + trbegin=`echo ${timerange[i]} | cut -d "_" -f 2` + trend=`echo ${timerange[i]} | cut -d "_" -f 3` + if [ $trday == $wday ] && [ $trday != "X" ] && [ $trbegin != "X" ] && \ + [ $trbegin -le $time ] && [ $time -le $trend ]; then + echo $wday $time "[D H H]match ->" ${timerange[i]} + tr=${timerange[i]} + match=1 && break + fi + done + if [ $match == 1 ] ; then break ; fi + for ((i=0;i<$lines;i++)) ; do + trday=`echo ${timerange[i]} | cut -d "_" -f 1` + trbegin=`echo ${timerange[i]} | cut -d "_" -f 2` + trend=`echo ${timerange[i]} | cut -d "_" -f 3` + if [ $trday == $wday ] && [ $trbegin == "X" ] && [ $trend == "X" ]; then + echo $wday $time "[D _ _]match ->" ${timerange[i]} + tr=${timerange[i]} + match=1 && break + fi + done + if [ $match == 1 ] ; then break ; fi + for ((i=0;i<$lines;i++)) ; do + trday=`echo ${timerange[i]} | cut -d "_" -f 1` + trbegin=`echo ${timerange[i]} | cut -d "_" -f 2` + trend=`echo ${timerange[i]} | cut -d "_" -f 3` + if [ $trday == "X" ] && [ $trbegin != "X" ] && [ $trbegin -le $time ] && \ + [ $time -le $trend ]; then + echo $wday $time "[_ H H]match ->" ${timerange[i]} + tr=${timerange[i]} + match=1 && break + else + if [ ${timerange[$i]} == "X_X_X" ]; then + echo $wday $time "[_ _ _]match ->" ${timerange[i]} + tr="X_X_X" && match=1 + else + match=0 + fi + fi + done + if [ $match == 1 ] || [ $match == 0 ] ; then break ; fi +done +} +# get_machineconfig: helper function for ldapconf, writing machine +# config data of one timerange $tr into file "tmp/confvialdap/$tr" +get_machineconfig(){ +ldapsearch -x -H ldap://$ldapserver -b $1 -D $user -w $pwd -LLL \ +"(&(objectclass=machineconfig)(timerange=$tr))"|sed '/dn:/d'|sed '/ou=/d'|\ +sed '/dc=/d'|sed '/objectC*/d'|sed '/Tim*/d'|sed '/cn:/d'|sed '/desc*/d'|sed \ +'s/: /=/g'|sed 's/-/_/g' > tmp/confvialdap/$tr +} + +ldapconf () { +local ldapserver=$1 +error "$error_ldapcfg" +echo "not implemented" > /tmp/ldap-done +} diff --git a/initramfs/eglibc-rootfs/etc/messages b/initramfs/eglibc-rootfs/etc/messages new file mode 100644 index 0000000..ca66245 --- /dev/null +++ b/initramfs/eglibc-rootfs/etc/messages @@ -0,0 +1,204 @@ +# Copyright (c) 2003 - 2006 - RZ Uni Freiburg +# Copyright (c) 2006 - 2009 - OpenSLX GmbH +# +# This program/file is free software distributed under the GPL version 2. +# See http://openslx.org/COPYING +# +# If you have any feedback please consult http://openslx.org/feedback and +# send your feedback to feedback@openslx.org +# +# General information about OpenSLX can be found at http://openslx.org +# +# Messages file for all error and info messages generated during client +# bootup (within initialramfs) for OpenSLX linux diskless clients version 5. +# Fhis file contains the standard set of error messages. + +# messages from (slx) init +init_errmsg="The functions file contains a lot of slx scripts \ +functionality. Without this\ninit script will not run." +init_mff="The main $init_errmsg" +init_dff="The distro $init_errmsg" +init_sscf="The slx configuration variables could not be found. Please +provide the slxconfig file." +init_noeth=" Unable to configure the ethernet device (eth0). Please check \ +for an\n appropriate kernel module." +init_errip=" Unable to setup at \ +least basic functionality, because no IP configuration\n available. You \ +might pass that information via kernel command line\n through setting of \ +'ipappend 1' in pxelinux.cfg/* or just enable dhcp\n or ldap. They are \ +enabled via tokens ('ldap' or 'dhcp') in kernel\n command line." +init_errldap=" Unable to setup at \ +least basic functionality, because no IP configuration\n available. Please \ +beware - ldap works only in combination of either\n ipappend or similar or \ +with dhcp!" +init_errnwad=" Failed to load the network adaptor modules added via \ +slxconfig-demuxer\n run. Please reconfigure the module list and add the \ +appropriate modules\n without *.ko suffix." +init_bootmac=" If you have more than one ethernet adaptor present in your \ +machine or using\n a NVidia chipset then it would be advisable to switch on \ +passing of the\n boot MAC address via kernel commandline (IPAPPEND=3) in \ +your PXElinux\n configuration." +init_nveth=" Your system uses a NVidia ethernet chip which might to fail to \ +get the\n original MAC address assigned. Use IPAPPEND=3 in your PXElinux \ +configuration\n to get the boot MAC address passed on." +init_errdhcp=" Did not get complete IP \ +configuration via DHCP. You may want to add\n a vendor code identifier \ +via kernel commandline (vci=VCI)." +init_erripcfg=" Up to now no IP configuration is available. If there is any \ +local file config\n the system may work locally." +init_errbld=" Failed to load \ +module ${NBD}.ko. It is needed if you intend to use\n network block \ +device (D)NBD for the client as root filesystem." +init_nbdcl=" Failed to start the network block device client. Unable to \ +mount root\n filesystem." +init_nbddev=" For some reason the network block device /dev/${NBD}0 never \ +appeared.\n You might want to check udev or your list of static device \ +files." +init_dnbd2s=" After 100 retries, it was not possible to start the dnbd2 \ +service. Please\n check that at least one server is available. You might \ +use the\n /sys/block/vnbd0 interface for this." +init_moddir=" The requested modules or firmware directory does not exist. \ +That could mean:\n\ + * The kernel was updated but the demuxer was not run afterwards.\n\ + * The mounted filesystem does not contain the modules directory at all.\n\ + You might want to check the list of mounted filesystems and if /mnt is\n\ + not empty run 'ls /mnt/lib/modules; ls /mnt/lib/firmware' to check." +init_loadaufs=" Loading of AUFS and/or UnionFS failed - Either the module(s) \ +are not\n present or do not match the running kernel. If you do not want to \ +see\n this message add the token(s) 'noaufs'/'nounionfs' to your kernel \ +command\n line or remove the modules from your kernel module directory." +init_loadunions=" Stacking of directories failed, because UnionFS/AUFS is not \ +loaded." +init_deselau=" You switched off AUFS and UnionFS via kernel commandline, thus \ +no module\n was loaded, using traditional bind mounts." +init_loadcow=" Loading of Copy On Write (COW - special block device) module \ +failed -\n Either module is not present or module does not match the \ +running\n kernel. If you do not want to see this message remove the token \ +'cowloop' from kernel command line." +init_cownobld=" Loading of cow module is of no sense if no network/other block \ +device is used or\n UnionFS/AUFS was specified as read write layer too. Remove \ +UnionFS/AUFS token from\n kernel commandline if cowloop should be used instead." +init_nfs=" Mount of root filesystem via NFS was requested via kernel command \ +line\n but failed. There might be the following reasons for that:\n \ +* No nfs.ko module could be loaded and no NFS support was present in the\n \ +running kernel - see error messages above\n \ +* You tried to mount from wrong server or path ($nfsroot)\n \ +* No NFS server is running or you do not have permissions" +init_ldcfg=" Starting ldconfig - normally switched off. Enable it via kernel \ +cmdline option\n 'noldsc'. You might have/want to add additional library \ +pathes to the\n ld.so.conf file." +init_errlog=" Unable to create the logfile configuration in \ +/etc/${D_SYSCONFDIR}. That\n might indicate some severe error." +init_fstab=" Failed to create /etc/fstab in the clients root filesystem. The\n\ + noexistence of the file might produce some unexpected behaviour of\n\ + mount commands." +init_errldcfg=" For some reason the generation of ld.so.cache did not \ +finish in time." +init_infldcfg=" You decided not to recreate \ +/etc/ld.so.cache file. That might cause errors\n if libraries are installed \ +after this file was created on server." +init_errlfg=" The ConfTGZ filesource was some local device which was not \ +mounted successfully.\n Either the wrong device was given or the filesystem \ +is not known to the kernel." +init_errloop=" The loopback mounting of the rootfs container failed. Either \ +the file is\n not available, unreadable or problems with the filesystem \ +modules." +init_errcfg="of this client did not finish in\n time. You might check the \ +process list and list the modules loaded until\n now." +init_errhw=" For some reason the hardware autoconfig $init_errcfg" +init_errxorg=" For some reason no xorg.conf appeared, check xconfig!" +init_errsw=" For some reason the software configuration $init_errcfg" +init_wait=" Waited $ticks ticks to unmount kernel module or firmware \ +directory ..." +init_errumnt=" Unmount of the kernel modules directory \ +failed for some reason. Some\n modprobe process still active!?" +init_errsys=" Unmount of the kernel sys directory \ +failed for some\nreason. You will get some error messages that some files \ +could not be\n removed." +init_runinit=" Could not execute run-init due to missing command or wrong\n \ +parameters given." +init_picfg=" The plugin configuration directory is missing. This could be due \ +to failed\n config get process at the beginning of stage3 setup. Either \ +requested\n configuration file is missing in ~/client-config/<system> or a \ +general\n transmission error." + +# messages from functions +error_msg="An error occured during execution of $0 script:\n\n" +error_nfe="\n -> This error is not fatal - continuing ...\n" +error_shell="\n -> Running shell for debugging purposes now ...\n" +error_modload="Failed to load module " +error_modnfs="needed for mounting rootfs" +error_nodhcp=" You tried to configure system via dhcp, but no usable dhcp\n\ + client could be found. Please check that you have some client from\n\ + the following list installed: dhclient dhcpcd pump ipconfig." +error_dhcp=" The following problems could produce that error:\n\ + * The af_packet.ko module is either not loaded nor present in kernel.\n\ + * No network device is present - either no module matching the hardware\n\ + was loaded nor present in kernel.\n You might want to run 'lsmod'." +error_dhclient=" Fatal error occured while trying to run dhclient.\n\ +$error_dhcp" +error_ldapcfg=" The configuration via ldap is not implemented yet." +error_errdcfg=" Did not get any configuration data via dhcp until now ..." +error_errfcfg=" Did not get any configuration data via tftp until now ..." +error_errlcfg=" Did not get any configuration data via ldap until now ..." +unpack_ConfTGZ=" Error during unpacking of the ConfTGZ archive.\nAre you sure \ +it is in proper format?" +nomachsetup=" No machine-setup file found. You might not have gotten any \ +configuration\n from your server. You could find that out by checking if \ +/initramfs and\n /rootfs are present!" + +# messages from distro functions +df_erritab=" The file /etc/inittab does not exist or is no regular one. It \ +is needed\n for the bootup procedure to follow. If upstart is used instead no \ +inittab\n is needed any more, but a proper configured events.d." +df_errumod=" Failed to load the \"unix\" module. Problems with Hardware \ +detection\nwill probably arise." +df_errserv="seems not to be installed or start script is\n not available\ +so requesting the start of service make no sense. Please\n disable service\ +or install the files/packages needed." +df_errcron=" The cron start script $df_errserv" +df_errsysl=" The syslog start script $df_errserv" +df_errsshd=" The sshd start script $df_errserv" +df_erryp=" The NIS client $df_errserv" +df_errpmap=" The portmapper $df_errserv" +df_erramnt=" Automounter $df_errserv" +df_errnsc=" Name Service caching deamon $df_errserv\n This service might \ +be useful to take load from a ldap user directory." +df_errafsd=" No afs directory present." +df_errafsn=" AFS client service is not available." +df_errkbd=" No non-english keyboard and console settings are installed. \ +Please add\n them to your stage1 to have them enabled." + +# messages from servconfig +scfg_nfs=" Mount of some NFS source failed ..." +scfg_rdate=" Your configured ntpserver does not offer time configuration \ +on port 37." +scfg_ntptz=" No such timezone data file (needed for ntp time service \ +configuration)." +scfg_evmlm=" Mounting of local device source for vmware directory failed \ +for some reason." +scfg_vmdir=" For some reason the runvmware script is not available for \ +copying. That\n could be the result of failed mount or simply missing \ +file on\n server." +scfg_vmchs=" The virtual machines lister/chooser is not available from \ +~/templates\n directory. Thus no default k/gdm menu entry is created." +scfg_erradir=" Only one directory level is allowed to hook up automounter \ +to and the\n directory should exist (on the servers export) or should be \ +creatable\n (e.g. because of UnionFS writeable root directory)." +scfg_country=" No configuration for localization found in config file. \ +Using default\n country setting '${D_DEFAULTCOUNTRY}' defined in $0." + +# messages from hwautocfg +hcfg_hwsetup=" The X server configuration file generated by hwautocfg could \ +not\n be found." +gfx_msg="Please check your graphic adaptor settings ($hw_graphic)." +hw_msg=" Please check your predefined monitor settings ($hw_monitor): \ +Automatic\n configuration of display" +hcfg_res=" $hwmsg resolution was attempted but not established. Using \ +default resolutions (defined in xconfig)" +hcfg_hwsetup=" Expected information from hwsetup to appear in \ +/tmp/hwsetup.info.\n Unable to configure parts of the systems hardware. \ +Please check that\n hwsetup is properly installed and executable." +hcfg_keyb=" No settings found for keyboard, using default of '${XKEYBOARD}' \ +defined\n in $0." + diff --git a/initramfs/eglibc-rootfs/etc/messages.de b/initramfs/eglibc-rootfs/etc/messages.de new file mode 100644 index 0000000..487332d --- /dev/null +++ b/initramfs/eglibc-rootfs/etc/messages.de @@ -0,0 +1,215 @@ +# Copyright (c) 2003 - 2006 - RZ Uni Freiburg +# Copyright (c) 2006 - 2010 - OpenSLX GmbH +# +# This program/file is free software distributed under the GPL version 2. +# See http://openslx.org/COPYING +# +# If you have any feedback please consult http://openslx.org/feedback and +# send your feedback to feedback@openslx.org +# +# General information about OpenSLX can be found at http://openslx.org +# +# Messages file for all error and info messages generated during client +# bootup (within initialramfs) for OpenSLX linux diskless clients version 5 +# this file could be used for localization of error messages. + +# messages from (slx) init / Fehlermeldungen des SLX init +init_errmsg=" ,,functions''-Datei beinhaltet viele Funktionen \ +der SLX Skripte. Ohne diese\n wird das Init-Skript nicht funktionieren." +init_mff=" Die Haupt $init_errmsg" +init_dff=" Die Distro $init_errmsg" +init_sscf=" Die SLX Konfigurations-Variablen wurden nicht gefunden. +Bitte stellen Sie die\n SLX Konfigurations-Datei zur Verfuegung." +init_noeth=" Konnte die Netzwerk-Schnittstelle nicht konfigurieren (eth0).\ + Bitte pruefen,\n ob das geeignete kernel-Modul vorhanden ist." +init_errip=" Konnte die Grund-Funktionalitaet nicht einrichten, \ +da keine IP-Konfigurationen\n vorhanden sind. Sie koennten diese \ +Informationen ueber die Kernel-Command-Line\n durch die Einstellung \ +'ipappend 1' in pxelinux.cfg/* oder ldap\n aktivieren. Sie werden durch \ +Token ('ldap') in den Kernel Start Optionen\n eingeschaltet." +init_errldap=" Konnte nicht wenigstens die Grund-Funktionalitaet einrichten, \ +da keine IP-Konfigurationen\n vorhanden sind. Achtung - ldap arbeitet nur in \ +Kombination mit IPAPPEND (PXE)\n o.ae. oder DHCP!" +init_errnwad=" Konnte die Netzwerk-Adapter, die durch den slx/mkramfs bzw. \ +mkdxsinitrd-Aufruf definiert\n wurden, nicht laden. Bitte erneut aufrufen \ +und die passenden Module auflisten\n (ohne Endung .ko)." +init_bootmac=" Es scheint mehr als eine Ethernet-Karte installiert und die \ +passenden\n Kernel-Module geladen zu sein. Das kann fuer Probleme sorgen, da \ +evtl.\n die nicht verbundene Netzwerkkarte als das erste Interface konfiguriert\ + \n wurde. Durch die Uebergabe der MAC Adresse des Bootdevices (IPAPPEND=3 in +der PXElinux-Konfiguration) laesst sich dieses vermeiden." +init_nveth=" Ihr System benutzt anscheinend eine NVidia-Netzwerkkarte. Hier \ +kann es\n vorkommen, dass die MAC-Adresse nicht korrekt eingestellt wird. \ +Dieses laesst\n sich durch die Uebergabe der MAC Adresse des Bootdevices \ +(IPAPPEND=3 in der PXElinux-Konfiguration) vermeiden." +init_errdhcp=" Keine komplette IP-Konfiguration ueber DHCP bekommen. \ +Eventuell sollten Sie\n ueber die Kernel Start Optionen eine Hersteller Code \ +ID (vendor code identifier)\n (VCI=vci) hinzufuegen." +init_erripcfg=" Bis zu diesem Zeitpunkt konnte keine (gueltige) IP.\ +Konfiguration beschafft\n werden. Die Maschine kann funktionieren, wenn \ +lokale Konfiguration per\n Datei moeglich ist." +init_errbld=" Konnte nicht das Modul ${NBD}.ko laden. Es wird gebraucht, \ +wenn Sie vorhaben, das\n Netzwerk Block Geraet (network block device) (D)NBD \ +fuer den Klienten als Wurzel-Dateisystem zu verwenden." +init_nbdcl=" Konnte den Network Block Geraete-Dienst nicht starten und damit \ +das Wurzel-Dateisystem\n nicht einhaengen." +init_nbddev=" Aus irgendeinem Grund ist /dev/${NBD}0 nie erschienen. Sie \ +sollten ihr udev-System\n nach Listen von statischen Geraeten untersuchen." +init_dnbd2s=" Nach 100 Versuchen konnte das dnbd2 Blockdevice keinen laufenden \ +Server finden.\n Bitte ueberpruefen Sie die Erreichbarkeit." +init_moddir=" Das angeforderte Modul- bzw. Firmware-Verzeichnis existiert \ +nicht. Das\n koennte bedeuten:\n\ + * Der Kernel wurde ausgetauscht/erneuert ohne einen neuen Aufruf \ +von slxmkramfs oder\n mkdxsinitrd.\n * Das eingehaengte Dateisystem \ +beinhaltet das Modul-Verzeichnis ueberhaupt nicht.\n Sie sollten die Liste \ +der eingehaengten Dateisysteme pruefen und wenn /mnt\n nicht leer ist, \ +'ls /mnt/lib/modules' ausfuehren." +init_loadunions=" Stapeln mehrerer Verzeichnisse nicht moeglich, da kein \ +UnionFS/AUFS\n Modul geladen ist." +init_loadaufs=" Laden von AUFS/UnionFS schlug fehl - entweder das Modul ist \ +nicht vorhanden, oder\n es passt nicht zum laufenden Kernel. Wenn Sie diese \ +Meldung nicht sehen\n wollen, fügen Sie das Token 'noaufs'/'nounionfs' den \ +Kernel Start\n Optionen hinzu oder loeschen Sie die Module." +init_deselau=" Sie haben AUFS und UnionFS mittels Kernel-Commandline \ +ausgeschaltet, deshalb\n wurde kein entsprechendes Kernel-Modul geladen." +init_loadcow=" Laden von Copy On Write (COW - Spezielles Block Geraet) Modul \ +schlug fehl -\n entweder das Modul nicht praesent oder es passt nicht zum \ +laufenden\n Kernel. Wenn Sie diese Meldung nicht sehen wollen, entfernen sie \ +das Token 'cowloop' aus den Kernel Start Optionen." +init_loadufs=" Laden von UnionFS schlug fehl - entweder das Modul ist \ +nicht vorhanden, oder\n es passt nicht zum laufenden Kernel. Wenn Sie diese \ +Meldung nicht mehr sehen\n wollen, entfernen Sie das Token 'unionfs' von den \ +Kernel Start Optionen." +init_cownonbd=" Laden des COW-Moduls ist sinnlos, wenn kein Netzwerk Block \ +Geraet benutzt wird oder\n UnionFS als Lese- Schreib-Schicht spezifiziert \ +wurde. Entfernen Sie das UnionFS Token aus\n den Kernel-Start-Optionen wenn \ +'cowloop' stattdessen verwendet werden soll." +init_nfs=" Einhaengen des Wurzel Dateisystems ueber NFS wurde angefordert \ +durch die Kernel Start Optionen,\n aber schlug fehl. Die folgenden Gruende \ +koennten verantwortlich sein:\n\ + * Kein nfs.ko (und weitere dafuer benoetigte) Modul konnte geladen werden und \ +keine NFS Unterstuetzung war im\n laufenden Kernel vorhanden - siehe \ +Fehlermeldungen darueber.\n\ + * Sie versuchten, einen falschen Pfad einzuhaengen ($nfsroot).\n\ + * Kein NFS-Server laeuft oder Sie haben nicht die Zugriffsberechtigungen auf \ +diesen." +init_ldcfg=" Starte ldconfig - normalerweise ausgeschaltet. Wird mit der Kernel \ +Start Option\n 'noldsc' aktiviert. Eventuell sollten Sie zusaetzliche \ +Bibliothekspfade\n zur ld.so.conf hinzufuegen." +init_errlog=" Konnte die Log-Datei Konfiguration nicht anlegen in \ +/etc/${D_SYSCONFDIR}. Das\n koennte auf schwerwiegende Fehler hindeuten." +init_fstab="Das Erzeugen von /etc/fstab im Wurzel-Dateisystem des Clients \ +schlug fehl.\n Die Abwesenheit dieser Datei koennte unvorhergesehenes Verhalten \ +der mount-Befehle\n verursachen." +init_errldcfg=" Aus irgendeinem Grund konnte die Erstellung von ld.so.cache \ +nicht rechtzeitig fertiggestellt\n werden." +init_infldcfg=" Sie entschieden sich, die Datei /etc/ld.so.cache nicht neu \ +zu erstellen. Das koennte Fehler verursachen\n wenn Bibliotheken installiert \ +werden nachdem diese Datei auf dem Server erstellt wurde." +init_errlfg=" Die ConfTGZ Quelle war ein lokales Device, welches nicht korrekt \ +eingebunden werden\n konnte. Entweder wurde das falsche Device/Partition \ +angegeben oder das\n Dateisystem ist dem Kernel nicht bekannt." +init_errloop=" Der Loopback-Mounting des Rootfilesystem-Containers schlug \ +fehl. Entweder\n die Datei existiert nicht, ist unlesbar oder es gibt \ +Probleme mit\n den Filesystem-Modulen." +init_errcfg="des Clients nicht rechtzeitig beendet\n Sie sollten die Prozess \ +Liste pruefen und die Module, die bis zum jetzigen Zeitpunkt geladen wurden." +init_errhw=" Aus irgendeinem Grund wurde die Hardware Auto-Konfiguration \ +$init_errcfg" +init_errsw=" Aus irgendeinem Grund wurde die Software Konfiguration $init_errcfg" +init_wait=" Wartete $i Zeiteinheiten das Kernel-Modul- bzw. Firmware-Verzeichnis \ +auszuhaengen ..." +init_errumnt=" Das Kernel Modul Verzeichnis auszuhaengen \ +scheiterte aus irgendeinem Grund. Sind einige\n ,,modprobe'' noch aktiv!?" +init_errsys=" Aushaengen des Kernel /sys Verzeichnisses schlug aus irgendeinem \ +Grund\n fehl. Sie werden einige Fehlermeldungen bekommen,\ +\ndass einige Dateien nicht entfernt werden konnten." +init_runinit=" Konnte switch_root/run-init nicht ausfuehren, wegen fehlender \ +Befehle\n oder falsch angegebenen Parametern." +init_picfg=" Das Plugin-Konfigurationsverzeichnis fehlt. Dieses könnte an einem \ +fehlgeschlagenen\n holen der Client-Konfiguration liegen, weil entweder die \ +Datei nicht auf\n dem Server verfuegbar ist oder der Transport nicht klappte." + +# messages from functions +error_msg="Ein Fehler trat auf waehrend der Ausfuehrung des $0 Skripts:\n\n" +error_nfe="\n -> Dieser Fehler ist nicht schwerwiegend - setze fort ...\n" +error_shell="\n -> Fuehre Shell aus zum Debuggen ...\n" +error_modload="Es schlug fehl, folgendes Modul zu laden:" +error_modnfs="gebraucht zum einhaengen des Wurzel Dateisystems" +error_nodhcp=" Sie versuchten ihr System mittels DHCP einzurichten, es wurde \ +aber kein brauchbarer DHCP\n Client gefunden. Bitte pruefen Sie, ob sie einen \ +der folgenden Clients\n installiert haben: dhclient dhcpcd pump udhcpc." +error_dhcp=" Die folgenden Probleme koennten den Fehler verursachen:\n\ + * Das af_packet.ko Modul ist weder geladen noch praesent im Kernel.\n\ + * Kein Netzwerk Geraet ist praesent - weder ein passendes Modul\n\ + wurde geladen noch ist praesent im laufenden Kernel.\n Sie sollten \ +'lsmod' ausfuehren." +error_dhclient=" Schwerer Fehler aufgetreten beim Aufrufen von dhclient.\n\ +$error_dhcp" +error_ldapcfg=" Die Konfiguration via ldap ist noch nicht implementiert." +error_errdcfg=" Bis jetzt noch keine Konfigurationsdaten bekommen via dhcp .." +error_errfcfg=" Bis jetzt noch keine Konfigurationsdaten bekommen via tftp ..." +error_errlcfg=" Bis jetzt noch keine Konfigurationsdaten bekommen via ldap ..." +unpack_ConfTGZ=" Fehler beim entpacken des ConfTGZ.\nSind Sie sicher, dass es im \ +richtigen Format ist?" +nomachsetup=" Die Datei machine-setup nicht gefunden. Es koennte sein, dass das \ +Konfigurations-\n paket nicht erfolgreich vom Server beschafft wurde. Das \ +erkennen Sie daran,\n dass die Verzeichnisse /initramfs, /rootfs angelegt \ +wurden. Ihr\n OpenSLX Client wird deshalb nicht wie erwartet funktionieren." + +# messages from distro functions +df_erritab=" Die Datei /etc/inittab existiert nicht oder ist keine regulaere. \ +\n Sie wird fuer den Boot-Process benoetigt." +df_errumod=" Das Laden des \"unix\" Moduls schlug fehl. \nWahrscheinlich \ +werden Probleme bei der Hardware-Erkennung auftreten." +df_errserv="ist entweder nicht installiert oder das Start-Skript ist nicht \ +verfuegbar.\n Deswegen macht der Start des Dienstes keinen Sinn. Bitte \ +deaktivieren Sie den Start\n oder installieren Sie die benoetigten Dateien." +df_errcron=" Das cron Start-Skript $df_errserv" +df_errsysl=" Das syslog Start-Skript $df_errserv" +df_errsshd=" Das sshd Start-Skript $df_errserv" +df_erryp=" Der NIS-Klient $df_errserv" +df_errpmap=" Der Portmapper $df_errserv" +df_erramnt=" Der Automounter $df_errserv" +df_errnsc=" Der Name Service Zwischenspeicherungs Daemon $df_errserv\n \ +Dieser Dienst koennte nuetzlich sein, um Daten von einem ldap Benutzer-\ +Verzeichnis zu bekommen." +df_errafsd=" Kein AFS Verzeichnis erreichbar" +df_errafsn=" Der AFS-Client Dienst ist nicht verfuegbar" +df_errkbd=" Keine nicht-englische Tastatur und/oder Konsolenunterstuetzung \ +installiert.\n Falls gewuenscht/benoetigt diese im Stage1 nachinstallieren!" + +# messages from servconfig +scfg_nfs=" Das Einhaengen einer NFS Quelle schlug fehl..." +scfg_ntptz=" Die Zeitzonen-Datei wurde nicht gefunden (gebraucht fuer die \ +NTP-Zeit Dienst Konfiguration)." +scfg_evmlm=" Das Einbinden der lokalen Festplatte(npartition) des VMware-\ +Image-Verzeichnisses\n schlug fehl." +scfg_vmdir=" Aus irgendeinem Grund kann das runvmware Skript nicht \ +verfuegbar zu kopieren.\n Das koennte das Ergebnis eines fehlgeschlagenen \ +Mount-Versuchs sein\n oder die Datei fehlt auf dem Server." +scfg_vmchs=" Das Auswahltool/menu fuer Virtuelle Machinen ist nicht im \ +~/templates\n Verzeichnis vorhanden. Deshalb wurde kein Default KDM Menu \ +Eintrag erzeugt." +scfg_erradir=" Es wird nur eine Verzeichnis-Ebene erlaubt, den Automounter \ +zu installieren und das\n Verzeichnis sollte existieren (auf dem \ +Server-Export) oder sollte anlegbar sein\n (z.B. durch UnionFS beschreibbares \ +Wurzel-Verzeichnis)." +scfg_country=" Keine Konfiguration fuer die Lokalisierung gefunden in der \ +Konfigurations-Datei. Benutzer\n Standard Laender-Einstellung \ +'${D_DEFAULTCOUNTRY}' definiert in $0." + +# messages from hwautocfg +hcfg_hwsetup=" Die xserver-Konfigurations-Datei, erstellt von hwsetup, konnte \ +nicht\n gefunden werden." +gfx_msg="Bitte pruefen Sie ihre Grafik-Adapter-Einstellungen ($hw_graphic)." +hw_msg=" Bitte pruefen Sie ihre vordefinierten Monitor-Einstellungen ($hw_monitor): \ +Automatische\n Konfiguration des Bildschirms." +hcfg_res=" $hwmsg Aufloesung wurde versucht aber nicht eingerichtet. Benutze \ +Standard-Aufloesungen (defined in xconfig)" +hcfg_hwsetup=" Erwartete Informationen von hwsetup in \ +/tmp/hwsetup.info.\n Teile des Systems koennen nicht eingerichtet werden. \ +Bitte pruefen, dass\n hwsetup richtig installiert und ausfuehrbar ist." +hcfg_keyb=" Keine Einstellungen fuer ihre Tastatur gefunden, verwende den \ +Standard-Wert '${XKEYBOARD}' definiert\n in $0." + diff --git a/initramfs/eglibc-rootfs/etc/resolv.conf b/initramfs/eglibc-rootfs/etc/resolv.conf new file mode 100644 index 0000000..5f7e646 --- /dev/null +++ b/initramfs/eglibc-rootfs/etc/resolv.conf @@ -0,0 +1 @@ +nameserver 132.230.200.200 diff --git a/initramfs/eglibc-rootfs/etc/udhcpc.default.script b/initramfs/eglibc-rootfs/etc/udhcpc.default.script new file mode 100755 index 0000000..5afaa7a --- /dev/null +++ b/initramfs/eglibc-rootfs/etc/udhcpc.default.script @@ -0,0 +1,50 @@ +#!/bin/sh +# Busybox udhcpc dispatcher script. Copyright (C) 2009 by Axel Beckert. +# +# Based on the busybox example scripts and the old udhcp source +# package default.* scripts. + +RESOLV_CONF="/etc/resolv.conf" + +case $1 in + bound|renew) + [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" + [ -n "$subnet" ] && NETMASK="netmask $subnet" + + ip addr add $ip/$(ipcalc -s -p $ip $subnet|sed s/.*=//) dev $interface + ip route add default via $router + + # Update resolver configuration file + R="" + [ -n "$domain" ] && R="domain $domain +" + for i in $dns; do + echo "$0: Adding DNS $i" + R="${R}nameserver $i +" + done + + if [ -x /sbin/resolvconf ]; then + echo -n "$R" | resolvconf -a "${interface}.udhcpc" + else + echo -n "$R" > "$RESOLV_CONF" + fi + ;; + + deconfig) + + ;; + + leasefail) + echo "$0: Lease failed: $message" + ;; + + nak) + echo "$0: Received a NAK: $message" + ;; + + *) + echo "$0: Unknown udhcpc command: $1"; + exit 1; + ;; +esac diff --git a/initramfs/eglibc-rootfs/init b/initramfs/eglibc-rootfs/init new file mode 100755 index 0000000..cb2ff2d --- /dev/null +++ b/initramfs/eglibc-rootfs/init @@ -0,0 +1,72 @@ +#!/bin/ash +# sc2010 Init + +############################################################################# +# PreBoot init main part + +# device files get their own filesystem +devdir="/dev" +mount -n -t tmpfs -o 'size=25%,mode=0755' mdev ${devdir} +mount -t tmpfs tmpfs /tmp +mkdir -p /dev/pts +mount -t devpts devpts /dev/pts +mount -t proc proc /proc +mount -t sysfs sysfs /sys +echo /sbin/mdev > /proc/sys/kernel/hotplug +cat > /etc/mdev.conf << "EOF" +sda* 0:6 0660 +sdb* 0:6 0660 +sg* 0:6 0660 +hda* 0:6 0660 +hdb* 0:6 0660 +EOF + +mdev -s + +export DEBUGLEVEL=0 + +# create basic device files an directories in dev +for i in "/dev/mem c 1 1" "/dev/null c 1 3" "/dev/zero c 1 5" \ + "/dev/urandom c 1 9" "/dev/kmsg c 1 11" "/dev/tty0 c 4 0" \ + "/dev/tty1 c 4 1" "/dev/tty2 c 4 2" "/dev/tty3 c 4 3" \ + "/dev/tty4 c 4 4" "/dev/tty5 c 4 5" "/dev/tty6 c 4 6" \ + "/dev/tty7 c 4 7" "/dev/tty8 c 4 8" "/dev/tty9 c 4 9" \ + "/dev/tty10 c 4 10" "/dev/tty c 5 0" "/dev/console c 5 1" \ + "/dev/ptmx c 5 2" "/dev/psaux c 10 1" "/dev/agpgart c 10 175" \ + "/dev/fb0 c 29 0" "/dev/bootsplash p" "/dev/xconsole p"; do + [ -e $(echo $i | awk ' {print $1}') ] || mknod $i +done +mkdir -p ${devdir}/pts ${devdir}/shm +export PATH=/bin:/sbin:/usr/bin/:/usr/sbin + +echo "Starting shell, leaving it would continue init." +getty -i -n -l /bin/cat 38400 tty10 & +setlogcons 10 + +# initramfs-setup configuration (common settings for all clients using a +# certain InitRamFS generated by slxmkramfs/mkdxsinitrd) +[ -f /etc/initramfs-setup ] && . /etc/initramfs-setup 2>/dev/null + +# set a default LAN interface, has to be modified for WLAN or on machines +# with more than one ethernet card built in +nwif="eth0" + +# mount the important standard directories +[ ! -f /proc/cpuinfo ] && mount -n -t proc proc /proc +[ ! -d /sys/class ] && mount -n -t sysfs sysfs /sys + +# set up loopback networking and power up ethernet +ip link set dev lo up +ip addr add 127.0.0.1/8 dev lo +ip link set dev $nwif up || echo "I did not find any usable network adaptor." + +# run udhcpc and start a debug shell if no lease could be obtained +udhcpc -f -n -q -s /etc/udhcpc.default.script -i $nwif 2>/dev/null + +loadkmap < /etc/keymaps/de_DE + +cat /etc/issue + +exec /sbin/init + +#exec getty -n -l /bin/ash 38400 tty1 diff --git a/initramfs/eglibc-rootfs/lib/ld-2.11.2.so b/initramfs/eglibc-rootfs/lib/ld-2.11.2.so Binary files differnew file mode 100755 index 0000000..fecb3a4 --- /dev/null +++ b/initramfs/eglibc-rootfs/lib/ld-2.11.2.so diff --git a/initramfs/eglibc-rootfs/lib/ld-linux.so.2 b/initramfs/eglibc-rootfs/lib/ld-linux.so.2 new file mode 120000 index 0000000..e165495 --- /dev/null +++ b/initramfs/eglibc-rootfs/lib/ld-linux.so.2 @@ -0,0 +1 @@ +ld-2.11.2.so
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/lib/libc.so.6 b/initramfs/eglibc-rootfs/lib/libc.so.6 Binary files differnew file mode 100755 index 0000000..bfaac50 --- /dev/null +++ b/initramfs/eglibc-rootfs/lib/libc.so.6 diff --git a/initramfs/eglibc-rootfs/lib/libdbus-1.so.3 b/initramfs/eglibc-rootfs/lib/libdbus-1.so.3 Binary files differnew file mode 100644 index 0000000..526f06d --- /dev/null +++ b/initramfs/eglibc-rootfs/lib/libdbus-1.so.3 diff --git a/initramfs/eglibc-rootfs/lib/libdl.so.2 b/initramfs/eglibc-rootfs/lib/libdl.so.2 Binary files differnew file mode 100644 index 0000000..7aa1cfc --- /dev/null +++ b/initramfs/eglibc-rootfs/lib/libdl.so.2 diff --git a/initramfs/eglibc-rootfs/lib/libnss_dns-2.11.2.so b/initramfs/eglibc-rootfs/lib/libnss_dns-2.11.2.so Binary files differnew file mode 100644 index 0000000..5d17fe4 --- /dev/null +++ b/initramfs/eglibc-rootfs/lib/libnss_dns-2.11.2.so diff --git a/initramfs/eglibc-rootfs/lib/libnss_dns.so.2 b/initramfs/eglibc-rootfs/lib/libnss_dns.so.2 new file mode 120000 index 0000000..870d4ad --- /dev/null +++ b/initramfs/eglibc-rootfs/lib/libnss_dns.so.2 @@ -0,0 +1 @@ +libnss_dns-2.11.2.so
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/lib/libresolv-2.11.2.so b/initramfs/eglibc-rootfs/lib/libresolv-2.11.2.so Binary files differnew file mode 100644 index 0000000..bd199af --- /dev/null +++ b/initramfs/eglibc-rootfs/lib/libresolv-2.11.2.so diff --git a/initramfs/eglibc-rootfs/lib/libresolv.so.2 b/initramfs/eglibc-rootfs/lib/libresolv.so.2 new file mode 120000 index 0000000..0e93257 --- /dev/null +++ b/initramfs/eglibc-rootfs/lib/libresolv.so.2 @@ -0,0 +1 @@ +libresolv-2.11.2.so
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/lib/librt.so.1 b/initramfs/eglibc-rootfs/lib/librt.so.1 Binary files differnew file mode 100644 index 0000000..fbea0db --- /dev/null +++ b/initramfs/eglibc-rootfs/lib/librt.so.1 diff --git a/initramfs/eglibc-rootfs/linuxrc b/initramfs/eglibc-rootfs/linuxrc new file mode 120000 index 0000000..f9f7342 --- /dev/null +++ b/initramfs/eglibc-rootfs/linuxrc @@ -0,0 +1 @@ +bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/arp b/initramfs/eglibc-rootfs/sbin/arp new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/arp @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/bootchartd b/initramfs/eglibc-rootfs/sbin/bootchartd new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/bootchartd @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/fbsplash b/initramfs/eglibc-rootfs/sbin/fbsplash new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/fbsplash @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/fdisk b/initramfs/eglibc-rootfs/sbin/fdisk new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/fdisk @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/getty b/initramfs/eglibc-rootfs/sbin/getty new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/getty @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/halt b/initramfs/eglibc-rootfs/sbin/halt new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/halt @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/hdparm b/initramfs/eglibc-rootfs/sbin/hdparm new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/hdparm @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/hwclock b/initramfs/eglibc-rootfs/sbin/hwclock new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/hwclock @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/init b/initramfs/eglibc-rootfs/sbin/init new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/init @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/inotifyd b/initramfs/eglibc-rootfs/sbin/inotifyd new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/inotifyd @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/insmod b/initramfs/eglibc-rootfs/sbin/insmod new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/insmod @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/kexec b/initramfs/eglibc-rootfs/sbin/kexec Binary files differnew file mode 100755 index 0000000..dab2eb6 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/kexec diff --git a/initramfs/eglibc-rootfs/sbin/klogd b/initramfs/eglibc-rootfs/sbin/klogd new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/klogd @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/ldconfig b/initramfs/eglibc-rootfs/sbin/ldconfig Binary files differnew file mode 100755 index 0000000..e3fbe42 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/ldconfig diff --git a/initramfs/eglibc-rootfs/sbin/loadkmap b/initramfs/eglibc-rootfs/sbin/loadkmap new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/loadkmap @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/logread b/initramfs/eglibc-rootfs/sbin/logread new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/logread @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/lsmod b/initramfs/eglibc-rootfs/sbin/lsmod new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/lsmod @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/lspci b/initramfs/eglibc-rootfs/sbin/lspci new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/lspci @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/lsusb b/initramfs/eglibc-rootfs/sbin/lsusb new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/lsusb @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/mdev b/initramfs/eglibc-rootfs/sbin/mdev new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/mdev @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/mkdosfs b/initramfs/eglibc-rootfs/sbin/mkdosfs new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/mkdosfs @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/mkfs.vfat b/initramfs/eglibc-rootfs/sbin/mkfs.vfat new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/mkfs.vfat @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/mkswap b/initramfs/eglibc-rootfs/sbin/mkswap new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/mkswap @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/modinfo b/initramfs/eglibc-rootfs/sbin/modinfo new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/modinfo @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/modprobe b/initramfs/eglibc-rootfs/sbin/modprobe new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/modprobe @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/poweroff b/initramfs/eglibc-rootfs/sbin/poweroff new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/poweroff @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/reboot b/initramfs/eglibc-rootfs/sbin/reboot new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/reboot @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/rmmod b/initramfs/eglibc-rootfs/sbin/rmmod new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/rmmod @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/route b/initramfs/eglibc-rootfs/sbin/route new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/route @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/setconsole b/initramfs/eglibc-rootfs/sbin/setconsole new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/setconsole @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/start-stop-daemon b/initramfs/eglibc-rootfs/sbin/start-stop-daemon new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/start-stop-daemon @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/swapoff b/initramfs/eglibc-rootfs/sbin/swapoff new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/swapoff @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/swapon b/initramfs/eglibc-rootfs/sbin/swapon new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/swapon @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/switch_root b/initramfs/eglibc-rootfs/sbin/switch_root new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/switch_root @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/sysctl b/initramfs/eglibc-rootfs/sbin/sysctl new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/sysctl @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/syslogd b/initramfs/eglibc-rootfs/sbin/syslogd new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/syslogd @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/tunctl b/initramfs/eglibc-rootfs/sbin/tunctl new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/tunctl @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/udhcpc b/initramfs/eglibc-rootfs/sbin/udhcpc new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/udhcpc @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/vconfig b/initramfs/eglibc-rootfs/sbin/vconfig new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/vconfig @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/watchdog b/initramfs/eglibc-rootfs/sbin/watchdog new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/watchdog @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/sbin/zcip b/initramfs/eglibc-rootfs/sbin/zcip new file mode 120000 index 0000000..7125971 --- /dev/null +++ b/initramfs/eglibc-rootfs/sbin/zcip @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/[ b/initramfs/eglibc-rootfs/usr/bin/[ new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/[ @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/[[ b/initramfs/eglibc-rootfs/usr/bin/[[ new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/[[ @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/ar b/initramfs/eglibc-rootfs/usr/bin/ar new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/ar @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/arping b/initramfs/eglibc-rootfs/usr/bin/arping new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/arping @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/awk b/initramfs/eglibc-rootfs/usr/bin/awk new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/awk @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/basename b/initramfs/eglibc-rootfs/usr/bin/basename new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/basename @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/bunzip2 b/initramfs/eglibc-rootfs/usr/bin/bunzip2 new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/bunzip2 @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/bzcat b/initramfs/eglibc-rootfs/usr/bin/bzcat new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/bzcat @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/bzip2 b/initramfs/eglibc-rootfs/usr/bin/bzip2 new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/bzip2 @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/chvt b/initramfs/eglibc-rootfs/usr/bin/chvt new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/chvt @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/cut b/initramfs/eglibc-rootfs/usr/bin/cut new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/cut @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/deallocvt b/initramfs/eglibc-rootfs/usr/bin/deallocvt new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/deallocvt @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/du b/initramfs/eglibc-rootfs/usr/bin/du new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/du @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/dumpleases b/initramfs/eglibc-rootfs/usr/bin/dumpleases new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/dumpleases @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/eject b/initramfs/eglibc-rootfs/usr/bin/eject new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/eject @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/env b/initramfs/eglibc-rootfs/usr/bin/env new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/env @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/expr b/initramfs/eglibc-rootfs/usr/bin/expr new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/expr @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/fgconsole b/initramfs/eglibc-rootfs/usr/bin/fgconsole new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/fgconsole @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/find b/initramfs/eglibc-rootfs/usr/bin/find new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/find @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/flock b/initramfs/eglibc-rootfs/usr/bin/flock new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/flock @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/free b/initramfs/eglibc-rootfs/usr/bin/free new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/free @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/ftpget b/initramfs/eglibc-rootfs/usr/bin/ftpget new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/ftpget @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/ftpput b/initramfs/eglibc-rootfs/usr/bin/ftpput new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/ftpput @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/head b/initramfs/eglibc-rootfs/usr/bin/head new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/head @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/id b/initramfs/eglibc-rootfs/usr/bin/id new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/id @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/killall b/initramfs/eglibc-rootfs/usr/bin/killall new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/killall @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/ld b/initramfs/eglibc-rootfs/usr/bin/ld Binary files differnew file mode 100755 index 0000000..0889e5f --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/ld diff --git a/initramfs/eglibc-rootfs/usr/bin/ldd b/initramfs/eglibc-rootfs/usr/bin/ldd new file mode 100755 index 0000000..d34ec6e --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/ldd @@ -0,0 +1,193 @@ +#! /bin/bash +# Copyright (C) 1996-2008, 2009 Free Software Foundation, Inc. +# This file is part of the GNU C Library. + +# The GNU C Library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License as published by the Free Software Foundation; either +# version 2.1 of the License, or (at your option) any later version. + +# The GNU C Library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. + +# You should have received a copy of the GNU Lesser General Public +# License along with the GNU C Library; if not, write to the Free +# Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA +# 02111-1307 USA. + + +# This is the `ldd' command, which lists what shared libraries are +# used by given dynamically-linked executables. It works by invoking the +# run-time dynamic linker as a command and setting the environment +# variable LD_TRACE_LOADED_OBJECTS to a non-empty value. + +# We should be able to find the translation right at the beginning. +TEXTDOMAIN=libc +TEXTDOMAINDIR=/usr/share/locale + +RTLDLIST="/lib/ld-linux.so.2 /lib64/ld-linux-x86-64.so.2" +warn= +bind_now= +verbose= + +while test $# -gt 0; do + case "$1" in + --vers | --versi | --versio | --version) + echo 'ldd (Debian EGLIBC 2.11.2-6) 2.11.2' + printf $"Copyright (C) %s Free Software Foundation, Inc. +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +" "2009" + printf $"Written by %s and %s. +" "Roland McGrath" "Ulrich Drepper" + exit 0 + ;; + --h | --he | --hel | --help) + printf $"Usage: ldd [OPTION]... FILE... + --help print this help and exit + --version print version information and exit + -d, --data-relocs process data relocations + -r, --function-relocs process data and function relocations + -u, --unused print unused direct dependencies + -v, --verbose print all information +" + printf $"For bug reporting instructions, please see: +%s. +" "<http://www.debian.org/Bugs/>" + exit 0 + ;; + -d | --d | --da | --dat | --data | --data- | --data-r | --data-re | \ + --data-rel | --data-relo | --data-reloc | --data-relocs) + warn=yes + shift + ;; + -r | --f | --fu | --fun | --func | --funct | --functi | --functio | \ + --function | --function- | --function-r | --function-re | --function-rel | \ + --function-relo | --function-reloc | --function-relocs) + warn=yes + bind_now=yes + shift + ;; + -v | --verb | --verbo | --verbos | --verbose) + verbose=yes + shift + ;; + -u | --u | --un | --unu | --unus | --unuse | --unused) + unused=yes + shift + ;; + --v | --ve | --ver) + echo >&2 $"ldd: option \`$1' is ambiguous" + exit 1 + ;; + --) # Stop option processing. + shift; break + ;; + -*) + echo >&2 'ldd:' $"unrecognized option" "\`$1'" + echo >&2 $"Try \`ldd --help' for more information." + exit 1 + ;; + *) + break + ;; + esac +done + +nonelf () +{ + # Maybe extra code for non-ELF binaries. + return 1; +} + +add_env="LD_TRACE_LOADED_OBJECTS=1 LD_WARN=$warn LD_BIND_NOW=$bind_now" +add_env="$add_env LD_LIBRARY_VERSION=\$verify_out" +add_env="$add_env LD_VERBOSE=$verbose" +if test "$unused" = yes; then + add_env="$add_env LD_DEBUG=\"$LD_DEBUG${LD_DEBUG:+,}unused\"" +fi + +# The following use of cat is needed to make ldd work in SELinux +# environments where the executed program might not have permissions +# to write to the console/tty. But only bash 3.x supports the pipefail +# option, and we don't bother to handle the case for older bash versions. +if x=`set -o` && test "$x" != "${x#*pipefail}" && set -o pipefail ; then + try_trace() { + eval $add_env '"$@"' | cat + } +else + try_trace() { + eval $add_env '"$@"' + } +fi + +case $# in +0) + echo >&2 'ldd:' $"missing file arguments" + echo >&2 $"Try \`ldd --help' for more information." + exit 1 + ;; +1) + single_file=t + ;; +*) + single_file=f + ;; +esac + +result=0 +for file do + # We don't list the file name when there is only one. + test $single_file = t || echo "${file}:" + case $file in + */*) : + ;; + *) file=./$file + ;; + esac + if test ! -e "$file"; then + echo "ldd: ${file}:" $"No such file or directory" >&2 + result=1 + elif test ! -f "$file"; then + echo "ldd: ${file}:" $"not regular file" >&2 + result=1 + elif test -r "$file"; then + RTLD= + ret=1 + for rtld in ${RTLDLIST}; do + if test -x $rtld; then + verify_out=`${rtld} --verify "$file"` + ret=$? + case $ret in + [02]) RTLD=${rtld}; break;; + esac + fi + done + case $ret in + 0|2) + try_trace "$RTLD" "$file" || result=1 + ;; + 1|126) + # This can be a non-ELF binary or no binary at all. + nonelf "$file" || { + echo $" not a dynamic executable" + result=1 + } + ;; + *) + echo 'ldd:' ${RTLD} $"exited with unknown exit code" "($ret)" >&2 + exit 1 + ;; + esac + else + echo 'ldd:' $"error: you do not have read permission for" "\`$file'" >&2 + result=1 + fi +done + +exit $result +# Local Variables: +# mode:ksh +# End: diff --git a/initramfs/eglibc-rootfs/usr/bin/less b/initramfs/eglibc-rootfs/usr/bin/less new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/less @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/logger b/initramfs/eglibc-rootfs/usr/bin/logger new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/logger @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/lspci b/initramfs/eglibc-rootfs/usr/bin/lspci new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/lspci @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/lsusb b/initramfs/eglibc-rootfs/usr/bin/lsusb new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/lsusb @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/lzcat b/initramfs/eglibc-rootfs/usr/bin/lzcat new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/lzcat @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/lzma b/initramfs/eglibc-rootfs/usr/bin/lzma new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/lzma @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/lzmacat b/initramfs/eglibc-rootfs/usr/bin/lzmacat new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/lzmacat @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/md5sum b/initramfs/eglibc-rootfs/usr/bin/md5sum new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/md5sum @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/nc b/initramfs/eglibc-rootfs/usr/bin/nc new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/nc @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/nmeter b/initramfs/eglibc-rootfs/usr/bin/nmeter new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/nmeter @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/openvt b/initramfs/eglibc-rootfs/usr/bin/openvt new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/openvt @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/pkill b/initramfs/eglibc-rootfs/usr/bin/pkill new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/pkill @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/printf b/initramfs/eglibc-rootfs/usr/bin/printf new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/printf @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/readahead b/initramfs/eglibc-rootfs/usr/bin/readahead new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/readahead @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/readlink b/initramfs/eglibc-rootfs/usr/bin/readlink new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/readlink @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/realpath b/initramfs/eglibc-rootfs/usr/bin/realpath new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/realpath @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/rpm2cpio b/initramfs/eglibc-rootfs/usr/bin/rpm2cpio new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/rpm2cpio @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/setsid b/initramfs/eglibc-rootfs/usr/bin/setsid new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/setsid @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/smemcap b/initramfs/eglibc-rootfs/usr/bin/smemcap new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/smemcap @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/sort b/initramfs/eglibc-rootfs/usr/bin/sort new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/sort @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/strings b/initramfs/eglibc-rootfs/usr/bin/strings new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/strings @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/tail b/initramfs/eglibc-rootfs/usr/bin/tail new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/tail @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/telnet b/initramfs/eglibc-rootfs/usr/bin/telnet new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/telnet @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/test b/initramfs/eglibc-rootfs/usr/bin/test new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/test @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/tftp b/initramfs/eglibc-rootfs/usr/bin/tftp new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/tftp @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/time b/initramfs/eglibc-rootfs/usr/bin/time new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/time @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/timeout b/initramfs/eglibc-rootfs/usr/bin/timeout new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/timeout @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/top b/initramfs/eglibc-rootfs/usr/bin/top new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/top @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/tr b/initramfs/eglibc-rootfs/usr/bin/tr new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/tr @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/ttysize b/initramfs/eglibc-rootfs/usr/bin/ttysize new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/ttysize @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/uniq b/initramfs/eglibc-rootfs/usr/bin/uniq new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/uniq @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/unlzma b/initramfs/eglibc-rootfs/usr/bin/unlzma new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/unlzma @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/unxz b/initramfs/eglibc-rootfs/usr/bin/unxz new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/unxz @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/uptime b/initramfs/eglibc-rootfs/usr/bin/uptime new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/uptime @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/wc b/initramfs/eglibc-rootfs/usr/bin/wc new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/wc @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/wget b/initramfs/eglibc-rootfs/usr/bin/wget new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/wget @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/which b/initramfs/eglibc-rootfs/usr/bin/which new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/which @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/whoami b/initramfs/eglibc-rootfs/usr/bin/whoami new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/whoami @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/xargs b/initramfs/eglibc-rootfs/usr/bin/xargs new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/xargs @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/xz b/initramfs/eglibc-rootfs/usr/bin/xz new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/xz @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/bin/xzcat b/initramfs/eglibc-rootfs/usr/bin/xzcat new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/bin/xzcat @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/lib/libbfd-2.20.1-system.20100303.so b/initramfs/eglibc-rootfs/usr/lib/libbfd-2.20.1-system.20100303.so Binary files differnew file mode 100644 index 0000000..bd815cd --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/lib/libbfd-2.20.1-system.20100303.so diff --git a/initramfs/eglibc-rootfs/usr/lib/libfusion-1.2.so.9 b/initramfs/eglibc-rootfs/usr/lib/libfusion-1.2.so.9 Binary files differnew file mode 100644 index 0000000..1b8d84e --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/lib/libfusion-1.2.so.9 diff --git a/initramfs/eglibc-rootfs/usr/lib/libgcc_s.so.1 b/initramfs/eglibc-rootfs/usr/lib/libgcc_s.so.1 Binary files differnew file mode 100644 index 0000000..f893c04 --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/lib/libgcc_s.so.1 diff --git a/initramfs/eglibc-rootfs/usr/lib/libhal.so.1 b/initramfs/eglibc-rootfs/usr/lib/libhal.so.1 Binary files differnew file mode 100644 index 0000000..8db463f --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/lib/libhal.so.1 diff --git a/initramfs/eglibc-rootfs/usr/lib/libhd.so.16 b/initramfs/eglibc-rootfs/usr/lib/libhd.so.16 Binary files differnew file mode 100644 index 0000000..3fd68f2 --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/lib/libhd.so.16 diff --git a/initramfs/eglibc-rootfs/usr/lib/libm.so b/initramfs/eglibc-rootfs/usr/lib/libm.so new file mode 120000 index 0000000..6c7b429 --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/lib/libm.so @@ -0,0 +1 @@ +/lib/libm.so.6
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/lib/libpcre.so.3 b/initramfs/eglibc-rootfs/usr/lib/libpcre.so.3 Binary files differnew file mode 100644 index 0000000..d11113b --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/lib/libpcre.so.3 diff --git a/initramfs/eglibc-rootfs/usr/lib/libz.so.1 b/initramfs/eglibc-rootfs/usr/lib/libz.so.1 Binary files differnew file mode 100644 index 0000000..c1b5117 --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/lib/libz.so.1 diff --git a/initramfs/eglibc-rootfs/usr/sbin/brctl b/initramfs/eglibc-rootfs/usr/sbin/brctl new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/sbin/brctl @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/sbin/chroot b/initramfs/eglibc-rootfs/usr/sbin/chroot new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/sbin/chroot @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/sbin/dhcprelay b/initramfs/eglibc-rootfs/usr/sbin/dhcprelay new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/sbin/dhcprelay @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/sbin/fbset b/initramfs/eglibc-rootfs/usr/sbin/fbset new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/sbin/fbset @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/sbin/httpd b/initramfs/eglibc-rootfs/usr/sbin/httpd new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/sbin/httpd @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/sbin/hwinfo b/initramfs/eglibc-rootfs/usr/sbin/hwinfo Binary files differnew file mode 100755 index 0000000..5dbe48a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/sbin/hwinfo diff --git a/initramfs/eglibc-rootfs/usr/sbin/loadfont b/initramfs/eglibc-rootfs/usr/sbin/loadfont new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/sbin/loadfont @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/sbin/rdate b/initramfs/eglibc-rootfs/usr/sbin/rdate new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/sbin/rdate @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/sbin/setlogcons b/initramfs/eglibc-rootfs/usr/sbin/setlogcons new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/sbin/setlogcons @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/eglibc-rootfs/usr/sbin/udhcpd b/initramfs/eglibc-rootfs/usr/sbin/udhcpd new file mode 120000 index 0000000..f948f1a --- /dev/null +++ b/initramfs/eglibc-rootfs/usr/sbin/udhcpd @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/initramfs/initramfs-sc2010-default b/initramfs/initramfs-sc2010-default Binary files differnew file mode 100644 index 0000000..5e48667 --- /dev/null +++ b/initramfs/initramfs-sc2010-default |