diff options
author | Sebastian Schmelzer | 2010-09-02 17:50:49 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2010-09-02 17:50:49 +0200 |
commit | 416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5 (patch) | |
tree | 4715f7d742fec50931017f38fe6ff0a89d4ceccc /src/initramfs | |
parent | Fix for the problem reported on the list (sed filter forgotten for the (diff) | |
download | core-416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5.tar.gz core-416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5.tar.xz core-416ab8a37f1b07dc9f6c0fb3ff1a8ff2036510b5.zip |
change dir structure
Diffstat (limited to 'src/initramfs')
736 files changed, 7588 insertions, 0 deletions
diff --git a/src/initramfs/distro-specs/debian/functions-4.0 b/src/initramfs/distro-specs/debian/functions-4.0 new file mode 100644 index 00000000..97be5342 --- /dev/null +++ b/src/initramfs/distro-specs/debian/functions-4.0 @@ -0,0 +1,14 @@ +# Copyright (c) 2007 - OpenSLX GmbH +# +# This program 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 +# +# Configuration script for Debian Edge (4.1) to setup linux stateless clients +# (executed within initial ramfs) + +# nothing changed yet from default diff --git a/src/initramfs/distro-specs/debian/functions-default b/src/initramfs/distro-specs/debian/functions-default new file mode 100644 index 00000000..15639a2d --- /dev/null +++ b/src/initramfs/distro-specs/debian/functions-default @@ -0,0 +1,209 @@ +# Copyright (c) 2003..2006 - RZ Uni Freiburg +# Copyright (c) 2007..2010 - OpenSLX GmbH +# +# This program 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 +# +# Configuration script for general Debian distributions to setup linux +# stateless clients (included within initial ramfs) + +# distro specific configuration variables used in the setup functions +# (formerly done via config-*, these variables are disputable ...) +# D_DIRINBINDMNT - lists of directories to be created in bind mounted rw part +# of the client filesystem +# D_RODIRSINRW - ReadOnly Directories in RW part of filesystem to save on +# TempFS usage +# D_DIRINDXS - directories in client filesystem which should be present anyhow +D_BINDMPTS="tmp root home" +D_DIRINBINDMNT="/var/run /var/log /var/tmp /var/lib/gdm /etc/X11" +D_RODIRSINRW="etc/gconf etc/X11/xkb /var/lib/texmf /var/cache/fontconfig \ +/var/lib/dpkg" +D_DIRINDXS="/var/X11R6/compose-cache \ +/var/run/sysconfig/tmp /var/adm /var/lib/rpm /var/lib/nobody \ +/var/lib/pam_devperm /var/lib/bluetooth \ +/var/lib/texmf /var/lib/nfs/sm \ +/var/lib/misc /var/lib/acpi /var/spool/cron \ +/var/lock/subsys/sysconfig" + +# empty functions are defined at the beginning of /etc/functions + +# distro specific stuff to initialize +preinit () { +: +} + +# distro specific function called from servconfig script +config_distro () { + # clean the runlevel directories which will be populated by the stage3 setup + for dir in rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d rcS.d ; do + rm -rf /mnt/etc/${dir}/* + done + # add the halt link to the 0 and 6 runlevel directories + ln -sf ../init.d/halt /mnt/etc/rc0.d/S90halt + ln -sf ../init.d/reboot /mnt/etc/rc6.d/S90reboot + + # remove annoying udev rule set for changing eth interface + # fixme: not that simple, see ticket 187 + #rm /mnt/etc/udev/rules.d/*persistent-net.rules >/dev/null 2>&1 + + # set default runlevel + sed -e "s/.*initdefault/id:3:initdefault/" -i /mnt/etc/inittab + + # create needed auxiliary directories in (/mnt)/var,/etc,... + testmkd /mnt/var/run/screens root:utmp 0755 + + # add the slx specific path (/var/opt/openslx/bin) to the PATH variable + echo -e "# stuff generated by $0 (out of InitRamFS written $date)\n\ +export PATH=\"\$PATH:/var/opt/openslx/bin\"" >>/mnt/etc/profile + + # check for inittab file + #test -f /mnt/etc/inittab || error "$df_erritab" +} + +# initial (boot time) runlevel scripts +initial_boot () { + local count=10 + # boot.slx is a special runlevel script generated within initialramfs which + # should be executed before the normal runlevel scripts. Proper shutdown is + # not needed!? + for i in mountkernfs.sh mountvirtfs boot.slx udev procps.sh bootlogd \ + $D_SPLASHY keymap.sh hwclock.sh sudo dbus-1; do + count=$(($count + 1)) + [ $DEBUGLEVEL -ge 2 ] && echo "boot-runlevelscript $i" + ln -sf /etc/init.d/$i /mnt/etc/rcS.d/S${count}$i + done +} + +# linking runlevel scripts +rllinker () { + local script="$1" + local start="$2" + local stop="$3" + # empty runlevel links - decision on running certain services is passed via + # configuration or enabled through plugins + for i in rc2.d/K$stop$script rc3.d/K$stop$script \ + rc2.d/S$start$script rc3.d/S$start$script ; do + if ! [ -f /mnt/etc/init.d/$script ]; then + echo "Target `pwd`../$script does not exist. Skipping links" + break + else + ln -sf ../init.d/$script /mnt/etc/$i + echo "Linked $script" + fi + done +} + +# make a runlevel script +d_mkrlscript () { + local switch=$1 + local name=$2 + local info=$3 + case "$1" in + init) + echo -e "#!/bin/sh\n# skeleton of /etc/init.d/$name created \ +by $0\n# after you applied changes to the creation scripts you have to \ +rerun\n# the mkdxsinitrd script to get them applied\n\ +. /lib/lsb/init-functions\ncase \"\$1\" in\n start)\n\ +\tlog_begin_msg \"${info}\"" >>/mnt/etc/init.d/${name} + chmod u+x /mnt/etc/init.d/${name} + ;; + entry) + echo -e "\t${info}" >>/mnt/etc/init.d/${name} + ;; + close) + echo -e "\tlog_end_msg \$?\n\t;;\n stop)\n\tlog_end_msg \$?\n\t;;\ + \nesac\nexit 0" >>/mnt/etc/init.d/${name} + ;; + esac +} + +# group of functions for the normal runlevels - first parameter is start +# second stop +# function for ntp configuration +config_ntp () { + if [ -f /mnt/etc/init.d/ntp -a "x$start_ntp" != "xno" ] ; then + echo -e "ntp:x:74:65534:NTP daemon:/var/lib/ntp:/bin/false" \ + >>/mnt/etc/passwd + testmkd /mnt/var/lib/ntp/var/run/ntp + rllinker "ntp" "07" "14" + fi +} + +# function for atd +config_atd () { + if [ "x$start_atd" = "xyes" ]; then + # fixme!! needed? Fix permissions + #testmkd /mnt/var/spool/cron/atjobs daemon:daemon + #testmkd /mnt/var/spool/cron/atspool daemon:daemon + rllinker "atd" "89" "01" +fi +} + +# function for configuration of cron services +config_cron () { + if [ "x$start_cron" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/cron ] ; then + rllinker "cron" "89" "01" + testmkd /mnt/var/spool/cron/crontabs root:crontab + echo -e "# /etc/crontab - file generated by $0:\n\ +#\t$date\nSHELL=/bin/sh\nPATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin\ +\nMAILTO=\n-*/15 * * * *\troot\ttest -x /usr/lib/cron/run-crons && \ +/usr/lib/cron/run-crons >/dev/null 2>&1\n" >/mnt/etc/crontab + else + error "$df_errcron" nonfatal + fi + fi +} + +# syslog service +config_syslog () { + if [ "x$start_syslog" != "xno" ] ; then + : # fixme: handled by plugin in the future! + fi +} + +# secure shell service +config_sshd () { + if [ "x$start_sshd" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/ssh ] ; then + rllinker "ssh" "20" "02" + fi + fi +} + +# snmp agent for remote monitoring +config_snmp () { + if [ "x$start_snmp" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/snmpd ] ; then + rllinker "snmpd" "30" "03" + testmkd /mnt/var/lib/net-snmp >/dev/null 2>&1 + fi + # fixme!! + # write service monitor depending on services started + fi +} + +# localization like consolefont and language +dlocale () { + # console font setting program not available in Debian 4!? + d_mkrlscript entry boot.slx "#setfont ${CONSOLE_FONT} >${LOGFILE} 2>&1" + # fixme!! check for proper operation + # sed -e "s,LANGUAGE=.*,LANGUAGE=\"${LANG}\" # set within initramfs," \ + # -e "s,LANG=.*,LANG=\"${LANG}\" # set within initramfs," \ + # -i /mnt/etc/environment + sed -e "s,LANG=.*,LANG=\"${LANG}\," # set within initramfs," \ + -i /mnt/etc/default/locale +} + +# configure hal, dbus, resmgr and services like that +config_dreshal () { + if [ "x$start_dreshal" = "xyes" ]; then + : + fi +} + diff --git a/src/initramfs/distro-specs/scilin/functions-4.7 b/src/initramfs/distro-specs/scilin/functions-4.7 new file mode 100644 index 00000000..e3ffe443 --- /dev/null +++ b/src/initramfs/distro-specs/scilin/functions-4.7 @@ -0,0 +1,15 @@ +# Copyright (c) 2009 - RZ Uni Freiburg +# +# This program 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 +# +# Configuration script for Scientific Linux (4.7) to setup linux stateless +# clients (executed within initial ramfs) + +# nothing changed yet from default + diff --git a/src/initramfs/distro-specs/scilin/functions-5.3 b/src/initramfs/distro-specs/scilin/functions-5.3 new file mode 100644 index 00000000..1548ab9a --- /dev/null +++ b/src/initramfs/distro-specs/scilin/functions-5.3 @@ -0,0 +1,42 @@ +# Copyright (c) 2009 - RZ Uni Freiburg +# +# This program 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 +# +# Configuration script for Scientific Linux (5.1) to setup linux stateless +# clients (executed within initial ramfs) + +# initial (boot time) runlevel scripts +initial_boot () { +# delete all classical disk base rootfs stuff from rc.sysinit +sed -e "6i# Script modified by $0 during stage3 bootup." \ + -e "/relabel_se/,/^}/d" \ + -e "/# Start up swap/,/# Set up bin/d" \ + -e "/^remount_needed/,/^fi$/d" -e "/^# Clean out/,/in_sysinit/d" \ + -e "/# Mount all o/,/# Start the g/d" \ + -e "/# Boot time/,/# let's/d" -i /mnt/etc/rc.d/rc.sysinit +# delete all classical disk base rootfs stuff from halt +sed -e "7i# Modified by $0 during stage3 bootup." \ + -e "/# Save mixer/,/Saving random/d" -e "/quotaoff/,/^# Now halt/d" \ + -i /mnt/etc/init.d/halt +# boot.slx is a special runlevel script generated within initialramfs which +# should be executed before the normal runlevel scripts. +echo -e "# Run OpenSLX init runlevel script\n/etc/init.d/boot.slx" \ + >>/mnt/etc/rc.d/rc.sysinit +# switch off SElinux enforcing +sed -e "1i# Configuration modified by $0 during stage3 bootup." \ + -e "s/SELINUX=.*/SELINUX=permissive/" -i /mnt/etc/selinux/config +# switch off display manager start via inittab +sed -e "s/x:5:re.*/# line deleted in stage3, re-enable via desktop plugin/" \ + -i /mnt/etc/inittab +# link halt and reboot scripts +ln -s ../init.d/killall /mnt/etc/rc.d/rc0.d/S00killall +ln -s ../init.d/halt /mnt/etc/rc.d/rc0.d/S01halt +ln -s ../init.d/killall /mnt/etc/rc.d/rc6.d/S00killall +ln -s ../init.d/halt /mnt/etc/rc.d/rc6.d/S01reboot +} diff --git a/src/initramfs/distro-specs/scilin/functions-5.4 b/src/initramfs/distro-specs/scilin/functions-5.4 new file mode 100644 index 00000000..1548ab9a --- /dev/null +++ b/src/initramfs/distro-specs/scilin/functions-5.4 @@ -0,0 +1,42 @@ +# Copyright (c) 2009 - RZ Uni Freiburg +# +# This program 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 +# +# Configuration script for Scientific Linux (5.1) to setup linux stateless +# clients (executed within initial ramfs) + +# initial (boot time) runlevel scripts +initial_boot () { +# delete all classical disk base rootfs stuff from rc.sysinit +sed -e "6i# Script modified by $0 during stage3 bootup." \ + -e "/relabel_se/,/^}/d" \ + -e "/# Start up swap/,/# Set up bin/d" \ + -e "/^remount_needed/,/^fi$/d" -e "/^# Clean out/,/in_sysinit/d" \ + -e "/# Mount all o/,/# Start the g/d" \ + -e "/# Boot time/,/# let's/d" -i /mnt/etc/rc.d/rc.sysinit +# delete all classical disk base rootfs stuff from halt +sed -e "7i# Modified by $0 during stage3 bootup." \ + -e "/# Save mixer/,/Saving random/d" -e "/quotaoff/,/^# Now halt/d" \ + -i /mnt/etc/init.d/halt +# boot.slx is a special runlevel script generated within initialramfs which +# should be executed before the normal runlevel scripts. +echo -e "# Run OpenSLX init runlevel script\n/etc/init.d/boot.slx" \ + >>/mnt/etc/rc.d/rc.sysinit +# switch off SElinux enforcing +sed -e "1i# Configuration modified by $0 during stage3 bootup." \ + -e "s/SELINUX=.*/SELINUX=permissive/" -i /mnt/etc/selinux/config +# switch off display manager start via inittab +sed -e "s/x:5:re.*/# line deleted in stage3, re-enable via desktop plugin/" \ + -i /mnt/etc/inittab +# link halt and reboot scripts +ln -s ../init.d/killall /mnt/etc/rc.d/rc0.d/S00killall +ln -s ../init.d/halt /mnt/etc/rc.d/rc0.d/S01halt +ln -s ../init.d/killall /mnt/etc/rc.d/rc6.d/S00killall +ln -s ../init.d/halt /mnt/etc/rc.d/rc6.d/S01reboot +} diff --git a/src/initramfs/distro-specs/scilin/functions-5.5 b/src/initramfs/distro-specs/scilin/functions-5.5 new file mode 100644 index 00000000..1548ab9a --- /dev/null +++ b/src/initramfs/distro-specs/scilin/functions-5.5 @@ -0,0 +1,42 @@ +# Copyright (c) 2009 - RZ Uni Freiburg +# +# This program 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 +# +# Configuration script for Scientific Linux (5.1) to setup linux stateless +# clients (executed within initial ramfs) + +# initial (boot time) runlevel scripts +initial_boot () { +# delete all classical disk base rootfs stuff from rc.sysinit +sed -e "6i# Script modified by $0 during stage3 bootup." \ + -e "/relabel_se/,/^}/d" \ + -e "/# Start up swap/,/# Set up bin/d" \ + -e "/^remount_needed/,/^fi$/d" -e "/^# Clean out/,/in_sysinit/d" \ + -e "/# Mount all o/,/# Start the g/d" \ + -e "/# Boot time/,/# let's/d" -i /mnt/etc/rc.d/rc.sysinit +# delete all classical disk base rootfs stuff from halt +sed -e "7i# Modified by $0 during stage3 bootup." \ + -e "/# Save mixer/,/Saving random/d" -e "/quotaoff/,/^# Now halt/d" \ + -i /mnt/etc/init.d/halt +# boot.slx is a special runlevel script generated within initialramfs which +# should be executed before the normal runlevel scripts. +echo -e "# Run OpenSLX init runlevel script\n/etc/init.d/boot.slx" \ + >>/mnt/etc/rc.d/rc.sysinit +# switch off SElinux enforcing +sed -e "1i# Configuration modified by $0 during stage3 bootup." \ + -e "s/SELINUX=.*/SELINUX=permissive/" -i /mnt/etc/selinux/config +# switch off display manager start via inittab +sed -e "s/x:5:re.*/# line deleted in stage3, re-enable via desktop plugin/" \ + -i /mnt/etc/inittab +# link halt and reboot scripts +ln -s ../init.d/killall /mnt/etc/rc.d/rc0.d/S00killall +ln -s ../init.d/halt /mnt/etc/rc.d/rc0.d/S01halt +ln -s ../init.d/killall /mnt/etc/rc.d/rc6.d/S00killall +ln -s ../init.d/halt /mnt/etc/rc.d/rc6.d/S01reboot +} diff --git a/src/initramfs/distro-specs/scilin/functions-default b/src/initramfs/distro-specs/scilin/functions-default new file mode 100644 index 00000000..f9bb0f0e --- /dev/null +++ b/src/initramfs/distro-specs/scilin/functions-default @@ -0,0 +1,315 @@ +# 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 under http://openslx.org +# +# configuration script for general Scientific Linux to configure linux +# stateless clients (included by init, hwautocfg, servconfig within Initial- +# RamFS after inclusion of the main functions file). This file is the main +# base for the several RedHat based Scientific Linux versions. + +# settings of central variables +# D_DIRINBINDMNT - lists of directories to be created in bind mounted rw +# part of the client filesystem +# D_RODIRSINRW - ReadOnly Directories in RW part of filesystem to save on +# TempFS usage +# D_DIRINDXS - directories in client filesystem which should be present +# anyhow +D_BINDMPTS="tmp root media home" +D_DIRINBINDMNT="/var/run /var/log /var/tmp" +D_RODIRSINRW="/etc/bootsplash /etc/gconf /var/adm /var/lib/texmf /var/lib/rpm \ +/var/cache/fontconfig" +D_DIRINDXS="/var/lib/rpm /var/lib/nobody /var/lib/alternatives/ /var/db/nscd \ +/var/lib/bluetooth /var/lib/scrollkeeper /var/lib/nfs/sm /var/lib/nfs/sm.bak \ +/var/lib/misc /var/spool/cron" + +# empty functions are defined at the beginning of /etc/functions + +# distro specific function called from servconfig script +config_distro () { + # clean the runlevel directories which will be populated by the stage3 setup + for dir in rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d ; do + rm -rf /mnt/etc/${dir}/* + done + # set some system/environment information + echo -e "SLX VERSION = $SLXVERSION\nINITRAMFS GENERATION DATE = $date" \ + >>/mnt/etc/redhat-release + # simple bash configuration for root + echo -e "# Generated in OpenSLX stage3\n. /etc/bashrc" >/mnt/root/.profile + # enable sysrq + sed -e "1i# Configuration modified by $0 during stage3 bootup." \ + -e "s/kernel.sysrq =.*/kernel.sysrq = 1/" -i /mnt/etc/sysctl.conf + # set some networking stuff if needed + [ -e /mnt/etc/sysconfig/network ] && \ + sed -e "s/HOSTNAME=.*/HOSTNAME=$host_name/" \ + -e "s/GATEWAY=.*/GATEWAY=$gateway/" -i /mnt/etc/sysconfig/network + # check for inittab file + #test -f /mnt/etc/inittab || error "$df_erritab" +} + +# initial (boot time) runlevel scripts +initial_boot () { +# delete all classical disk base rootfs stuff from rc.sysinit +sed -e "6i# Script modified by $0 during stage3 bootup." \ + -e "/# Initialize ha/,/success/d" -e "/^ROOTFSTYPE/,/Remounting root/d" \ + -e "/# Check f/,/Mounting l/d" -e "/^# Configure mach/,/-f \/fastboot/d" \ + -e "s,/sbin/start_udev$,/etc/init.d/udevd," -i /mnt/etc/rc.d/rc.sysinit +# write a custom udev script (to be checked!!) +echo -e "#!/bin/sh\n# Simple udev starter script created as a replacement \ +during OpenSLX stage3\n# bootup." >/mnt/etc/init.d/udevd +echo -e ". /etc/init.d/functions\nSTRING=\$\"Starting udev: \" \ +\necho -n \"\$STRING \"\n/sbin/udevstart </dev/null >/dev/null 2>&1 \ +\n[ \$? -eq 0 ] && success \$\"\$STRING\" || failure \$\"\$STRING\" \ +\nexit 0" >>/mnt/etc/init.d/udevd +chmod u+x /mnt/etc/init.d/udevd +# delete all classical disk base rootfs stuff from halt +sed -e "7i# Modified by $0 during stage3 bootup." \ + -e "/# Save mixer/,/Saving random/d" -e "/quotaoff/,/^# Now halt/d" \ + -i /mnt/etc/init.d/halt +# boot.slx is a special runlevel script generated within initialramfs which +# should be executed before the normal runlevel scripts. +echo -e "# Run OpenSLX init runlevel script\n/etc/init.d/boot.slx" \ + >>/mnt/etc/rc.d/rc.sysinit +# switch off SElinux enforcing +sed -e "1i# Configuration modified by $0 during stage3 bootup." \ + -e "s/SELINUX=.*/SELINUX=permissive/" -i /mnt/etc/selinux/config +# link halt and reboot scripts +ln -s ../init.d/killall /mnt/etc/rc.d/rc0.d/S00killall +ln -s ../init.d/halt /mnt/etc/rc.d/rc0.d/S01halt +ln -s ../init.d/killall /mnt/etc/rc.d/rc6.d/S00killall +ln -s ../init.d/halt /mnt/etc/rc.d/rc6.d/S01reboot +} + +# linking runlevel scripts +rllinker () { +local script="$1" +if [ $2 -lt 10 ] ; then + local start="0$2"; else local start="$2" +fi +if [ $3 -lt 10 ] ; then + local stop="0$3"; else local stop="$3" +fi +# empty runlevel links - decision on running certain services is passed via +# configuration +for i in rc3.d/K$stop$script rc5.d/K$stop$script \ + rc3.d/S$start$script rc5.d/S$start$script ; do + ln -sf ../init.d/$script /mnt/etc/$i +done +} + +# group of functions for the normal runlevels - first parameter is start +# second stop +# function for ntp configuration +config_ntp () { +if [ -e /mnt/etc/init.d/ntpd ] ; then + if ! strinfile "ntp:" /mnt/etc/passwd ; then + echo -e "ntp:x:38:38:NTP daemon:/var/lib/ntp:/sbin/nologin" \ + >>/mnt/etc/passwd + echo -e "ntp:!:13099:0:99999:7:::" >>/mnt/etc/shadow + fi + testmkd /mnt/var/lib/ntp ntp:ntp + if [ "x$start_ntp" = "xyes" ] ; then + rllinker "ntpd" 7 14 + fi +fi +} +# function for atd +config_atd () { +if [ "x$start_atd" = "xyes" ]; then + rllinker "atd" 14 4 +fi +} +# function for configuration of cron services +config_cron () { +if [ "x$start_cron" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/cron ] ; then + rllinker "cron" 18 2 + testmkd /mnt/var/spool/anacron + echo -e "# /etc/crontab - file generated by $0:\n\ +" >/mnt/etc/crontab + else + error "$df_errcron" nonfatal + fi +fi +} +# name service caching daemon (useful in most cases) +config_nscd () { + if [ -f /mnt/etc/init.d/nscd ] ; then + testmkd /mnt/var/db/nscd + rllinker "nscd" 20 5 + fi +} +# secure shell service +config_sshd () { +if [ "x$start_sshd" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/sshd ] ; then + testmkd /mnt/var/empty/sshd/dev + if ! strinfile "sshd:" /mnt/etc/passwd ; then + echo -e "sshd:x:74:74::/var/empty/sshd:/sbin/nologin" \ + >>/mnt/etc/passwd + echo -e "sshd:!:13099:0:99999:7:::" >>/mnt/etc/shadow + fi + rllinker "sshd" 25 10 + else + error "$df_errsshd" nonfatal + fi +fi +} +# snmp agent for remote monitoring +config_snmp () { +if [ "x$start_snmp" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/snmpd ] ; then + rllinker "snmpd" 24 2 + testmkd /mnt/var/lib/net-snmp + fi + # fixme!! + # write service monitor depending on services started + fi +} +# configure print server (lpd or cups) +config_printer () { +if [ "x${start_printdaemon}" != "x" ] && \ + [ "x${start_printdaemon}" != "xno" ]; then + case ${start_printdaemon} in + yes|cups*|CUPS*) + rllinker "cups" 25 1 + testmkd /mnt/var/spool/cups/tmp root:sys + ;; + lp*|LP*|PLP*) + rllinker "lpd" 25 1 + testmkd /mnt/var/spool/lpd + ;; + *) + #logwrite "Do not know print-server $start_printdaemon; \ + #specify 'cups' or 'lpd'." + ;; + esac +fi +# configure cups printer client, avoid to overwrite admin provided printer +# configuration file +if [ "x$lpr_servers" != "x" ] && [ ! -e /rootfs/etc/cups/client.conf ] ; then + echo -e "# /etc/cups/client.conf - file generated by\n#\t$0:\n\ +#\t$date\n#\nServerName\t$lpr_servers" >/mnt/etc/cups/client.conf +fi +} +# configure bluetooth services +config_bt () { +if [ -e /mnt/etc/sysconfig/bluetooth ] ; then + sed -e "1i# /etc/sysconfig/bluetooth - file modified by $0" \ + -e "s,HID2HCI_ENABLE.*,HID2HCI_ENABLE=true," \ + -i /mnt/etc/sysconfig/bluetooth +else + : # no bluetooth components installed +fi +} +# set up localization like keytable and consolefont +dlocale () { +echo -e "\t# entries added by $0: $date" >> /mnt/etc/init.d/boot.slx +sed -e "s,KEYTABLE=.*,KEYTABLE=\"${KEYTABLE}\"," \ + -i /mnt/etc/sysconfig/keyboard +#echo -e "\tsetfont ${CONSOLE_FONT} >${LOGFILE} 2>&1\n" \ +# >>/mnt/etc/init.d/boot.slx +} +# acpi and powersave daemons, required e.g. to shutdown the machine via +# power button, no need for early start +config_acpi () { +rllinker acpid 01 22 +} +# configure dbus (inter application communication for kde and gnome), hal +# (hardware abstraction layer - used e.g. by powersaved) and resmgr +# (resource manager - the user gets permissions to devices when loggin on) +# runlevel script for haldaemon is now haldaemon instead of hal +config_dreshal () { +local start=4 +local stop=18 +if [ "x$start_dreshal" = "xyes" ]; then + testmkd /mnt/var/run/dbus + if [ -f /mnt/etc/init.d/messagebus ] ; then + testmkd /mnt/var/lib/dbus + strinfile "dbus:" /mnt/etc/passwd || \ + echo "dbus:x:81:81:System Message Bus:/var/run/dbus:/sbin/nologin" \ + >> /mnt/etc/passwd + strinfile "dbus:" /mnt/etc/group || echo "dbus:!:81:" >> /mnt/etc/group + rllinker "messagebus" $start $stop + fi + if [ -f /mnt/etc/init.d/haldaemon ] ; then + testmkd /mnt/var/lib/hal + strinfile "haldaemon:" /mnt/etc/passwd || \ + echo "haldaemon:x:68:68:User for haldaemon:/var/run/hal:/sbin/nologin" \ + >> /mnt/etc/passwd + strinfile "haldaemon:" /mnt/etc/group || \ + echo "haldaemon:!:103:" >> /mnt/etc/group + start=$(($start + 1)) + stop=$(($stop - 1)) + rllinker "haldaemon" $start $stop + fi +fi +} +# configure automounter (fixme: to be moved into plugin) +config_automount () { +if [ -e /mnt/etc/sysconfig/autofs ] ; then + testmkd /mnt/var/lock/subsys + sed -e "1i# /etc/sysconfig/autofs - file modified by\n#\t$0:\n#" \ + -e "s,DAEMONOPTIONS.*,DAEMONOPTIONS=\"--timeout 3\"," \ + -i /mnt/etc/sysconfig/autofs + rllinker "autofs" 18 4 +else + error "$df_erramt" nonfatal +fi +} +# start name service caching daemon +config_nscd () { +if [ -e /mnt/etc/init.d/nscd ] ; then + testmkd /mnt/var/run/nscd + rllinker "nscd" 16 16 +else + error "$df_errnsc" nonfatal +fi +} +# start portmapper (needed at least for nfs and nis services) +config_portmap () { + rllinker "portmap" 2 20 +} +# start NIS (mostly deprecated) +config_nis () { +if [ -f /mnt/etc/init.d/ypbind ] ; then + rllinker "ypbind" 6 16 + config_portmap + testmkd /mnt/var/yp/nicknames +else + error "$df_erryp" nonfatal +fi +} +# initialize runlevel skript to be executed during system startup +# (before most of the normal boot init scripts) +# this script should operate like a normal runlevel script +d_mkrlscript () { +local switch="$1" +local name="$2" +local info="$3" +case "$1" in + init) + echo -e "#!/bin/sh\n# skeleton of /etc/init.d/${name} created \ +by $0\n# after you applied changes to the creation scripts you have to \ +rerun\n# the mkdxsinitrd script to get them applied\n\ +. /etc/rc.d/init.d/functions\n#. /etc/sysconfig/logfile\ncase \ +\"\$1\" in\n start)\n\techo -n \"$info\"" >>/mnt/etc/init.d/${name} + chmod u+x /mnt/etc/init.d/${name} + ;; + entry) + echo -e "\t${info}" >>/mnt/etc/init.d/${name} + ;; + close) + echo -e "\t;;\n stop)\n\t;;\nesac" \ + >>/mnt/etc/init.d/${name} + ;; +esac +} + + diff --git a/src/initramfs/distro-specs/suse/functions-10.2 b/src/initramfs/distro-specs/suse/functions-10.2 new file mode 100644 index 00000000..39a9d31c --- /dev/null +++ b/src/initramfs/distro-specs/suse/functions-10.2 @@ -0,0 +1,82 @@ +# Copyright (c) 2003..2006 - RZ Uni Freiburg +# Copyright (c) 2006..2008 - 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 under http://openslx.org +# +# configuration script for OpenSuSE 10.2 to configure linux stateless clients +# (included by init, hwautocfg, servconfig within InitialRamFS after +# inclusion of the main functions file). This file is the main base for the +# several SuSE distro versions + +# settings of central variables (formerly done via config-*, these variables +# are disputable ...) +# D_DIRINBINDMNT - lists of directories to be created in bind mounted rw +# part of the client filesystem +# D_RODIRSINRW - ReadOnly Directories in RW part of filesystem to save on +# TempFS usage +# D_DIRINDXS - directories in client filesystem which should be present +# anyhow + +D_RODIRSINRW="/etc/opt/gnome/gconf /etc/X11/xkb /var/adm /var/lib/texmf \ +/var/lib/rpm /var/cache/fontconfig" + +# configure dbus (inter application communication for kde and gnome), hal +# (hardware abstraction layer - used e.g. by powersaved) and resmgr +# (resource manager - the user gets permissions to devices when loggin on) +# runlevel script for haldaemon is now haldaemon instead of hal +config_dreshal () { +local start=5 +local stop=18 +if [ "x$start_dreshal" = "xyes" ]; then + for dir in /var/run/dbus /var/run/resmgr/classes /var/run/hal \ + /var/cache/hald /var/lib/PolicyKit /var/lib/misc ; do + testmkd /mnt/$dir + done + if [ -f /mnt/etc/init.d/dbus ] ; then + strinfile "messagebus:" /mnt/etc/passwd || \ + echo "messagebus:x:100:101:User for D-BUS:/var/run/dbus:/bin/false" \ + >> /mnt/etc/passwd + strinfile "messagebus:" /mnt/etc/group || \ + echo "messagebus:!:101:" >> /mnt/etc/group + # set permissions with userid + testmkd /mnt/var/run/dbus messagebus:messagebus + rllinker "dbus" $start $stop + fi + if [ -f /mnt/etc/init.d/resmgr ] ; then + start=$(($start + 1)) + stop=$(($stop - 1)) + rllinker "resmgr" $start $stop + fi + if [ -f /mnt/etc/init.d/haldaemon ] ; then + strinfile "haldaemon:" /mnt/etc/passwd || \ + echo "haldaemon:x:105:103:User for haldaemon:/var/run/hal:/bin/false" \ + >> /mnt/etc/passwd + strinfile "haldaemon:" /mnt/etc/group || \ + echo "haldaemon:!:103:" >> /mnt/etc/group + echo -n "" > /mnt/var/lib/PolicyKit/reload + # set permissions with userid + d_mkrlscript entry boot.slx "chown haldaemon:haldaemon /var/run/hal\ + /var/cache/hald 2>/dev/null" + start=$(($start + 1)) + stop=$(($stop - 1)) + rllinker "haldaemon" $start $stop + fi + if [ -f /mnt/etc/init.d/policykitd ] ; then + strinfile "polkituser:" /mnt/etc/passwd || \ + echo "polkituser:x:104:106:PolicyKit:/var/run/PolicyKit:/bin/false" \ + >> /mnt/etc/passwd + testmkd /mnt/var/run/polkit polkit:polkit + start=$(($start + 10)) + stop=$(($stop - 1)) + rllinker "policykitd" $start $stop + echo -n > /mnt/var/lib/misc/PolicyKit.reload + chmod a+x /mnt/var/lib/misc/PolicyKit.reload + fi +fi +} diff --git a/src/initramfs/distro-specs/suse/functions-10.3 b/src/initramfs/distro-specs/suse/functions-10.3 new file mode 100644 index 00000000..3f9516c3 --- /dev/null +++ b/src/initramfs/distro-specs/suse/functions-10.3 @@ -0,0 +1,26 @@ +# Copyright (c) 2003..2006 - RZ Uni Freiburg +# Copyright (c) 2006..2008 - 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 under http://openslx.org +# +# configuration script for OpenSuSE 10.3 to configure linux stateless clients +# (included by init, hwautocfg, servconfig within InitialRamFS after +# inclusion of the main functions file). This file is the main base for the +# several SuSE distro versions + +# settings of central variables (formerly done via config-*, these variables +# are disputable ...) +# D_DIRINBINDMNT - lists of directories to be created in bind mounted rw +# part of the client filesystem +# D_RODIRSINRW - ReadOnly Directories in RW part of filesystem to save on +# TempFS usage +# D_DIRINDXS - directories in client filesystem which should be present +# anyhow + +# no changes from functions-default by now diff --git a/src/initramfs/distro-specs/suse/functions-11.1 b/src/initramfs/distro-specs/suse/functions-11.1 new file mode 100644 index 00000000..d350fa9c --- /dev/null +++ b/src/initramfs/distro-specs/suse/functions-11.1 @@ -0,0 +1,90 @@ +# 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 under http://openslx.org +# +# configuration script for OpenSuSE 11.1 to configure linux stateless clients +# (included by init, hwautocfg, servconfig within InitialRamFS after +# inclusion of the main functions file). This file is the main base for the +# several SuSE distro versions + +# settings of central variables (formerly done via config-*, these variables +# are disputable ...) +# D_DIRINBINDMNT - lists of directories to be created in bind mounted rw +# part of the client filesystem +# D_RODIRSINRW - ReadOnly Directories in RW part of filesystem to save on +# TempFS usage +# D_DIRINDXS - directories in client filesystem which should be present +# anyhow + +# start portmapper (needed at least for nfs and nis services) +config_portmap () { + # portmap is provided via rpcbind in suse 11.1 + testmkd /mnt/var/lib/rpcbind + rllinker "rpcbind" 4 5 +} +# acpi and powersave daemons, required e.g. to shutdown the machine via +# power button, no need for early start +config_acpi () { +rllinker acpid 22 12 +# dbus is required to run acpid and powersaved +start_dreshal="yes" +} +# configure dbus (inter application communication for kde and gnome), hal +# (hardware abstraction layer - used e.g. by powersaved) +config_dreshal () { +local start=1 +local stop=10 +if [ "x$start_dreshal" = "xyes" ]; then + testmkd /mnt/var/lib/misc + testmkd /mnt/var/run/PolicyKit polkituser:polkituser + testmkd /mnt/var/lib/PolicyKit polkituser:polkituser + testmkd /mnt/var/run/dbus/at_console/pool + + sed -i /mnt/etc/PolicyKit/PolicyKit.conf \ + -e "s/\(<\/config>\)/ @@new@@\n\1/" \ + -e "s/@@new@@/<match action=\"@@action@@\">\n@@return@@\n <\/match>/" \ + -e "s/@@action@@/org.freedesktop.hal.storage.mount-removable/" \ + -e "s/@@return@@/ <return result=\"yes\"\/>/" + + if [ -f /mnt/etc/init.d/dbus ] ; then + strinfile "messagebus:" /mnt/etc/passwd || \ + echo "messagebus:x:102:103:User for D-BUS:/var/run/dbus:/bin/false" \ + >> /mnt/etc/passwd + strinfile "messagebus:" /mnt/etc/group || \ + echo "messagebus:!:103:" >> /mnt/etc/group + # create directories and set permissions with user and group id + testmkd /mnt/var/run/dbus messagebus:messagebus + testmkd /mnt/var/lib/dbus + + rm -rf /mnt/etc/dbus-1/system.d/*etwork*anager.conf \ + /mnt/etc/dbus-1/system.d/nm-* \ + /mnt/etc/dbus-1/event.d/*NetworkManager* + + rllinker "dbus" $start $stop + fi + if [ -f /mnt/etc/init.d/haldaemon ] ; then + strinfile "haldaemon:" /mnt/etc/passwd || \ + echo "haldaemon:x:106:107:User for haldaemon:/var/run/hal:/bin/false" \ + >> /mnt/etc/passwd + strinfile "haldaemon:" /mnt/etc/group || \ + echo "haldaemon:!:107:" >> /mnt/etc/group + echo -n "" > /mnt/var/lib/misc/PolicyKit.reload + chmod a+x /mnt/var/lib/misc/PolicyKit.reload + # create directories and set permissions with user and group id + for dir in /var/run/hald /var/run/hald/hald-local \ + /var/run/hald/hald-runner /var/cache/hald; do + testmkd /mnt/${dir} haldaemon:haldaemon + done + start=$(($start + 1)) + stop=$(($stop - 1)) + rllinker "haldaemon" $start $stop + fi +fi +} diff --git a/src/initramfs/distro-specs/suse/functions-11.2 b/src/initramfs/distro-specs/suse/functions-11.2 new file mode 100644 index 00000000..ae8008b9 --- /dev/null +++ b/src/initramfs/distro-specs/suse/functions-11.2 @@ -0,0 +1,95 @@ +# Copyright (c) 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 under http://openslx.org +# +# configuration script for OpenSuSE 11.2 to configure linux stateless clients +# (included by init, hwautocfg, servconfig within InitialRamFS after +# inclusion of the main functions file). This file is the main base for the +# several SuSE distro versions + +# settings of central variables (formerly done via config-*, these variables +# are disputable ...) +# D_DIRINBINDMNT - lists of directories to be created in bind mounted rw +# part of the client filesystem +# D_RODIRSINRW - ReadOnly Directories in RW part of filesystem to save on +# TempFS usage +# D_DIRINDXS - directories in client filesystem which should be present +# anyhow + +# start portmapper (needed at least for nfs and nis services) +config_portmap () { +# portmap is provided via rpcbind in suse 11.1,2 +testmkd /mnt/var/lib/rpcbind +rllinker "rpcbind" 4 5 +} +# acpi and powersave daemons, required e.g. to shutdown the machine via +# power button, no need for early start +config_acpi () { +rllinker acpid 22 12 +# dbus is required to run acpid and powersaved +start_dreshal="yes" +} +# configure dbus (inter application communication for kde and gnome), hal +# (hardware abstraction layer - used e.g. by powersaved) +config_dreshal () { +local start=1 +local stop=10 +if [ "x$start_dreshal" = "xyes" ]; then + for dir in /var/lib/misc /var/run/ConsoleKit \ + "/var/run/PolicyKit polkituser:polkituser" \ + "/var/lib/PolicyKit polkituser:polkituser" \ + "/var/run/dbus/at_console/pool"; do + testmkd /mnt${dir} + done + # enable access to removable devices + sed -i /mnt/etc/PolicyKit/PolicyKit.conf \ + -e "s/\(<\/config>\)/ @@new@@\n\1/" \ + -e "s/@@new@@/<match action=\"@@action@@\">\n@@return@@\n <\/match>/" \ + -e "s/@@action@@/org.freedesktop.hal.storage.mount-removable/" \ + -e "s/@@return@@/ <return result=\"yes\"\/>/" + + if [ -f /mnt/etc/init.d/dbus ] ; then + strinfile "messagebus:" /mnt/etc/passwd || \ + echo "messagebus:x:102:103:User for D-BUS:/var/run/dbus:/bin/false" \ + >> /mnt/etc/passwd + strinfile "messagebus:" /mnt/etc/group || \ + echo "messagebus:!:103:" >> /mnt/etc/group + # create directories and set permissions with user and group id + testmkd /mnt/var/run/dbus messagebus:messagebus + testmkd /mnt/var/lib/dbus + # console-kit-daemon is often not started properly (why ever) + sed -i /mnt/etc/init.d/dbus \ + -e '/start_daemon -f $DBUS_D/a\ +\ \ \ \ \ \ \ \ start_daemon -f /usr/sbin/console-kit-daemon' + + rm -rf /mnt/etc/dbus-1/system.d/*etwork*anager.conf \ + /mnt/etc/dbus-1/system.d/nm-* \ + /mnt/etc/dbus-1/event.d/*NetworkManager* + + rllinker "dbus" $start $stop + fi + if [ -f /mnt/etc/init.d/haldaemon ] ; then + strinfile "haldaemon:" /mnt/etc/passwd || \ + echo "haldaemon:x:106:107:User for haldaemon:/var/run/hal:/bin/false" \ + >> /mnt/etc/passwd + strinfile "haldaemon:" /mnt/etc/group || \ + echo "haldaemon:!:107:" >> /mnt/etc/group + echo -n "" >/mnt/var/lib/misc/PolicyKit.reload + chmod a+x /mnt/var/lib/misc/PolicyKit.reload + # create directories and set permissions with user and group id + for dir in /var/run/hald /var/run/hald/hald-local \ + /var/run/hald/hald-runner /var/cache/hald; do + testmkd /mnt/${dir} haldaemon:haldaemon + done + start=$(($start + 1)) + stop=$(($stop - 1)) + rllinker "haldaemon" $start $stop + fi +fi +} diff --git a/src/initramfs/distro-specs/suse/functions-11.3 b/src/initramfs/distro-specs/suse/functions-11.3 new file mode 100644 index 00000000..4eac33a0 --- /dev/null +++ b/src/initramfs/distro-specs/suse/functions-11.3 @@ -0,0 +1,97 @@ +# Copyright (c) 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 under http://openslx.org +# +# configuration script for OpenSuSE 11.2 to configure linux stateless clients +# (included by init, hwautocfg, servconfig within InitialRamFS after +# inclusion of the main functions file). This file is the main base for the +# several SuSE distro versions + +# settings of central variables (formerly done via config-*, these variables +# are disputable ...) +# D_DIRINBINDMNT - lists of directories to be created in bind mounted rw +# part of the client filesystem +# D_RODIRSINRW - ReadOnly Directories in RW part of filesystem to save on +# TempFS usage +# D_DIRINDXS - directories in client filesystem which should be present +# anyhow +# +# TODO: id. copy of functions-11.2 to be adapted to 11.3 + +# start portmapper (needed at least for nfs and nis services) +config_portmap () { +# portmap is provided via rpcbind in suse 11.1,2,3 +testmkd /mnt/var/lib/rpcbind +rllinker "rpcbind" 4 5 +} +# acpi and powersave daemons, required e.g. to shutdown the machine via +# power button, no need for early start +config_acpi () { +rllinker acpid 22 12 +# dbus is required to run acpid and powersaved +start_dreshal="yes" +} +# configure dbus (inter application communication for kde and gnome), hal +# (hardware abstraction layer - used e.g. by powersaved) +config_dreshal () { +local start=1 +local stop=10 +if [ "x$start_dreshal" = "xyes" ]; then + for dir in /var/lib/misc /var/run/ConsoleKit \ + "/var/run/PolicyKit polkituser:polkituser" \ + "/var/lib/PolicyKit polkituser:polkituser" \ + "/var/run/dbus/at_console/pool"; do + testmkd /mnt${dir} + done + # enable access to removable devices + sed -i /mnt/etc/PolicyKit/PolicyKit.conf \ + -e "s/\(<\/config>\)/ @@new@@\n\1/" \ + -e "s/@@new@@/<match action=\"@@action@@\">\n@@return@@\n <\/match>/" \ + -e "s/@@action@@/org.freedesktop.hal.storage.mount-removable/" \ + -e "s/@@return@@/ <return result=\"yes\"\/>/" + + if [ -f /mnt/etc/init.d/dbus ] ; then + strinfile "messagebus:" /mnt/etc/passwd || \ + echo "messagebus:x:102:103:User for D-BUS:/var/run/dbus:/bin/false" \ + >> /mnt/etc/passwd + strinfile "messagebus:" /mnt/etc/group || \ + echo "messagebus:!:103:" >> /mnt/etc/group + # create directories and set permissions with user and group id + testmkd /mnt/var/run/dbus messagebus:messagebus + testmkd /mnt/var/lib/dbus + # console-kit-daemon is often not started properly (why ever) + sed -i /mnt/etc/init.d/dbus \ + -e '/start_daemon -f $DBUS_D/a\ +\ \ \ \ \ \ \ \ start_daemon -f /usr/sbin/console-kit-daemon' + + rm -rf /mnt/etc/dbus-1/system.d/*etwork*anager.conf \ + /mnt/etc/dbus-1/system.d/nm-* \ + /mnt/etc/dbus-1/event.d/*NetworkManager* + + rllinker "dbus" $start $stop + fi + if [ -f /mnt/etc/init.d/haldaemon ] ; then + strinfile "haldaemon:" /mnt/etc/passwd || \ + echo "haldaemon:x:106:107:User for haldaemon:/var/run/hal:/bin/false" \ + >> /mnt/etc/passwd + strinfile "haldaemon:" /mnt/etc/group || \ + echo "haldaemon:!:107:" >> /mnt/etc/group + echo -n "" >/mnt/var/lib/misc/PolicyKit.reload + chmod a+x /mnt/var/lib/misc/PolicyKit.reload + # create directories and set permissions with user and group id + for dir in /var/run/hald /var/run/hald/hald-local \ + /var/run/hald/hald-runner /var/cache/hald; do + testmkd /mnt/${dir} haldaemon:haldaemon + done + start=$(($start + 1)) + stop=$(($stop - 1)) + rllinker "haldaemon" $start $stop + fi +fi +} diff --git a/src/initramfs/distro-specs/suse/functions-default b/src/initramfs/distro-specs/suse/functions-default new file mode 100644 index 00000000..14bb5ff0 --- /dev/null +++ b/src/initramfs/distro-specs/suse/functions-default @@ -0,0 +1,608 @@ +# 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 under http://openslx.org +# +# configuration script for general SuSE to configure linux stateless clients +# (included by init, hwautocfg, servconfig within InitialRamFS after +# inclusion of the main functions file). This file is the main base for the +# several SuSE distro versions + +# settings of central variables (formerly done via config-*, these variables +# are disputable ...) +# D_DIRINBINDMNT - lists of directories to be created in bind mounted rw +# part of the client filesystem +# D_RODIRSINRW - ReadOnly Directories in RW part of filesystem to save on +# TempFS usage +# D_DIRINDXS - directories in client filesystem which should be present +# anyhow +D_BINDMPTS="tmp root media home" +D_DIRINBINDMNT="/var/run /var/log /var/tmp" +D_RODIRSINRW="/etc/bootsplash /etc/gconf /etc/X11/xkb /var/adm /var/lib/texmf \ +/var/lib/rpm /var/cache/fontconfig" +D_DIRINDXS="/var/X11R6/compose-cache /var/run/sysconfig/tmp /var/adm \ +/var/lib/rpm /var/lib/nobody /var/lib/pam_devperm /var/lib/bluetooth \ +/var/lib/texmf /var/lib/nfs/sm /var/lib/nfs/sm.bak /var/lib/misc \ +/var/lib/acpi /var/spool/cron /var/lock/subsys/sysconfig" + +# empty functions are defined at the beginning of /etc/functions + +# distro specific function called from servconfig script +config_distro () { +# clean the runlevel directories which will be populated by the stage3 setup +for dir in rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d boot.d ; do + rm -rf /mnt/etc/init.d/${dir}/* +done + +# link the additional key setup (notbook special keys) +grep -q -E "otebook" /etc/hwinfo.bios && \ + [ -e /mnt/etc/init.d/hotkey-setup ] && rllinker "hotkey-setup" 25 25 +# no need to run start scripts in parallel +# enable magic sysrequest for the clients +sed -e "1i# /etc/sysconfig/sysctl - modified by $0 version $version" \ + -e "s,ENABLE_SYSRQ=.*,ENABLE_SYSRQ=\"yes\"," \ + -i /mnt/etc/sysconfig/sysctl +# add slx specific path /var/opt/openslx/bin ... +echo -e "# stuff generated by $0 (out of InitRamFS written $date)\n\ +PATH=\"\$PATH:/var/opt/openslx/bin\"\n\ +test \"\$UID\" -ge 100 && PATH=\"\$PATH:.\"\n\ +QTDIR=/usr/lib/qt3\nexport QTDIR\nno_proxy='localhost'\n\ +export no_proxy" >/mnt/etc/SuSEconfig/profile +echo -e "SLX VERSION = $SLXVERSION\nINITRAMFS GENERATION DATE = $date" \ + >>/mnt/etc/SuSE-release + +# remove annoying udev rule set for changing eth interface and rtc symlink +rm /mnt/etc/udev/rules.d/*persistent-net.rules \ + /mnt/etc/udev/rules.d/*net_persistent_names.rules >/dev/null 2>&1 +sed '/SYMLINK+="rtc"/d' -i \ + /mnt/etc/udev/rules.d/50-udev-default.rules >/dev/null 2>&1 + +# create a stateless specific halt script +echo -e '#!/bin/sh\n# script generated in InitRamFS (SLX stage3) +. /etc/rc.status\n +trap "echo" SIGINT SIGSEGV SIGQUIT SIGTERM\nset +e\n\n +case "$0" in\n\t*halt) +\t message="The system will be halted immediately." +\t command="halt -p"\n\t ;;\n\t*reboot)\n +\t message="Please stand by while rebooting the system..." +\t command="reboot"\n\t ;;\nesac\n +rc_reset\ntest -e /etc/init.d/halt.local && { +\techo Running /etc/init.d/halt.local\n\t/bin/sh /etc/init.d/halt.local +\trc_status -v1 -r\n} +echo $message\nexec $command -d -f' >/mnt/etc/init.d/halt +# add the halt link to the 0 and 6 runlevel directories +ln -sf ../halt /mnt/etc/init.d/rc0.d/S20halt +ln -sf ../halt /mnt/etc/init.d/rc6.d/S20reboot + +echo "LOGFILE=${LOGFILE}" >/mnt/etc/sysconfig/logfile +# fixme: rather ugly to write that boot script this way +echo ' +#!/bin/sh +# SuSE specific initial boot file modified for the use with OpenSLX clients +# +########################################################################### + +# Before we do anything else, try at first to activate SELinux support +test -d /selinux && mount -n -t selinuxfs none /selinux &>/dev/null + +# Configuration and coloring of the boot messages +. /etc/rc.status +. /etc/sysconfig/boot +. /etc/sysconfig/logfile + +# Avoid be interrupted by child or keyboard +trap "echo" SIGINT SIGSEGV SIGQUIT +set +e + +# reasonable start values for bootsplash progress +export progress=0 +export sscripts=45 +export kscripts=45 + +echo -n "System Boot Control: " +echo "Running $0" + +########################################################################### +# + +# some important (un)mounts +rc_reset +echo -n "Mounting /proc, /sys and /dev/pts filesystems" +# file /etc/fstab in some scenarios not available +mount -t proc proc /proc &>/dev/null +rc_status -v -r + +echo -n "Mounting /dev/pts" +mount -t devpts -o mode=0620,gid=5 devpts /dev/pts +rc_status -v -r +if [ -d /sys ] ; then + while read a b c ; do + case "$b" in + sysfs) + echo -n "Mounting /sys filesystem" + echo -e "sysfs\t\t/sys\t\tsysfs\t\trw\t\t 0 0\n" \ + >>/etc/fstab + mount -t sysfs sysfs /sys + rc_status -v -r + break + ;; + esac + done < /proc/filesystems +fi + +# Start blogd, requires /proc and /dev/pts. +# Export the real device in variable REDIRECT. +test -x /sbin/blogd -a -n "$REDIRECT" && /sbin/blogd $REDIRECT +if test -z "$REDIRECT" ; then + if (echo -n > /dev/tty) 2>/dev/null ; then + REDIRECT=/dev/tty + else + REDIRECT=/dev/console + fi +fi + +########################################################################### +# +# Save old terminal settings and set -nl to avoid staircase +# effect, do not lock scrolling, and avoid break characters. +otty=$(stty -g) +if test "$FLOW_CONTROL" = "yes" ; then + stty -nl ixon ignbrk -brkint +else + stty -nl -ixon ignbrk -brkint +fi + +########################################################################### +# +# Common used variables +bootrc=/etc/init.d/boot.d +rex="[0-9][0-9]" +failed="" +skipped="" +callord="" + +# +# Initialize boosplash progressbar variables +# +. /etc/rc.splash B +splashtrigger "rlchange B" + +########################################################################### +# +# Do we stop/start script in parallel? +startpar=$(type -p startpar) +test "$RUN_PARALLEL" = "yes" || startpar="" + +# Start bootup client scripts. +if test -d ${bootrc}/ ; then + for i in ${bootrc}/S*; do + test -f $i || continue + + B=${i##*/} + script=${B#*S$rex} + B=${B%$script} + + rc_splash "$script start" + + if test -z "$startpar" ; then + blogger "$script start" + + if test -x "$i" ; then + $i start + else + echo Running $i + /bin/sh $i b + rc_status -v1 -r + fi + status=$? + echo -en "$rc_reset" + + case $status in + [1-4]) failed="${failed:+$failed }$script" ;; + [56]) skipped="${skipped:+$skipped }$script" ;; + [07]|*) ;; + esac + + blogger "$script start exits with status $status" + else + # Parallel boot only for valid scripts + test -x $i || continue + + # Current vector + eval cur=\${$B} + test -n "$cur" || callord="${callord:+$callord }$B" + + # Remember scripts + eval $B="\${cur:+$i }\${cur:-$i}" + fi + done +fi + +########################################################################### +# +# Call the scripts in correct order +if test -n "$startpar" ; then + declare -i s + for p in $callord ; do + vect=$p + eval p=(\${$p}) + + blogger "run boot scripts (${p[@]##*S$rex})" + if test ${#p[@]} -eq 1 ; then + ${p} start + status=($?) + else + status=($($startpar -t 30 -T 3 -a start ${p[@]})) + fi + echo -en "$rc_reset" + blogger "exit status of (${p[@]##*S$rex}) is (${status[@]})" + + s=0 + for script in ${p[@]##*S$rex} ; do + case "${status[$s]}" in + [1-4]) failed="${failed:+$failed }$script" ;; + [56]) skipped="${skipped:+$skipped }$script" ;; + 0|*) ;; + esac + : $((s++)) + done + done +fi + +########################################################################### +# +# Be verbose and print stats +echo -n "System Boot Control: " +echo -e "The system has been ${stat}${extd}set up${norm}" +if test -n "$failed" ; then + n=$((${#failed} + 7)) + echo -n "Failed features: " + test $n -lt 47 && echo -en "\033[${COLUMNS}C\033[${n}D" + echo -e "${warn}${failed}${norm}" +fi +if test -n "$skipped" ; then + n=$((${#skipped} + 7)) + echo -n "Skipped features: " + test $n -lt 47 && echo -en "\033[${COLUMNS}C\033[${n}D" + echo -e "${attn}${skipped}${norm}" +fi + +########################################################################### +# +# Check for boot cycle detection +test -s /lib/bootcycle/stats && . /lib/bootcycle/stats + +# Restore old terminal settings +stty $otty + +########################################################################### +# +# Let zic set timezone - if present (from boot.ldconfig). +if test -n "$TIMEZONE" -a -x /usr/sbin/zic ; then + echo -n Setting up timezone data + /usr/sbin/zic -l $TIMEZONE + rc_status -v -r +fi + +########################################################################### +# +# start user defined bootup script. +if test -f /etc/init.d/boot.local ; then + ECHO_RETURN=$rc_done_up + echo "Running /etc/init.d/boot.local" + /bin/sh /etc/init.d/boot.local || rc_failed + rc_status -v1; rc_reset + rc_splash "boot.local start" +fi + +rc_reset +exit 0' >/mnt/etc/init.d/boot +## end of initial stage4 boot script + +# enable execution of all important start scripts +# running stuff in parallel seems to be rather useless and generates some +# difficult to solve problems. If you want to try nevertheless enable the +# following line and disable the latter one (switching off that feature) +sed -e "s,RUN_PARALLEL=.*,RUN_PARALLEL=\"no\"," \ + -i /mnt/etc/sysconfig/boot +# if YaST2 should be runnable (without much effect anyway) on the client +testmkd /mnt/var/log/YaST2 +# for screen sessions +testmkd /mnt/var/run/uscreens 4777 +# set special SuSE HOSTNAME file +echo "$host_name" > /mnt/etc/HOSTNAME +# produce proper output formatting (of "done", "failed", ...) +sed -e '/^test $LINES/ { +i\ +# Script modified here by \$0 during stage3 bootup\ +LINECOL=$(stty size); LINES=${LINECOL% *}; COLUMNS=${LINECOL#* } +}' -e "/^if test -z \"\$LINES/,/fi$/d" -i /mnt/etc/rc.status +# check for inittab file +test -f /mnt/etc/inittab || error "$df_erritab" +} + +# initial (boot time) runlevel scripts +initial_boot () { +local scripts=$* +local count=10 +# boot.slx is a special runlevel script generated within initialramfs which +# should be executed before the normal runlevel scripts. Proper shutdown is +# not needed!? +for i in boot.udev boot.proc boot.klog boot.loadmodules boot.slx boot.clock \ +boot.sysctl boot.ipconfig boot.swap $D_SPLASHY kbd; do + count=$(($count + 1)) + [ $DEBUGLEVEL -ge 2 ] && echo "boot-runlevelscript $i" + ln -sf /etc/init.d/$i /mnt/etc/init.d/boot.d/S${count}$i +done +} + +# linking runlevel scripts +rllinker () { +local script="$1" +if [ $2 -lt 10 ] ; then + local start="0$2"; else local start="$2" +fi +if [ $3 -lt 10 ] ; then + local stop="0$3"; else local stop="$3" +fi +# empty runlevel links - decision on running certain services is +# passed via configuration +for i in rc3.d/K$stop$script rc5.d/K$stop$script \ + rc3.d/S$start$script rc5.d/S$start$script ; do + ln -sf ../$script /mnt/etc/init.d/$i +done +} + +# group of functions for the normal runlevels - first parameter is start +# second stop +# function for ntp configuration +config_ntp () { +if [ -e /mnt/etc/init.d/ntp ] ; then + if ! strinfile "ntp:" /mnt/etc/passwd ; then + echo -e "ntp:x:74:65534:NTP daemon:/var/lib/ntp:/bin/false" \ + >>/mnt/etc/passwd + echo -e "ntp:!:13099:0:99999:7:::" >>/mnt/etc/shadow + fi + testmkd /mnt/var/lib/ntp/var/run/ntp + if [ "x$start_ntp" = "xyes" ] ; then + rllinker "ntp" 7 14 + fi +fi +} +# function for atd +config_atd () { +if [ "x$start_atd" = "xyes" ]; then + rllinker "atd" 14 4 +fi +} +# function for configuration of cron services +config_cron () { +if [ "x$start_cron" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/cron ] ; then + rllinker "cron" 18 2 + testmkd /mnt/var/spool/cron/lastrun + testmkd /mnt/var/spool/cron/tabs + echo -e "# /etc/crontab - file generated by $0:\n\ +#\t$date\nSHELL=/bin/sh\nPATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin\ +\nMAILTO=\n-*/15 * * * *\troot\ttest -x /usr/lib/cron/run-crons && \ +/usr/lib/cron/run-crons >/dev/null 2>&1" >/mnt/etc/crontab + else + error "$df_errcron" nonfatal + fi +fi +} +# name service caching daemon (useful in most cases) +config_nscd () { + if [ -f /mnt/etc/init.d/nscd ] ; then + rllinker "nscd" 20 5 + fi +} +# secure shell service +config_sshd () { +if [ "x$start_sshd" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/sshd ] ; then + testmkd /mnt/var/run/sshd + testmkd /mnt/var/lib/empty + if ! strinfile "sshd:" /mnt/etc/passwd ; then + echo -e "sshd:x:117:65534::/var/run/sshd:/usr/sbin/nologin" \ + >>/mnt/etc/passwd + echo -e "sshd:!:13099:0:99999:7:::" >>/mnt/etc/shadow + fi + # set permissions with userid + #d_mkrlscript entry boot.slx "chown sshd:nogroup /var/run/sshd \ + # /var/lib/empty 2>/dev/null" + rllinker "sshd" 25 10 + else + error "$df_errsshd" nonfatal + fi +fi +} +# snmp agent for remote monitoring +config_snmp () { +if [ "x$start_snmp" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/snmpd ] ; then + rllinker "snmpd" 24 2 + testmkd /mnt/var/lib/net-snmp + fi + # fixme!! + # write service monitor depending on services started + fi +} +# configure print server (lpd or cups) +config_printer () { +if [ "x${start_printdaemon}" != "x" ] && \ + [ "x${start_printdaemon}" != "xno" ]; then + case ${start_printdaemon} in + yes|cups*|CUPS*) + rllinker "cups" 25 1 + testmkd /mnt/var/spool/cups/tmp + #chown -R lp:lp /var/spool/cups + ;; + lp*|LP*|PLP*) + rllinker "lpd" 25 1 + testmkd /mnt/var/spool/lpd + #chown -R lp:lp /var/spool/lpd + ;; + *) + #logwrite "Do not know print-server $start_printdaemon; \ + #specify 'cups' or 'lpd'." + ;; + esac +fi +# configure cups printer client, avoid to overwrite admin provided printer +# configuration file +if [ "x$lpr_servers" != "x" ] && [ ! -e /rootfs/etc/cups/client.conf ] ; then + echo -e "# /etc/cups/client.conf - file generated by\n#\t$0:\n\ +#\t$date\n#\nServerName\t$lpr_servers" >/mnt/etc/cups/client.conf +fi +} +# configure bluetooth services +config_bt () { +if [ -e /mnt/etc/sysconfig/bluetooth ] ; then + sed -e "1i# /etc/sysconfig/bluetooth - file modified by $0" \ + -e "s,START_SERVICES.*,START_SERVICES=\"yes\"," \ + -i /mnt/etc/sysconfig/bluetooth +else + : # no bluetooth components installed +fi +} +# set up localization like keytable and consolefont +dlocale () { +d_mkrlscript entry boot.slx "# entries added by $0: $date" +sed -e "s,KEYTABLE=.*,KEYTABLE=\"${KEYTABLE}\"," \ + -i /mnt/etc/sysconfig/keyboard +d_mkrlscript entry boot.slx "#loadkeys ${KEYTABLE} >${LOGFILE} 2>&1" +d_mkrlscript entry boot.slx "#setfont ${CONSOLE_FONT} >${LOGFILE} 2>&1" +sed -e "s,RC_LANG=.*,RC_LANG=\"${LANG}\" # added in initrd," \ + -i /mnt/etc/sysconfig/language +} +# acpi and powersave daemons, required e.g. to shutdown the machine via +# power button, no need for early start +config_acpi () { +rllinker acpid 22 12 +rllinker powersaved 23 11 +# dbus is required to run acpid and powersaved +start_dreshal="yes" +} +# configure dbus (inter application communication for kde and gnome), hal +# (hardware abstraction layer - used e.g. by powersaved) and resmgr +# (resource manager - the user gets permissions to devices when loggin on) +# runlevel script for haldaemon is now haldaemon instead of hal +config_dreshal () { +local start=0 +local stop=18 +if [ "x$start_dreshal" = "xyes" ]; then + for dir in /var/run/resmgr/classes /var/lib/PolicyKit; do + testmkd /mnt/$dir + done + if [ -f /mnt/etc/init.d/dbus ] ; then + strinfile "messagebus:" /mnt/etc/passwd || \ + echo "messagebus:x:100:101:User for D-BUS:/var/run/dbus:/bin/false" \ + >> /mnt/etc/passwd + strinfile "messagebus:" /mnt/etc/group || \ + echo "messagebus:!:101:" >> /mnt/etc/group + # create directories and set permissions with user and group id + testmkd /mnt/var/run/dbus messagebus:messagebus + rllinker "dbus" $start $stop + fi + if [ -f /mnt/etc/init.d/consolekit ] ; then + strinfile "polkituser:" /mnt/etc/passwd || \ + echo "polkituser:x:104:106:PolicyKit:/var/run/PolicyKit:/bin/false" \ + >> /mnt/etc/passwd + start=$(($start + 1)) + stop=$(($stop - 1)) + rllinker "consolekit" $start $stop + echo -n > /mnt/var/lib/misc/PolicyKit.reload + chmod a+x /mnt/var/lib/misc/PolicyKit.reload + fi + if [ -f /mnt/etc/init.d/resmgr ] ; then + start=$(($start + 1)) + stop=$(($stop - 1)) + rllinker "resmgr" $start $stop + fi + if [ -f /mnt/etc/init.d/haldaemon ] ; then + strinfile "haldaemon:" /mnt/etc/passwd || \ + echo "haldaemon:x:105:103:User for haldaemon:/var/run/hal:/bin/false" \ + >> /mnt/etc/passwd + strinfile "haldaemon:" /mnt/etc/group || \ + echo "haldaemon:!:103:" >> /mnt/etc/group + echo -n "" > /mnt/var/lib/PolicyKit.reload + # create directories and set permissions with user and group id + testmkd /mnt/var/run/hal haldaemon:haldaemon + testmkd /mnt/var/cache/hald haldaemon:haldaemon + start=$(($start + 1)) + stop=$(($stop - 1)) + rllinker "haldaemon" $start $stop + fi +fi +} +# configure automounter (fixme: to be moved into plugin) +config_automount () { +if [ -e /mnt/etc/sysconfig/autofs ] ; then + testmkd /mnt/var/lock/subsys + sed -e "1i# /etc/sysconfig/autofs - file modified by\n#\t$0:\n#" \ + -e "s,AUTOFS_OPTIONS.*,AUTOFS_OPTIONS=\"--timeout 3\"," \ + -i /mnt/etc/sysconfig/autofs + rllinker "autofs" 18 4 + # might be needed for autofs via NFS (start specific nfs related services) + # echo 'NFS_START_SERVICES="no"' >>/mnt/etc/sysconfig/nfs +else + error "$df_erramt" nonfatal +fi +} +# start name service caching daemon +config_nscd () { +if [ -e /mnt/etc/init.d/nscd ] ; then + testmkd /mnt/var/run/nscd + rllinker "nscd" 16 16 +else + error "$df_errnsc" nonfatal +fi +} +# start portmapper (needed at least for nfs and nis services) +config_portmap () { + rllinker "portmap" 2 20 +} +# start NIS (mostly deprecated) +config_nis () { +if [ -f /mnt/etc/init.d/ypbind ] ; then + rllinker "ypbind" 6 16 + config_portmap + testmkd /mnt/var/yp/nicknames +else + error "$df_erryp" nonfatal +fi +} +# initialize runlevel skript to be executed during system startup +# (before most of the normal boot init scripts) +# this script should operate like a normal runlevel script +d_mkrlscript () { +local switch="$1" +local name="$2" +local info="$3" +case "$1" in + init) + echo -e "#!/bin/sh\n# skeleton of /etc/init.d/${name} created \ +by $0\n# after you applied changes to the creation scripts you have to \ +rerun\n# the mkdxsinitrd script to get them applied\n\ +. /etc/rc.status\n. /etc/sysconfig/logfile\nrc_reset\ncase \ +\"\$1\" in\n start)\n\techo -n \"$info\"" >>/mnt/etc/init.d/${name} + chmod u+x /mnt/etc/init.d/${name} + ;; + entry) + echo -e "\t${info}" >>/mnt/etc/init.d/${name} + ;; + close) + echo -e "\trc_status -v\n\t;;\n stop)\n\t;;\nesac\nrc_exit" \ + >>/mnt/etc/init.d/${name} + ;; +esac +} + + diff --git a/src/initramfs/distro-specs/ubuntu/functions-10.04 b/src/initramfs/distro-specs/ubuntu/functions-10.04 new file mode 100644 index 00000000..7f73c4ca --- /dev/null +++ b/src/initramfs/distro-specs/ubuntu/functions-10.04 @@ -0,0 +1,16 @@ +# Copyright (c) 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 under http://openslx.org +# +# Configuration script for Ubuntu 10.04 configure OpenSLX Linux stateless +# clients (merged in stage2 with ubuntu/functions-default - and loaded within +# initial ramfs - stage3) It may overwrite settings from the default config +# file (/etc/functions) + +# no changes from default (as this is default at the moment) diff --git a/src/initramfs/distro-specs/ubuntu/functions-8.04 b/src/initramfs/distro-specs/ubuntu/functions-8.04 new file mode 100644 index 00000000..3b93e86d --- /dev/null +++ b/src/initramfs/distro-specs/ubuntu/functions-8.04 @@ -0,0 +1,296 @@ +# 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 under http://openslx.org +# +# Configuration script for Ubuntu 8.04 configure OpenSLX linux stateless +# clients (merged in stage2 with ubuntu/functions-default - and loaded within +# initial ramfs - stage3) It may overwrite settings from the default config +# file (/etc/functions) + +# distro specific configuration variables used in the setup functions +# (formerly done via config-*, these variables are disputable ...) +# D_ETCEXCL - list of files, wildcards to be excluded from /etc when using +# bind mounts +# D_DIRINBINDMNT - lists of directories to be created in bind mounted rw part +# of the client filesystem +# D_RODIRSINRW - ReadOnly Directories in RW part of filesystem to save on +# TempFS usage +# D_DIRINDXS - directories in client filesystem which should be present anyhow +#D_ETCEXCL="etc/gconf/*\n*.old\n*-\netc/autoinstall\nlogrotate*\nbootloader\n\ +#*~\npptp.d\nisdn\nyouservers\nhardware/hwcfg*\n\ +#X11/xdm/pixmaps\ndhclient.script" +D_BINDMPTS="tmp root home media" +D_DIRINBINDMNT="/var/run /var/log /var/tmp /var/lib/gdm" +D_RODIRSINRW="/etc/X11/xkb /var/lib/gconf /var/lib/dpkg /var/lib/aspell \ +/var/lib/pango /var/lib/defoma /var/cache/fontconfig /var/lib/dkms" +#D_RWDIRSINRO="/var/lib/gdm" +D_DIRINDXS="/var/X11R6/compose-cache /var/run/sysconfig/tmp /var/adm \ +/var/lib/nobody /var/lib/pam_devperm /var/lib/bluetooth /var/lib/texmf \ +/var/lib/nfs/sm /var/lib/misc /var/lib/acpi /var/spool/cron /var/lib/alsa \ +/var/lock/subsys/sysconfig" + +# empty functions are defined at the beginning of /etc/functions + +# distro specific stuff to initialize +preinit () { + # load unix module to provide sockets (is compiled into kernel on + # the live CDs!?) + modprobe ${MODPRV} unix 2>/dev/null || error "$df_errumod" nonfatal + modprobe ${MODPRV} vesafb 2>/dev/null || error "$df_errumod" nonfatal + modprobe ${MODPRV} fbcon 2>/dev/null || error "$df_errumod" nonfatal +} + +# distro specific function called from servconfig script +config_distro () { + # clean the runlevel directories which will be populated by the stage3 setup + for dir in rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d rcS.d ; do + rm -rf /mnt/etc/${dir}/* + done + # add the halt link to the 0 and 6 runlevel directories + ln -sf ../init.d/halt /mnt/etc/rc0.d/S90halt + ln -sf ../init.d/reboot /mnt/etc/rc6.d/S90reboot + + # remove annoying udev rule set for changing eth interface + rm /mnt/etc/udev/rules.d/*persistent-net.rules >/dev/null 2>&1 + + # inittab is obsolete with the change to upstart in ubuntu 7.10, but to + # prevent missunderstandings with the blank inittab created by openslx init + # we'll write a comment.. + echo "# inittab is obsolete with the change to upstart from ubuntu 7.10" \ + > /mnt/etc/inittab + + # fix getty bug (console login on tty1 is started too early) + [ -f /mnt/etc/event.d/tty1 ] && \ + sed -i "s/start on runlevel 2/start on stopped rc2/" /mnt/etc/event.d/tty1 + + # for screen sessions + testmkd /mnt/var/run/screen root:utmp 0775 + + # no additional /dev/shm mount needed as it is always used + sed -e "/Mount a tmpfs on/,/domount tmpfs /d" \ + -i /mnt/etc/init.d/mountdevsubfs.sh + + # clean up the udev script as much is handled already in stage3 + sed -e "3i# Script modified during SLX stage3 bootup (config_distro)" \ + -e "/# This next bit can/a\ /sbin/udevadm trigger" \ + -e "/# We need the uevent/,/# It's all over/d" \ + -e "/# Log things that/,/kill \$UDEV/d" -i /mnt/etc/init.d/udev + + # clean the mountall.sh script as only swap activation needed + sed -e "3i# Script modified during SLX stage3 bootup (config_distro)" \ + -e "/pre_mountall/,/post_mountall/d" \ + -i /mnt/etc/init.d/mountall.sh + + # add the slx specific path (/var/opt/openslx/bin) to the PATH variable + echo -e "# stuff generated by $0 (out of InitRamFS written $date)\n\ +export PATH=\"\$PATH:/var/opt/openslx/bin\"" >>/mnt/etc/profile + + # check for inittab file (might fail for new style init -> upstart) + #test -f /mnt/etc/inittab || test -d /mnt/etc/event.d || \ + # error "$df_erritab" +} + +# initial (boot time) runlevel scripts +initial_boot () { +local count=10 +# boot.slx is a special runlevel script generated within initialramfs which +# should be executed before the normal runlevel scripts. Proper shutdown is +# not needed!? +for i in mountkernfs.sh mountall.sh mountdevsubfs.sh keyboard-setup procps \ +bootlogd hwclock.sh sudo console-setup udev boot.slx $D_SPLASHY; do + count=$(($count + 1)) + [ $DEBUGLEVEL -ge 2 ] && echo "boot-runlevelscript $i" + ln -sf /etc/init.d/$i /mnt/etc/rcS.d/S${count}$i +done +} + +# linking runlevel scripts +rllinker () { +local script="$1" +if [ $2 -lt 10 ] ; then + local start="0$2"; else local start="$2" +fi +if [ $3 -lt 10 ] ; then + local stop="0$3"; else local stop="$3" +fi +# empty runlevel links - decision on running certain services is +# passed via configuration +for i in rc2.d/K$stop$script rc3.d/K$stop$script \ + rc2.d/S$start$script rc3.d/S$start$script ; do + if ! [ -f /mnt/etc/init.d/$script ]; then + echo "Target `pwd`../$script does not exist. Skipping links" + break + else + ln -sf ../init.d/$script /mnt/etc/$i + [ "$DEBUGLEVEL" == 5 ] && echo "Linked $script" + fi +done +} + +# group of functions for the normal runlevels - first parameter is start +# second stop + +# configure udev +config_udev () { + [ -c /dev/pktcdvd ] && { rm -rf /dev/pktcdvd; mkdir /dev/pktcdvd; } + if [ -f /mnt/etc/init.d/udev-finish ] ; then + rllinker "udev-finish" 24 2 + fi +} + +# function for ntp configuration +config_ntp () { +if [ -f /mnt/etc/init.d/ntp -a "x$start_ntp" != "xno" ] ; then + echo -e "ntp:x:74:65534:NTP daemon:/var/lib/ntp:/bin/false" \ + >>/mnt/etc/passwd + testmkd /mnt/var/lib/ntp/var/run/ntp + rllinker "ntp" 7 14 +fi +} +# function for atd +config_atd () { +if [ "x$start_atd" = "xyes" ]; then + # testmkd /mnt/var/spool/atjobs + # testmkd /mnt/var/spool/atspool + # chown 1:1 /mnt/var/spool/atjobs /mnt/var/spool/atspool + rllinker "atd" 14 4 +fi +} +# function for configuration of cron services (fixme: to be moved to a plugin?) +config_cron () { +if [ "x$start_cron" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/cron ] ; then + rllinker "cron" 18 2 + # fixme! check for proper permissions! + testmkd /mnt/var/spool/crontabs + echo -e "# /etc/crontab - file generated by $0:\n\ +#\t$date\nSHELL=/bin/sh\nPATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin\ +\nMAILTO=\n-*/15 * * * *\troot\ttest -x /usr/lib/cron/run-crons && \ +/usr/lib/cron/run-crons >/dev/null 2>&1\n" >/mnt/etc/crontab + else + error "$df_errcron" nonfatal + fi +fi +} +# secure shell service +config_sshd () { +if [ "x$start_sshd" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/ssh ] ; then + #testmkd /mnt/var/run/sshd + rllinker "ssh" 12 10 + else + error "$df_errsshd" nonfatal + fi +fi +} +# snmp agent for remote monitoring +config_snmp () { +if [ "x$start_snmp" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/snmpd ] ; then + rllinker "snmpd" 24 2 + testmkd /mnt/var/lib/net-snmp + fi + # fixme!! + # write service monitor depending on services started + fi +} +# acpi and powersave +config_acpi () { + rllinker "acpid" 8 16 + #Commented out since battery checking is only useful for Notebooks + #rllinker "acpi-support" 99 2 +} +# configure hal, dbus, policykitd and services like that +config_dreshal () { +if [ "x$start_dreshal" = "xyes" ]; then + testmkd /mnt/var/lib/dbus + testmkd /mnt/var/lib/misc + testmkd /mnt/var/cache/hald + touch /mnt/var/lib/misc/PolicyKit.reload + chown root:polkituser /mnt/var/lib/misc/PolicyKit.reload + rm -rf /mnt/etc/dbus-1/system.d/*etwork*anager.conf \ + /mnt/etc/dbus-1/system.d/nm-* \ + /mnt/etc/dbus-1/event.d/*NetworkManager* + sed -i /mnt/etc/PolicyKit/PolicyKit.conf \ + -e "s/\(<\/config>\)/ @@new@@\n\1/" \ + -e "s/@@new@@/<match action=\"@@action@@\">\n@@return@@\n <\/match>/" \ + -e "s/@@action@@/org.freedesktop.hal.storage.mount-removable/" \ + -e "s/@@return@@/ <return result=\"yes\"\/>/" + sed -i /mnt/etc/dbus-1/system.d/hal.conf \ + -e "s/^\([^d]*\)deny\(.*Volume.*\)/\1allow\2/" + rllinker "dbus" 2 20 + rllinker "hal" 3 18 + if [ ! -e /mnt/etc/init.d/policykit ] ; then + testmkd /mnt/var/lib/PolicyKit root:polkituser 1770 + testmkd /mnt/var/lib/PolicyKit-public root:polkituser + else + rllinker "policykit" 18 10 + fi +fi +} + +# initialize boot.slx - skript to be executed during early system startup +# (before most of the normal boot init scripts) +# this script should operate like a normal runlevel script (fixme!!) +d_mkrlscript () { +local switch="$1" +local name="$2" +local info="$3" +case "$switch" in + init) + echo -e "#!/bin/sh\n# skeleton of /etc/init.d/$name written \ +from $0\n# after you applied changes to the creation scripts you have to \ +rerun\n# the mkdxsinitrd script to get them applied\n\n\ +. /lib/lsb/init-functions\n" >/mnt/etc/init.d/$name + echo -e "\n\ncase \"\$1\" in\n start)\n\tlog_begin_msg \"$info\"" \ + >>/mnt/etc/init.d/$name + chmod u+x /mnt/etc/init.d/$name + ;; + entry) + echo -e "\t${info}" >>/mnt/etc/init.d/${name} + ;; + close) + echo -e "\tlog_end_msg 0\n\t;;\n stop)\n\t;;\nesac\nexit 0" \ + >>/mnt/etc/init.d/$name + ;; +esac +} +# configure automounter +config_automount () { +if [ -f /mnt/etc/init.d/autofs ] ; then + testmkd /mnt/var/lock/subsys + sed -e "1i# /etc/default/autofs - file modified by\n#\t$0:\n#" \ + -e "s,TIMEOUT.*,TIMEOUT=60," -i /mnt/etc/default/autofs + config_portmap + rllinker "autofs" 12 4 + rllinker "nfs-common" 11 5 +fi +} +# start portmapper (needed at least for nfsN and nis services) +config_portmap () { + rllinker "portmap" 2 20 +} +# start NIS (fixme - does the service is really named ypbind??) +config_nis () { + if [ -f /mnt/etc/init.d/ypbind ] ; then + rllinker "ypbind" 6 16 + config_portmap + testmkd /mnt/var/yp/nicknames + else + error "$df_erryp" nonfatal + fi +} +# name service caching daemon (useful in most cases) +config_nscd () { + if [ -f /mnt/etc/init.d/nscd ] ; then + testmkd /mnt/var/cache/nscd + rllinker "nscd" 20 5 + fi +} diff --git a/src/initramfs/distro-specs/ubuntu/functions-8.10 b/src/initramfs/distro-specs/ubuntu/functions-8.10 new file mode 100644 index 00000000..8a3469e7 --- /dev/null +++ b/src/initramfs/distro-specs/ubuntu/functions-8.10 @@ -0,0 +1,296 @@ +# 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 under http://openslx.org +# +# Configuration script for Ubuntu 8.10 configure OpenSLX Linux stateless +# clients (merged in stage2 with ubuntu/functions-default - and loaded within +# initial ramfs - stage3) It may overwrite settings from the default config +# file (/etc/functions) + +# distro specific configuration variables used in the setup functions +# (formerly done via config-*, these variables are disputable ...) +# D_ETCEXCL - list of files, wildcards to be excluded from /etc when using +# bind mounts +# D_DIRINBINDMNT - lists of directories to be created in bind mounted rw part +# of the client filesystem +# D_RODIRSINRW - ReadOnly Directories in RW part of filesystem to save on +# TempFS usage +# D_DIRINDXS - directories in client filesystem which should be present anyhow +#D_ETCEXCL="etc/gconf/*\n*.old\n*-\netc/autoinstall\nlogrotate*\nbootloader\n\ +#*~\npptp.d\nisdn\nyouservers\nhardware/hwcfg*\n\ +#X11/xdm/pixmaps\ndhclient.script" +D_BINDMPTS="tmp root home media" +D_DIRINBINDMNT="/var/run /var/log /var/tmp /var/lib/gdm" +D_RODIRSINRW="/etc/X11/xkb /var/lib/gconf /var/lib/dpkg /var/lib/aspell \ +/var/lib/pango /var/lib/defoma /var/cache/fontconfig /var/lib/dkms" +#D_RWDIRSINRO="/var/lib/gdm" +D_DIRINDXS="/var/X11R6/compose-cache /var/run/sysconfig/tmp /var/adm \ +/var/lib/nobody /var/lib/pam_devperm /var/lib/bluetooth /var/lib/texmf \ +/var/lib/nfs/sm /var/lib/misc /var/lib/acpi /var/spool/cron /var/lib/alsa \ +/var/lock/subsys/sysconfig" + +# empty functions are defined at the beginning of /etc/functions + +# distro specific stuff to initialize +preinit () { + # load unix module to provide sockets (is compiled into kernel on + # the live CDs!?) + modprobe ${MODPRV} unix 2>/dev/null || error "$df_errumod" nonfatal + modprobe ${MODPRV} vesafb 2>/dev/null || error "$df_errumod" nonfatal + modprobe ${MODPRV} fbcon 2>/dev/null || error "$df_errumod" nonfatal +} + +# distro specific function called from servconfig script +config_distro () { + # clean the runlevel directories which will be populated by the stage3 setup + for dir in rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d rcS.d ; do + rm -rf /mnt/etc/${dir}/* + done + # add the halt link to the 0 and 6 runlevel directories + ln -sf ../init.d/halt /mnt/etc/rc0.d/S90halt + ln -sf ../init.d/reboot /mnt/etc/rc6.d/S90reboot + + # remove annoying udev rule set for changing eth interface + rm /mnt/etc/udev/rules.d/*persistent-net.rules >/dev/null 2>&1 + + # inittab is obsolete with the change to upstart in ubuntu 7.10, but to + # prevent missunderstandings with the blank inittab created by openslx init + # we'll write a comment.. + echo "# inittab is obsolete with the change to upstart from ubuntu 7.10" \ + > /mnt/etc/inittab + + # fix getty bug (console login on tty1 is started too early) + [ -f /mnt/etc/event.d/tty1 ] && \ + sed -i "s/start on runlevel 2/start on stopped rc2/" /mnt/etc/event.d/tty1 + + # for screen sessions + testmkd /mnt/var/run/screen root:utmp 0775 + + # no additional /dev/shm mount needed as it is always used + sed -e "/Mount a tmpfs on/,/domount tmpfs /d" \ + -i /mnt/etc/init.d/mountdevsubfs.sh + + # clean up the udev script as much is handled already in stage3 + sed -e "3i# Script modified during SLX stage3 bootup (config_distro)" \ + -e "/# This next bit can/a\ /sbin/udevadm trigger" \ + -e "/# We need the uevent/,/# It's all over/d" \ + -e "/# Log things that/,/kill \$UDEV/d" -i /mnt/etc/init.d/udev + + # clean the mountall.sh script as only swap activation needed + sed -e "3i# Script modified during SLX stage3 bootup (config_distro)" \ + -e "/pre_mountall/,/post_mountall/d" \ + -i /mnt/etc/init.d/mountall.sh + + # add the slx specific path (/var/opt/openslx/bin) to the PATH variable + echo -e "# stuff generated by $0 (out of InitRamFS written $date)\n\ +export PATH=\"\$PATH:/var/opt/openslx/bin\"" >>/mnt/etc/profile + + # check for inittab file (might fail for new style init -> upstart) + #test -f /mnt/etc/inittab || test -d /mnt/etc/event.d || \ + # error "$df_erritab" +} + +# initial (boot time) runlevel scripts +initial_boot () { +local count=10 +# boot.slx is a special runlevel script generated within initialramfs which +# should be executed before the normal runlevel scripts. Proper shutdown is +# not needed!? +for i in mountkernfs.sh mountall.sh mountdevsubfs.sh keyboard-setup procps \ +bootlogd hwclock.sh sudo console-setup udev boot.slx $D_SPLASHY; do + count=$(($count + 1)) + [ $DEBUGLEVEL -ge 2 ] && echo "boot-runlevelscript $i" + ln -sf /etc/init.d/$i /mnt/etc/rcS.d/S${count}$i +done +} + +# linking runlevel scripts +rllinker () { +local script="$1" +if [ $2 -lt 10 ] ; then + local start="0$2"; else local start="$2" +fi +if [ $3 -lt 10 ] ; then + local stop="0$3"; else local stop="$3" +fi +# empty runlevel links - decision on running certain services is +# passed via configuration +for i in rc2.d/K$stop$script rc3.d/K$stop$script \ + rc2.d/S$start$script rc3.d/S$start$script ; do + if ! [ -f /mnt/etc/init.d/$script ]; then + echo "Target `pwd`../$script does not exist. Skipping links" + break + else + ln -sf ../init.d/$script /mnt/etc/$i + [ "$DEBUGLEVEL" == 5 ] && echo "Linked $script" + fi +done +} + +# group of functions for the normal runlevels - first parameter is start +# second stop + +# configure udev +config_udev () { + [ -c /dev/pktcdvd ] && { rm -rf /dev/pktcdvd; mkdir /dev/pktcdvd; } + if [ -f /mnt/etc/init.d/udev-finish ] ; then + rllinker "udev-finish" 24 2 + fi +} + +# function for ntp configuration +config_ntp () { +if [ -f /mnt/etc/init.d/ntp -a "x$start_ntp" != "xno" ] ; then + echo -e "ntp:x:74:65534:NTP daemon:/var/lib/ntp:/bin/false" \ + >>/mnt/etc/passwd + testmkd /mnt/var/lib/ntp/var/run/ntp + rllinker "ntp" 7 14 +fi +} +# function for atd +config_atd () { +if [ "x$start_atd" = "xyes" ]; then + # testmkd /mnt/var/spool/atjobs + # testmkd /mnt/var/spool/atspool + # chown 1:1 /mnt/var/spool/atjobs /mnt/var/spool/atspool + rllinker "atd" 14 4 +fi +} +# function for configuration of cron services (fixme: to be moved to a plugin?) +config_cron () { +if [ "x$start_cron" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/cron ] ; then + rllinker "cron" 18 2 + # fixme! check for proper permissions! + testmkd /mnt/var/spool/crontabs + echo -e "# /etc/crontab - file generated by $0:\n\ +#\t$date\nSHELL=/bin/sh\nPATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin\ +\nMAILTO=\n-*/15 * * * *\troot\ttest -x /usr/lib/cron/run-crons && \ +/usr/lib/cron/run-crons >/dev/null 2>&1\n" >/mnt/etc/crontab + else + error "$df_errcron" nonfatal + fi +fi +} +# secure shell service +config_sshd () { +if [ "x$start_sshd" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/ssh ] ; then + #testmkd /mnt/var/run/sshd + rllinker "ssh" 12 10 + else + error "$df_errsshd" nonfatal + fi +fi +} +# snmp agent for remote monitoring +config_snmp () { +if [ "x$start_snmp" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/snmpd ] ; then + rllinker "snmpd" 24 2 + testmkd /mnt/var/lib/net-snmp + fi + # fixme!! + # write service monitor depending on services started + fi +} +# acpi and powersave +config_acpi () { + rllinker "acpid" 8 16 + #Commented out since battery checking is only useful for Notebooks + #rllinker "acpi-support" 99 2 +} +# configure hal, dbus, policykitd and services like that +config_dreshal () { +if [ "x$start_dreshal" = "xyes" ]; then + testmkd /mnt/var/lib/dbus + testmkd /mnt/var/lib/misc + testmkd /mnt/var/cache/hald + touch /mnt/var/lib/misc/PolicyKit.reload + chown root:polkituser /mnt/var/lib/misc/PolicyKit.reload + rm -rf /mnt/etc/dbus-1/system.d/*etwork*anager.conf \ + /mnt/etc/dbus-1/system.d/nm-* \ + /mnt/etc/dbus-1/event.d/*NetworkManager* + sed -i /mnt/etc/PolicyKit/PolicyKit.conf \ + -e "s/\(<\/config>\)/ @@new@@\n\1/" \ + -e "s/@@new@@/<match action=\"@@action@@\">\n@@return@@\n <\/match>/" \ + -e "s/@@action@@/org.freedesktop.hal.storage.mount-removable/" \ + -e "s/@@return@@/ <return result=\"yes\"\/>/" + sed -i /mnt/etc/dbus-1/system.d/hal.conf \ + -e "s/^\([^d]*\)deny\(.*Volume.*\)/\1allow\2/" + rllinker "dbus" 2 20 + rllinker "hal" 3 18 + if [ ! -e /mnt/etc/init.d/policykit ] ; then + testmkd /mnt/var/lib/PolicyKit root:polkituser 1770 + testmkd /mnt/var/lib/PolicyKit-public root:polkituser + else + rllinker "policykit" 18 10 + fi +fi +} + +# initialize boot.slx - skript to be executed during early system startup +# (before most of the normal boot init scripts) +# this script should operate like a normal runlevel script (fixme!!) +d_mkrlscript () { +local switch="$1" +local name="$2" +local info="$3" +case "$switch" in + init) + echo -e "#!/bin/sh\n# skeleton of /etc/init.d/$name written \ +from $0\n# after you applied changes to the creation scripts you have to \ +rerun\n# the mkdxsinitrd script to get them applied\n\n\ +. /lib/lsb/init-functions\n" >/mnt/etc/init.d/$name + echo -e "\n\ncase \"\$1\" in\n start)\n\tlog_begin_msg \"$info\"" \ + >>/mnt/etc/init.d/$name + chmod u+x /mnt/etc/init.d/$name + ;; + entry) + echo -e "\t${info}" >>/mnt/etc/init.d/${name} + ;; + close) + echo -e "\tlog_end_msg 0\n\t;;\n stop)\n\t;;\nesac\nexit 0" \ + >>/mnt/etc/init.d/$name + ;; +esac +} +# configure automounter +config_automount () { +if [ -f /mnt/etc/init.d/autofs ] ; then + testmkd /mnt/var/lock/subsys + sed -e "1i# /etc/default/autofs - file modified by\n#\t$0:\n#" \ + -e "s,TIMEOUT.*,TIMEOUT=60," -i /mnt/etc/default/autofs + config_portmap + rllinker "autofs" 12 4 + rllinker "nfs-common" 11 5 +fi +} +# start portmapper (needed at least for nfsN and nis services) +config_portmap () { + rllinker "portmap" 2 20 +} +# start NIS (fixme - does the service is really named ypbind??) +config_nis () { + if [ -f /mnt/etc/init.d/ypbind ] ; then + rllinker "ypbind" 6 16 + config_portmap + testmkd /mnt/var/yp/nicknames + else + error "$df_erryp" nonfatal + fi +} +# name service caching daemon (useful in most cases) +config_nscd () { + if [ -f /mnt/etc/init.d/nscd ] ; then + testmkd /mnt/var/cache/nscd + rllinker "nscd" 20 5 + fi +} diff --git a/src/initramfs/distro-specs/ubuntu/functions-9.04 b/src/initramfs/distro-specs/ubuntu/functions-9.04 new file mode 100644 index 00000000..09567aa5 --- /dev/null +++ b/src/initramfs/distro-specs/ubuntu/functions-9.04 @@ -0,0 +1,293 @@ +# 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 under http://openslx.org +# +# Configuration script for Ubuntu 9.04 configure OpenSLX linux stateless +# clients (merged in stage2 with ubuntu/functions-default - and loaded within +# initial ramfs - stage3) It may overwrite settings from the default config +# file (/etc/functions) + +# distro specific configuration variables used in the setup functions +# (formerly done via config-*, these variables are disputable ...) +# D_ETCEXCL - list of files, wildcards to be excluded from /etc when using +# bind mounts +# D_DIRINBINDMNT - lists of directories to be created in bind mounted rw part +# of the client filesystem +# D_RODIRSINRW - ReadOnly Directories in RW part of filesystem to save on +# TempFS usage +# D_DIRINDXS - directories in client filesystem which should be present anyhow +#D_ETCEXCL="etc/gconf/*\n*.old\n*-\netc/autoinstall\nlogrotate*\nbootloader\n\ +#*~\npptp.d\nisdn\nyouservers\nhardware/hwcfg*\n\ +#X11/xdm/pixmaps\ndhclient.script" +D_BINDMPTS="tmp root home media" +D_DIRINBINDMNT="/var/run /var/log /var/tmp /var/lib/gdm" +RODIRSINRW="/var/lib/gconf /var/lib/dpkg /var/lib/aspell /var/lib/mlocate \ +/var/lib/pango /var/lib/defoma /var/cache/fontconfig /var/lib/dkms" +#D_RWDIRSINRO="/var/lib/gdm" +D_DIRINDXS="/var/run/sysconfig/tmp /var/adm /var/lib/nobody /var/lib/pam \ +/var/lib/bluetooth /var/lib/texmf /var/lib/nfs/sm /var/lib/misc \ +/var/lib/acpi-support /var/spool/cron /var/lib/alsa /var/lock/subsys" + +# empty functions are defined at the beginning of /etc/functions + +# distro specific stuff to initialize +preinit () { + # load unix module to provide sockets (is compiled into kernel on + # the live CDs!?) + modprobe ${MODPRV} fbcon 2>/dev/null || error "$df_errumod" nonfatal +} + +# distro specific function called from servconfig script +config_distro () { + # clean the runlevel directories which will be populated by the stage3 setup + for dir in rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d rcS.d ; do + rm -rf /mnt/etc/${dir}/* + done + # add the halt link to the 0 and 6 runlevel directories + ln -sf ../init.d/halt /mnt/etc/rc0.d/S90halt + ln -sf ../init.d/reboot /mnt/etc/rc6.d/S90reboot + + # remove annoying udev rule set for changing eth interface + rm /mnt/etc/udev/rules.d/*persistent-net.rules >/dev/null 2>&1 + + # inittab is obsolete with the change to upstart in ubuntu 7.10, but to + # prevent missunderstandings with the blank inittab created by openslx init + # we'll write a comment.. + echo "# inittab is obsolete with the change to upstart from ubuntu 7.10" \ + > /mnt/etc/inittab + + # fix getty bug (console login on tty1 is started too early) + [ -f /mnt/etc/event.d/tty1 ] && \ + sed -i "s/start on runlevel 2/start on stopped rc2/" /mnt/etc/event.d/tty1 + + # for screen sessions + testmkd /mnt/var/run/screen root:utmp 0775 + + # no additional /dev/shm mount needed as it is always used + sed -e "/Mount a tmpfs on/,/domount tmpfs /d" \ + -i /mnt/etc/init.d/mountdevsubfs.sh + + # clean up the udev script as much is handled already in stage3 + sed -e "3i# Script modified during SLX stage3 bootup (config_distro)" \ + -e "/# This next bit can/a\ /sbin/udevadm trigger" \ + -e "/# We need the uevent/,/# It's all over/d" \ + -e "/# Log things that/,/kill \$UDEV/d" -i /mnt/etc/init.d/udev + + # clean the mountall.sh script as only swap activation needed + sed -e "3i# Script modified during SLX stage3 bootup (config_distro)" \ + -e "/pre_mountall/,/post_mountall/d" \ + -i /mnt/etc/init.d/mountall.sh + + # add the slx specific path (/var/opt/openslx/bin) to the PATH variable + echo -e "# stuff generated by $0 (out of InitRamFS written $date)\n\ +export PATH=\"\$PATH:/var/opt/openslx/bin\"" >>/mnt/etc/profile + + # check for inittab file (might fail for new style init -> upstart) + #test -f /mnt/etc/inittab || test -d /mnt/etc/event.d || \ + # error "$df_erritab" +} + +# initial (boot time) runlevel scripts +initial_boot () { +local count=10 +# boot.slx is a special runlevel script generated within initialramfs which +# should be executed before the normal runlevel scripts. Proper shutdown is +# not needed!? +for i in mountkernfs.sh mountall.sh mountdevsubfs.sh keyboard-setup procps \ +bootlogd hwclock.sh sudo console-setup udev boot.slx $D_SPLASHY; do + count=$(($count + 1)) + [ $DEBUGLEVEL -ge 2 ] && echo "boot-runlevelscript $i" + ln -sf /etc/init.d/$i /mnt/etc/rcS.d/S${count}$i +done +} + +# linking runlevel scripts +rllinker () { +local script="$1" +if [ $2 -lt 10 ] ; then + local start="0$2"; else local start="$2" +fi +if [ $3 -lt 10 ] ; then + local stop="0$3"; else local stop="$3" +fi +# empty runlevel links - decision on running certain services is +# passed via configuration +for i in rc2.d/K$stop$script rc3.d/K$stop$script \ + rc2.d/S$start$script rc3.d/S$start$script ; do + if ! [ -f /mnt/etc/init.d/$script ]; then + echo "Target `pwd`../$script does not exist. Skipping links" + break + else + ln -sf ../init.d/$script /mnt/etc/$i + [ "$DEBUGLEVEL" == 5 ] && echo "Linked $script" + fi +done +} + +# group of functions for the normal runlevels - first parameter is start +# second stop + +# configure udev +config_udev () { + [ -c /dev/pktcdvd ] && { rm -rf /dev/pktcdvd; mkdir /dev/pktcdvd; } + if [ -f /mnt/etc/init.d/udev-finish ] ; then + rllinker "udev-finish" 24 2 + fi +} + +# function for ntp configuration +config_ntp () { +if [ -f /mnt/etc/init.d/ntp -a "x$start_ntp" != "xno" ] ; then + echo -e "ntp:x:74:65534:NTP daemon:/var/lib/ntp:/bin/false" \ + >>/mnt/etc/passwd + testmkd /mnt/var/lib/ntp/var/run/ntp + rllinker "ntp" 7 14 +fi +} +# function for atd +config_atd () { +if [ "x$start_atd" = "xyes" ]; then + # testmkd /mnt/var/spool/atjobs + # testmkd /mnt/var/spool/atspool + # chown 1:1 /mnt/var/spool/atjobs /mnt/var/spool/atspool + rllinker "atd" 14 4 +fi +} +# function for configuration of cron services (fixme: to be moved to a plugin?) +config_cron () { +if [ "x$start_cron" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/cron ] ; then + rllinker "cron" 18 2 + # fixme! check for proper permissions! + testmkd /mnt/var/spool/crontabs + echo -e "# /etc/crontab - file generated by $0:\n\ +#\t$date\nSHELL=/bin/sh\nPATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin\ +\nMAILTO=\n-*/15 * * * *\troot\ttest -x /usr/lib/cron/run-crons && \ +/usr/lib/cron/run-crons >/dev/null 2>&1\n" >/mnt/etc/crontab + else + error "$df_errcron" nonfatal + fi +fi +} +# secure shell service +config_sshd () { +if [ "x$start_sshd" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/ssh ] ; then + #testmkd /mnt/var/run/sshd + rllinker "ssh" 12 10 + else + error "$df_errsshd" nonfatal + fi +fi +} +# snmp agent for remote monitoring +config_snmp () { +if [ "x$start_snmp" = "xyes" ] ; then + if [ -f /mnt/etc/init.d/snmpd ] ; then + rllinker "snmpd" 24 2 + testmkd /mnt/var/lib/net-snmp + fi + # fixme!! + # write service monitor depending on services started + fi +} +# acpi and powersave +config_acpi () { + rllinker "acpid" 8 16 + #Commented out since battery checking is only useful for Notebooks + #rllinker "acpi-support" 99 2 +} +# configure hal, dbus, policykitd and services like that +config_dreshal () { +if [ "x$start_dreshal" = "xyes" ]; then + testmkd /mnt/var/lib/dbus + testmkd /mnt/var/lib/misc + testmkd /mnt/var/cache/hald + touch /mnt/var/lib/misc/PolicyKit.reload + chown root:polkituser /mnt/var/lib/misc/PolicyKit.reload + rm -rf /mnt/etc/dbus-1/system.d/*etwork*anager.conf \ + /mnt/etc/dbus-1/system.d/nm-* \ + /mnt/etc/dbus-1/event.d/*NetworkManager* + sed -i /mnt/etc/PolicyKit/PolicyKit.conf \ + -e "s/\(<\/config>\)/ @@new@@\n\1/" \ + -e "s/@@new@@/<match action=\"@@action@@\">\n@@return@@\n <\/match>/" \ + -e "s/@@action@@/org.freedesktop.hal.storage.mount-removable/" \ + -e "s/@@return@@/ <return result=\"yes\"\/>/" + sed -i /mnt/etc/dbus-1/system.d/hal.conf \ + -e "s/^\([^d]*\)deny\(.*Volume.*\)/\1allow\2/" + rllinker "dbus" 2 20 + rllinker "hal" 3 18 + if [ ! -e /mnt/etc/init.d/policykit ] ; then + testmkd /mnt/var/lib/PolicyKit root:polkituser 1770 + testmkd /mnt/var/lib/PolicyKit-public root:polkituser + else + rllinker "policykit" 18 10 + fi +fi +} + +# initialize boot.slx - skript to be executed during early system startup +# (before most of the normal boot init scripts) +# this script should operate like a normal runlevel script (fixme!!) +d_mkrlscript () { +local switch="$1" +local name="$2" +local info="$3" +case "$switch" in + init) + echo -e "#!/bin/sh\n# skeleton of /etc/init.d/$name written \ +from $0\n# after you applied changes to the creation scripts you have to \ +rerun\n# the mkdxsinitrd script to get them applied\n\n\ +. /lib/lsb/init-functions\n" >/mnt/etc/init.d/$name + echo -e "\n\ncase \"\$1\" in\n start)\n\tlog_begin_msg \"$info\"" \ + >>/mnt/etc/init.d/$name + chmod u+x /mnt/etc/init.d/$name + ;; + entry) + echo -e "\t${info}" >>/mnt/etc/init.d/${name} + ;; + close) + echo -e "\tlog_end_msg 0\n\t;;\n stop)\n\t;;\nesac\nexit 0" \ + >>/mnt/etc/init.d/$name + ;; +esac +} +# configure automounter +config_automount () { +if [ -f /mnt/etc/init.d/autofs ] ; then + testmkd /mnt/var/lock/subsys + sed -e "1i# /etc/default/autofs - file modified by\n#\t$0:\n#" \ + -e "s,TIMEOUT.*,TIMEOUT=60," -i /mnt/etc/default/autofs + config_portmap + rllinker "autofs" 12 4 + rllinker "nfs-common" 11 5 +fi +} +# start portmapper (needed at least for nfsN and nis services) +config_portmap () { + rllinker "portmap" 2 20 +} +# start NIS (fixme - does the service is really named ypbind??) +config_nis () { + if [ -f /mnt/etc/init.d/ypbind ] ; then + rllinker "ypbind" 6 16 + config_portmap + testmkd /mnt/var/yp/nicknames + else + error "$df_erryp" nonfatal + fi +} +# name service caching daemon (useful in most cases) +config_nscd () { + if [ -f /mnt/etc/init.d/nscd ] ; then + testmkd /mnt/var/cache/nscd + rllinker "nscd" 20 5 + fi +} diff --git a/src/initramfs/distro-specs/ubuntu/functions-9.10 b/src/initramfs/distro-specs/ubuntu/functions-9.10 new file mode 100644 index 00000000..28d1dba3 --- /dev/null +++ b/src/initramfs/distro-specs/ubuntu/functions-9.10 @@ -0,0 +1,16 @@ +# Copyright (c) 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 under http://openslx.org +# +# Configuration script for Ubuntu 9.10 configure OpenSLX Linux stateless +# clients (merged in stage2 with ubuntu/functions-default - and loaded within +# initial ramfs - stage3) It may overwrite settings from the default config +# file (/etc/functions) + +# no changes from default diff --git a/src/initramfs/distro-specs/ubuntu/functions-default b/src/initramfs/distro-specs/ubuntu/functions-default new file mode 100644 index 00000000..1fdbf6bb --- /dev/null +++ b/src/initramfs/distro-specs/ubuntu/functions-default @@ -0,0 +1,286 @@ +# 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 under http://openslx.org +# +# Configuration script for general Ubuntu to configure OpenSLX Linux +# stateless clients (executed within initial ramdisk after genconfig) + +# distro specific configuration variables used in the setup functions +# (formerly done via config-*, these variables are disputable ...) +# D_ETCEXCL - list of files, wildcards to be excluded from /etc when using +# bind mounts +# D_DIRINBINDMNT - lists of directories to be created in bind mounted rw part +# of the client filesystem +# D_RODIRSINRW - ReadOnly Directories in RW part of filesystem to save on +# TempFS usage +# D_DIRINDXS - directories in client filesystem which should be present anyhow +D_BINDMPTS="tmp root home media" +D_DIRINBINDMNT="/var/run /var/log /var/tmp /var/lib/gdm" +D_RODIRSINRW="/etc/X11/xkb /var/lib/gconf /var/lib/dpkg /var/lib/aspell \ +/var/lib/pango /var/lib/defoma /var/cache/fontconfig /var/lib/dkms" +D_DIRINDXS="/var/run/sysconfig/tmp /var/lib/nobody /var/lib/misc /var/lib/pam \ +/var/lib/bluetooth /var/lib/texmf /var/lib/nfs/sm /var/lib/acpi_support \ +/var/spool/cron /var/lib/alsa" + +# distro specific stuff to initialize +postinit () { + if [ $DEBUGLEVEL -gt 3 ]; then + export DEBUG_UPSTART=" -v --debug" + fi +} + +# distro specific function called from servconfig script +config_distro () { + # runlevel system changed significantly compared to pre 9.10 sys-v-init + # clean up nevertheless + for dir in rc0.d rc1.d rc2.d rc3.d rc4.d rc5.d rc6.d rcS.d ; do + rm -rf /mnt/etc/${dir}/* + done + # remove unneeded init scripts (stuff handled in stage3 which would + # interface with already existing setup) + # copy all event scripts to a special directory + testmkd /mnt/etc/init.inactive + echo -e "# This directory was created in OpenSLX stage3 and contains all \ +disabled\n# upstart scripts. They are moved by servconfig to init if this is \ +required." >/mnt/etc/init.inactive/README + mv /mnt/etc/init/* /mnt/etc/init.inactive + # remove plymouth component from *dm.conf (not needed with splashy) + sed "/# Check kernel c/,/done/d" -i /mnt/etc/init.inactive/*dm.conf + # copy initial upstart scripts back + for file in alsa-mixer-save control-alt-delete console-setup dbus \ + dmesg hwclock hwclock-save irqbalance module-init-tools \ + mountall mounted* networking procps rc* tty* udev* \ + upstart-udev-bridge ; do + mv /mnt/etc/init.inactive/${file}.conf /mnt/etc/init >/dev/null 2>&1 + done + + # remove annoying udev rule set for changing eth interface and cd/dvds + rm /mnt/etc/udev/rules.d/*persistent*.rules >/dev/null 2>&1 + + # for screen sessions + testmkd /mnt/var/run/screen root:utmp 0777 + + # apt stuff + testmkd /mnt/var/cache/apt/archives/partial + + # add the slx specific path (/var/opt/openslx/bin) to the PATH variable + echo -e "# stuff generated by $0 (out of InitRamFS written $date)\n\ +export PATH=\"\$PATH:/var/opt/openslx/bin\"" >>/mnt/etc/profile +} + +# initial boot looks different since ubuntu upstart +initial_boot () { + : +} + +# runlevel linker - mostly deprecated in the old form because of new upstart +# mechanism (with backward compatibility) +rllinker () { +local script="$1" +# activating the new way, check if a appropriate script is available, else +# try the traditional approach + +if [ -e /mnt/etc/init.inactive/${script}.conf -o -e /mnt/etc/init/${script}.conf ]; then + # we have upstart scripts + if [ -e /mnt/etc/init.inactive/${script}.conf ] ; then + mv /mnt/etc/init.inactive/${script}.conf /mnt/etc/init + fi +elif [ -e /mnt/etc/init.d/${script} ]; then + # we old rc scripts + if [ -e /mnt/etc/init.d/${script} -a -n "$1" -a -n "$2" ] ; then + if [ $2 -lt 10 ] ; then + local start="0$2"; else local start="$2" + fi + if [ $3 -lt 10 ] ; then + local stop="0$3"; else local stop="$3" + fi + for i in rc2.d/K$stop$script rc3.d/K$stop$script \ + rc2.d/S$start$script rc3.d/S$start$script ; do + ln -sf ../init.d/$script /mnt/etc/$i + [ "$DEBUGLEVEL" == 5 ] && echo "Linked $script" + done + fi +else + error "Script: ${script} does not exist. Skipping setup of startscipts/events.." nonfatal +fi + +} + +# set up localization like keytable, console +dlocale () { +# fixme -- use keytable setup script here +# echo -e "\t# entries added by $0: $date" >> /mnt/etc/init.d/boot.slx +sed -e "1i# File modified during SLX stage3 bootup (config_distro)" \ + -e "s/LANG.*/LANG=\"${LANG}\"/" -i /mnt/etc/default/locale +} + +# function for ntp configuration +config_ntp () { +if [ -f /mnt/etc/init.d/ntp -a "x$start_ntp" != "xno" ] ; then + echo -e "ntp:x:74:65534:NTP daemon:/var/lib/ntp:/bin/false" \ + >>/mnt/etc/passwd + testmkd /mnt/var/lib/ntp/var/run/ntp + +fi +} +# function for atd +config_atd () { +if [ "x$start_atd" = "xyes" ]; then + # testmkd /mnt/var/spool/atjobs + # testmkd /mnt/var/spool/atspool + # chown 1:1 /mnt/var/spool/atjobs /mnt/var/spool/atspool + if [ -f /mnt/etc/init.inactive/atd ] ; then + mv /mnt/etc/init.inactive/atd /mnt/etc/init + else + error "$df_erratd" nonfatal + fi +fi +} +# function for configuration of cron services (fixme: to be moved to a plugin?) +config_cron () { +if [ "x$start_cron" = "xyes" ] ; then + if [ -f /mnt/etc/init.inactive/anacron ] ; then + mv /mnt/etc/init.inactive/anacron /mnt/etc/init + # fixme! check for proper permissions! + testmkd /mnt/var/spool/crontabs + echo -e "# /etc/crontab - file generated by $0:\n\ +#\t$date\nSHELL=/bin/sh\nPATH=/usr/bin:/usr/sbin:/sbin:/bin:/usr/lib/news/bin\ +\nMAILTO=\n-*/15 * * * *\troot\ttest -x /usr/lib/cron/run-crons && \ +/usr/lib/cron/run-crons >/dev/null 2>&1\n" >/mnt/etc/crontab + else + error "$df_errcron" nonfatal + fi +fi +} +# secure shell service +config_sshd () { +if [ "x$start_sshd" = "xyes" ] ; then + if [ -f /mnt/etc/init.inactive/ssh.conf ] ; then + testmkd /mnt/var/run/sshd + mv /mnt/etc/init.inactive/ssh.conf /mnt/etc/init + else + error "$df_errsshd" nonfatal + fi +fi +} +# snmp agent for remote monitoring (upstart functionality unchecked) +config_snmp () { +if [ "x$start_snmp" = "xyes" ] ; then + if [ -f /mnt/etc/init.inactive/snmpd.conf ] ; then + testmkd /mnt/var/lib/net-snmp + mv /mnt/etc/init.inactive/snmpd.conf /mnt/etc/init + else + # fixme!! + # write service monitor depending on services started + : + fi +fi +} +# acpi and powersave +config_acpi () { + if [ -f /mnt/etc/init.inactive/acpid.conf ] ; then + mv /mnt/etc/init.inactive/acpid.conf /mnt/etc/init + else + # fixme!! + # write service monitor depending on services started + : + fi +} +# configure hal, dbus, policykitd and services like that +config_dreshal () { +if [ "x$start_dreshal" = "xyes" ]; then + testmkd /mnt/var/lib/dbus + testmkd /mnt/var/lib/misc + testmkd /mnt/var/cache/hald + rm -rf /mnt/etc/dbus-1/system.d/*etwork*anager.conf \ + /mnt/etc/dbus-1/system.d/nm-* \ + /mnt/etc/dbus-1/event.d/*NetworkManager* + sed -i /mnt/etc/dbus-1/system.d/hal.conf \ + -e "s/^\([^d]*\)deny\(.*Volume.*\)/\1allow\2/" + for dir in 10-vendor.d 20-org.d 30-site.d 50-local.d 90-mandatory.d ; do + testmkd /mnt/var/lib/polkit-1/localauthority/${dir} + done +fi +} + +# initialize boot.slx - skript to be executed during early system startup +# (before most of the normal boot init scripts) +# this script should operate like a normal runlevel script (fixme!!) +d_mkrlscript () { +local switch="$1" +local name="$2" +local info="$3" +# ToDo: needs to be adapted to upstart mechanism +case "$switch" in + init) + echo -e "#!/bin/sh\n# skeleton of /etc/init.d/$name written \ +from $0\n# after you applied changes to the creation scripts you have to \ +rerun\n# the mkdxsinitrd script to get them applied\n\n\ +. /lib/lsb/init-functions\n" >/mnt/etc/init.d/$name + echo -e "\n\ncase \"\$1\" in\n start)\n\tlog_begin_msg \"$info\"" \ + >>/mnt/etc/init.d/$name + chmod u+x /mnt/etc/init.d/$name + ;; + entry) + echo -e "\t${info}" >>/mnt/etc/init.d/${name} + ;; + close) + echo -e "\tlog_end_msg 0\n\t;;\n stop)\n\t;;\nesac\nexit 0" \ + >>/mnt/etc/init.d/$name + ;; +esac +} +# configure automounter (unchecked) +config_automount () { +if [ -f /mnt/etc/init.inactive/autofs.conf ] ; then + mv /mnt/etc/init.inactive/autofs.conf /mnt/etc/init + testmkd /mnt/var/lock/subsys + sed -e "1i# /etc/default/autofs - file modified by\n#\t$0:\n#" \ + -e "s,TIMEOUT.*,TIMEOUT=60," -i /mnt/etc/default/autofs + config_portmap + config_nfs +fi +} +# start portmapper (needed at least for nfsN and nis services) +config_portmap () { +if [ -f /mnt/etc/init.inactive/portmap.conf ]; then + mv /mnt/etc/init.inactive/portmap.conf /mnt/etc/init + mv /mnt/etc/init.inactive/statd.conf /mnt/etc/init +else + error "$df_errpmap" nonfatal +fi +} +# mostly unused yet (needs to be properly integrated) +config_nfs () { + [ -e /mnt/etc/init.inactive/gssd.conf ] && \ + mv /mnt/etc/init.inactive/gssd.conf /mnt/etc/init + [ -e /mnt/etc/init.inactive/rpc_pipefs.conf ] && \ + mv /mnt/etc/init.inactive/rpc_pipefs.conf /mnt/etc/init + [ -e /mnt/etc/init.inactive/idmapd.conf ] && \ + mv /mnt/etc/init.inactive/idmapd.conf /mnt/etc/init +} + +# start NIS (unchecked!! fixme - does the service is really named ypbind??) +config_nis () { + if [ -f /mnt/etc/init.inactive/ypbind.conf ] ; then + mv /mnt/etc/init.inactive/ypbind.conf /mnt/etc/init + config_portmap + testmkd /mnt/var/yp/nicknames + else + error "$df_erryp" nonfatal + fi +} +# name service caching daemon (really existing!?) +config_nscd () { + #if [ -f /mnt/etc/init.inactive/nscd.conf ] ; then + # testmkd /mnt/var/cache/nscd + #fi + : +} diff --git a/src/initramfs/eglibc-packages/compcache/usr/bin/rzscontrol b/src/initramfs/eglibc-packages/compcache/usr/bin/rzscontrol Binary files differnew file mode 100755 index 00000000..0d7f2702 --- /dev/null +++ b/src/initramfs/eglibc-packages/compcache/usr/bin/rzscontrol diff --git a/src/initramfs/eglibc-packages/hwinfo/lib/libdbus-1.so.3 b/src/initramfs/eglibc-packages/hwinfo/lib/libdbus-1.so.3 Binary files differnew file mode 100644 index 00000000..526f06dc --- /dev/null +++ b/src/initramfs/eglibc-packages/hwinfo/lib/libdbus-1.so.3 diff --git a/src/initramfs/eglibc-packages/hwinfo/lib/librt.so.1 b/src/initramfs/eglibc-packages/hwinfo/lib/librt.so.1 Binary files differnew file mode 100644 index 00000000..fbea0db1 --- /dev/null +++ b/src/initramfs/eglibc-packages/hwinfo/lib/librt.so.1 diff --git a/src/initramfs/eglibc-packages/hwinfo/usr/lib/libhal.so.1 b/src/initramfs/eglibc-packages/hwinfo/usr/lib/libhal.so.1 Binary files differnew file mode 100644 index 00000000..8db463f0 --- /dev/null +++ b/src/initramfs/eglibc-packages/hwinfo/usr/lib/libhal.so.1 diff --git a/src/initramfs/eglibc-packages/hwinfo/usr/lib/libhd.so.16 b/src/initramfs/eglibc-packages/hwinfo/usr/lib/libhd.so.16 Binary files differnew file mode 100644 index 00000000..3fd68f29 --- /dev/null +++ b/src/initramfs/eglibc-packages/hwinfo/usr/lib/libhd.so.16 diff --git a/src/initramfs/eglibc-packages/hwinfo/usr/sbin/hwinfo b/src/initramfs/eglibc-packages/hwinfo/usr/sbin/hwinfo Binary files differnew file mode 100755 index 00000000..5dbe48a4 --- /dev/null +++ b/src/initramfs/eglibc-packages/hwinfo/usr/sbin/hwinfo diff --git a/src/initramfs/eglibc-packages/mksquashfs/lib/libm.so.6 b/src/initramfs/eglibc-packages/mksquashfs/lib/libm.so.6 Binary files differnew file mode 100644 index 00000000..0e557bfe --- /dev/null +++ b/src/initramfs/eglibc-packages/mksquashfs/lib/libm.so.6 diff --git a/src/initramfs/eglibc-packages/mksquashfs/lib/libpthread.so.0 b/src/initramfs/eglibc-packages/mksquashfs/lib/libpthread.so.0 Binary files differnew file mode 100755 index 00000000..55de7d33 --- /dev/null +++ b/src/initramfs/eglibc-packages/mksquashfs/lib/libpthread.so.0 diff --git a/src/initramfs/eglibc-packages/mksquashfs/usr/bin/mksquashfs_3_3 b/src/initramfs/eglibc-packages/mksquashfs/usr/bin/mksquashfs_3_3 Binary files differnew file mode 100755 index 00000000..0f4efdc8 --- /dev/null +++ b/src/initramfs/eglibc-packages/mksquashfs/usr/bin/mksquashfs_3_3 diff --git a/src/initramfs/eglibc-packages/mksquashfs/usr/bin/mksquashfs_4 b/src/initramfs/eglibc-packages/mksquashfs/usr/bin/mksquashfs_4 Binary files differnew file mode 100755 index 00000000..b40e6e42 --- /dev/null +++ b/src/initramfs/eglibc-packages/mksquashfs/usr/bin/mksquashfs_4 diff --git a/src/initramfs/eglibc-packages/nbd-client/sbin/nbd-client b/src/initramfs/eglibc-packages/nbd-client/sbin/nbd-client Binary files differnew file mode 100755 index 00000000..634e6ff3 --- /dev/null +++ b/src/initramfs/eglibc-packages/nbd-client/sbin/nbd-client diff --git a/src/initramfs/eglibc-packages/plymouth/bin/plymouth b/src/initramfs/eglibc-packages/plymouth/bin/plymouth Binary files differnew file mode 100755 index 00000000..a8a5a638 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/bin/plymouth diff --git a/src/initramfs/eglibc-packages/plymouth/lib/libply-splash-core.so.2 b/src/initramfs/eglibc-packages/plymouth/lib/libply-splash-core.so.2 Binary files differnew file mode 100644 index 00000000..875479cb --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/lib/libply-splash-core.so.2 diff --git a/src/initramfs/eglibc-packages/plymouth/lib/libply.so.2 b/src/initramfs/eglibc-packages/plymouth/lib/libply.so.2 Binary files differnew file mode 100644 index 00000000..14532e2b --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/lib/libply.so.2 diff --git a/src/initramfs/eglibc-packages/plymouth/lib/librt.so.1 b/src/initramfs/eglibc-packages/plymouth/lib/librt.so.1 Binary files differnew file mode 100644 index 00000000..fbea0db1 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/lib/librt.so.1 diff --git a/src/initramfs/eglibc-packages/plymouth/sbin/plymouthd b/src/initramfs/eglibc-packages/plymouth/sbin/plymouthd Binary files differnew file mode 100755 index 00000000..c1876a3e --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/sbin/plymouthd diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/details/details.plymouth b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/details/details.plymouth new file mode 100644 index 00000000..bd849642 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/details/details.plymouth @@ -0,0 +1,4 @@ +[Plymouth Theme] +Name=Details +Description=Verbose fallback theme +ModuleName=details diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/fade-in/bullet.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/fade-in/bullet.png Binary files differnew file mode 100644 index 00000000..dd527369 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/fade-in/bullet.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/fade-in/entry.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/fade-in/entry.png Binary files differnew file mode 100644 index 00000000..a9f4157b --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/fade-in/entry.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/fade-in/fade-in.plymouth b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/fade-in/fade-in.plymouth new file mode 100644 index 00000000..e90b94e9 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/fade-in/fade-in.plymouth @@ -0,0 +1,7 @@ +[Plymouth Theme] +Name=Fade In +Description=Simple theme that fades in and out with shimmering stars +ModuleName=fade-throbber + +[fade-throbber] +ImageDir=/usr/share/plymouth/themes/fade-in diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/fade-in/lock.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/fade-in/lock.png Binary files differnew file mode 100644 index 00000000..7ddd3751 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/fade-in/lock.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/fade-in/star.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/fade-in/star.png Binary files differnew file mode 100644 index 00000000..8d175cac --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/fade-in/star.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/box.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/box.png Binary files differnew file mode 100644 index 00000000..54876e68 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/box.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/bullet.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/bullet.png Binary files differnew file mode 100644 index 00000000..87ddfe81 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/bullet.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/entry.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/entry.png Binary files differnew file mode 100644 index 00000000..37217b63 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/entry.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/glow.plymouth b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/glow.plymouth new file mode 100644 index 00000000..38cbafba --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/glow.plymouth @@ -0,0 +1,11 @@ +[Plymouth Theme] +Name=Bizcom Glow +Description=Corporate theme with pie chart boot progress followed by a glowing emerging logo +ModuleName=two-step + +[two-step] +ImageDir=/usr/share/plymouth/themes/glow +HorizontalAlignment=.25 +VerticalAlignment=.5 +Transition=merge-fade +TransitionDuration=.5 diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/lock.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/lock.png Binary files differnew file mode 100644 index 00000000..a0f8c12f --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/lock.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-00.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-00.png Binary files differnew file mode 100644 index 00000000..9f94fc01 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-00.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-01.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-01.png Binary files differnew file mode 100644 index 00000000..b00035d5 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-01.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-02.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-02.png Binary files differnew file mode 100644 index 00000000..872da19d --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-02.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-03.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-03.png Binary files differnew file mode 100644 index 00000000..24f32ff5 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-03.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-04.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-04.png Binary files differnew file mode 100644 index 00000000..da1ecbd4 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-04.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-05.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-05.png Binary files differnew file mode 100644 index 00000000..38721afe --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-05.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-06.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-06.png Binary files differnew file mode 100644 index 00000000..3efdca73 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-06.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-07.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-07.png Binary files differnew file mode 100644 index 00000000..53277ed0 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-07.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-08.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-08.png Binary files differnew file mode 100644 index 00000000..db0b570a --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-08.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-09.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-09.png Binary files differnew file mode 100644 index 00000000..14c20559 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-09.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-10.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-10.png Binary files differnew file mode 100644 index 00000000..c522bc5c --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-10.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-11.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-11.png Binary files differnew file mode 100644 index 00000000..30171ec2 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-11.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-12.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-12.png Binary files differnew file mode 100644 index 00000000..b920cb17 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-12.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-13.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-13.png Binary files differnew file mode 100644 index 00000000..c697003c --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-13.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-14.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-14.png Binary files differnew file mode 100644 index 00000000..02b7d07d --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-14.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-15.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-15.png Binary files differnew file mode 100644 index 00000000..533ceb0d --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-15.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-16.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-16.png Binary files differnew file mode 100644 index 00000000..7039f4fd --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-16.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-17.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-17.png Binary files differnew file mode 100644 index 00000000..210c9173 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-17.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-18.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-18.png Binary files differnew file mode 100644 index 00000000..f36be2c8 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-18.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-19.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-19.png Binary files differnew file mode 100644 index 00000000..b44475b8 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-19.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-20.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-20.png Binary files differnew file mode 100644 index 00000000..45d275b7 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-20.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-21.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-21.png Binary files differnew file mode 100644 index 00000000..641ba2f9 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-21.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-22.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-22.png Binary files differnew file mode 100644 index 00000000..9805103b --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-22.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-23.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-23.png Binary files differnew file mode 100644 index 00000000..d8a41a54 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-23.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-24.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-24.png Binary files differnew file mode 100644 index 00000000..ac25bdcf --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-24.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-25.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-25.png Binary files differnew file mode 100644 index 00000000..66cd03d9 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-25.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-26.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-26.png Binary files differnew file mode 100644 index 00000000..e19fb685 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-26.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-27.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-27.png Binary files differnew file mode 100644 index 00000000..d875c3a5 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-27.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-28.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-28.png Binary files differnew file mode 100644 index 00000000..dd2a1a3c --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-28.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-29.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-29.png Binary files differnew file mode 100644 index 00000000..4d8b3494 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-29.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-30.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-30.png Binary files differnew file mode 100644 index 00000000..7ea1544c --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-30.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-31.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-31.png Binary files differnew file mode 100644 index 00000000..73e85d26 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-31.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-32.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-32.png Binary files differnew file mode 100644 index 00000000..914bc6dc --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/progress-32.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-00.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-00.png Binary files differnew file mode 100644 index 00000000..6eed4b4f --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-00.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-01.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-01.png Binary files differnew file mode 100644 index 00000000..3bc8747b --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-01.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-02.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-02.png Binary files differnew file mode 100644 index 00000000..d14f24cf --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-02.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-03.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-03.png Binary files differnew file mode 100644 index 00000000..aa5554c1 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-03.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-04.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-04.png Binary files differnew file mode 100644 index 00000000..02a42c23 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-04.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-05.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-05.png Binary files differnew file mode 100644 index 00000000..08d30cff --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-05.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-06.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-06.png Binary files differnew file mode 100644 index 00000000..1b3c0b93 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-06.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-07.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-07.png Binary files differnew file mode 100644 index 00000000..cf6b61dc --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-07.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-08.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-08.png Binary files differnew file mode 100644 index 00000000..fa62c8c2 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-08.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-09.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-09.png Binary files differnew file mode 100644 index 00000000..70094674 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-09.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-10.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-10.png Binary files differnew file mode 100644 index 00000000..f145d643 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-10.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-11.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-11.png Binary files differnew file mode 100644 index 00000000..d7d0c433 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-11.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-12.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-12.png Binary files differnew file mode 100644 index 00000000..f161c67c --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-12.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-13.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-13.png Binary files differnew file mode 100644 index 00000000..334f78d7 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-13.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-14.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-14.png Binary files differnew file mode 100644 index 00000000..535f7ea7 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-14.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-15.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-15.png Binary files differnew file mode 100644 index 00000000..3291f07c --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-15.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-16.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-16.png Binary files differnew file mode 100644 index 00000000..b8557916 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-16.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-17.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-17.png Binary files differnew file mode 100644 index 00000000..e9148416 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-17.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-18.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-18.png Binary files differnew file mode 100644 index 00000000..3ae351a0 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-18.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-19.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-19.png Binary files differnew file mode 100644 index 00000000..2a27b62d --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/glow/throbber-19.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/box.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/box.png Binary files differnew file mode 100644 index 00000000..54876e68 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/box.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/bullet.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/bullet.png Binary files differnew file mode 100644 index 00000000..dd527369 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/bullet.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/entry.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/entry.png Binary files differnew file mode 100644 index 00000000..a9f4157b --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/entry.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/lock.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/lock.png Binary files differnew file mode 100644 index 00000000..a0f8c12f --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/lock.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/progress_bar.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/progress_bar.png Binary files differnew file mode 100644 index 00000000..dd1e747a --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/progress_bar.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/progress_box.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/progress_box.png Binary files differnew file mode 100644 index 00000000..c485cfbc --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/progress_box.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/script.plymouth b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/script.plymouth new file mode 100644 index 00000000..1ee47bda --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/script.plymouth @@ -0,0 +1,11 @@ +[Plymouth Theme] +Name=Script +Description=Script example plugin. +ModuleName=script + +[script] +ImageDir=/usr/share/plymouth/themes/script +ScriptFile=/usr/share/plymouth/themes/script/script.script + +[script-env-vars] +example_env_var=example env var value diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/script.script b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/script.script new file mode 100644 index 00000000..ed54a010 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/script/script.script @@ -0,0 +1,164 @@ +# This is an example plymouth plugin script + +Window.SetBackgroundTopColor(0.234, 0.43, 0.705); +Window.SetBackgroundBottomColor(0.16, 0.25, 0.44); + +logo.image = Image("special://logo"); +logo.sprite = Sprite(logo.image); +logo.opacity_angle = 0; + +fun refresh_callback () + { + if (status == "normal") + { + logo.opacity_angle += ((2 * 3.14) / 50) * 0.5; # 0.5 HZ + min_opacity = 0.3; + opacity = (Math.Cos(logo.opacity_angle) + 1) / 2; + opacity *= 1 - min_opacity; + opacity += min_opacity; + logo.sprite.SetX (Window.GetX() + Window.GetWidth() / 2 - logo.image.GetWidth() / 2); + logo.sprite.SetY (Window.GetY() + Window.GetHeight() / 2 - logo.image.GetHeight() / 2); + logo.sprite.SetOpacity (opacity); + } + else + { + logo.sprite.SetX (0); + logo.sprite.SetY (0); + logo.sprite.SetOpacity (1); + } + } + +Plymouth.SetRefreshFunction (refresh_callback); + +#----------------------------------------- Dialogue -------------------------------- + +status = "normal"; + +fun dialog_setup() + { + local.box; + local.lock; + local.entry; + + box.image = Image("box.png"); + lock.image = Image("lock.png"); + entry.image = Image("entry.png"); + + box.sprite = Sprite(box.image); + box.x = Window.GetX() + Window.GetWidth() / 2 - box.image.GetWidth ()/2; + box.y = Window.GetY() + Window.GetHeight() / 2 - box.image.GetHeight()/2; + box.z = 10000; + box.sprite.SetPosition(box.x, box.y, box.z); + + lock.sprite = Sprite(lock.image); + lock.x = box.x + box.image.GetWidth()/2 - (lock.image.GetWidth() + entry.image.GetWidth()) / 2; + lock.y = box.y + box.image.GetHeight()/2 - lock.image.GetHeight()/2; + lock.z = box.z + 1; + lock.sprite.SetPosition(lock.x, lock.y, lock.z); + + entry.sprite = Sprite(entry.image); + entry.x = lock.x + lock.image.GetWidth(); + entry.y = box.y + box.image.GetHeight()/2 - entry.image.GetHeight()/2; + entry.z = box.z + 1; + entry.sprite.SetPosition(entry.x, entry.y, entry.z); + + global.dialog.box = box; + global.dialog.lock = lock; + global.dialog.entry = entry; + global.dialog.bullet_image = Image("bullet.png"); + dialog_opacity (1); + } + +fun dialog_opacity(opacity) + { + dialog.box.sprite.SetOpacity (opacity); + dialog.lock.sprite.SetOpacity (opacity); + dialog.entry.sprite.SetOpacity (opacity); + for (index = 0; dialog.bullet[index]; index++) + { + dialog.bullet[index].sprite.SetOpacity(opacity); + } + } + +fun display_normal_callback () + { + global.status = "normal"; + if (global.dialog) + dialog_opacity (0); + } + +fun display_password_callback (prompt, bullets) + { + global.status = "password"; + if (!global.dialog) + dialog_setup(); + else + dialog_opacity(1); + for (index = 0; dialog.bullet[index] || index < bullets; index++) + { + if (!dialog.bullet[index]) + { + dialog.bullet[index].sprite = Sprite(dialog.bullet_image); + dialog.bullet[index].x = dialog.entry.x + index * dialog.bullet_image.GetWidth(); + dialog.bullet[index].y = dialog.entry.y + dialog.entry.image.GetHeight() / 2 - dialog.bullet_image.GetHeight() / 2; + dialog.bullet[index].z = dialog.entry.z + 1; + dialog.bullet[index].sprite.SetPosition(dialog.bullet[index].x, dialog.bullet[index].y, dialog.bullet[index].z); + } + if (index < bullets) + dialog.bullet[index].sprite.SetOpacity(1); + else + dialog.bullet[index].sprite.SetOpacity(0); + } + } + +Plymouth.SetDisplayNormalFunction(display_normal_callback); +Plymouth.SetDisplayPasswordFunction(display_password_callback); + +#----------------------------------------- Progress Bar -------------------------------- + +progress_box.image = Image("progress_box.png"); +progress_box.sprite = Sprite(progress_box.image); + +progress_box.x = Window.GetX() + Window.GetWidth() / 2 - progress_box.image.GetWidth() / 2; +progress_box.y = Window.GetY() + Window.GetHeight() * 0.75 - progress_box.image.GetHeight() / 2; +progress_box.sprite.SetPosition(progress_box.x, progress_box.y, 0); + +progress_bar.original_image = Image("progress_bar.png"); +progress_bar.sprite = Sprite(); + +progress_bar.x = Window.GetX() + Window.GetWidth() / 2 - progress_bar.original_image.GetWidth() / 2; +progress_bar.y = Window.GetY() + Window.GetHeight() / 2 * 1.5 - progress_box.image.GetHeight() / 2 + (progress_box.image.GetHeight() - progress_bar.original_image.GetHeight()) / 2; +progress_bar.sprite.SetPosition(progress_bar.x, progress_bar.y, 1); + +fun progress_callback (duration, progress) + { + if (progress_bar.image.GetWidth () != Math.Int (progress_bar.original_image.GetWidth () * progress)) + { + progress_bar.image = progress_bar.original_image.Scale(progress_bar.original_image.GetWidth(progress_bar.original_image) * progress, progress_bar.original_image.GetHeight()); + progress_bar.sprite.SetImage (progress_bar.image); + } + } + +Plymouth.SetBootProgressFunction(progress_callback); + +#----------------------------------------- Quit -------------------------------- + +fun quit_callback () +{ + logo.sprite.SetOpacity (1); +} + +Plymouth.SetQuitFunction(quit_callback); + +#----------------------------------------- Message -------------------------------- + +message_sprite = Sprite(); +message_sprite.SetPosition(10, 10, 10000); + +fun message_callback (text) +{ + my_image = Image.Text(text, 1, 1, 1); + message_sprite.SetImage(my_image); +} + +Plymouth.SetMessageFunction(message_callback); diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/box.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/box.png Binary files differnew file mode 100644 index 00000000..54876e68 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/box.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/bullet.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/bullet.png Binary files differnew file mode 100644 index 00000000..dd527369 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/bullet.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/entry.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/entry.png Binary files differnew file mode 100644 index 00000000..a9f4157b --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/entry.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/lock.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/lock.png Binary files differnew file mode 100644 index 00000000..a0f8c12f --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/lock.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/progress_bar.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/progress_bar.png Binary files differnew file mode 100644 index 00000000..b520bc3a --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/progress_bar.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/solar.plymouth b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/solar.plymouth new file mode 100644 index 00000000..13d25f8d --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/solar.plymouth @@ -0,0 +1,7 @@ +[Plymouth Theme] +Name=Solar +Description=Space theme with violent flaring blue star +ModuleName=space-flares + +[space-flares] +ImageDir=/usr/share/plymouth/themes/solar diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/star.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/star.png Binary files differnew file mode 100644 index 00000000..f4467ed5 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/solar/star.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/box.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/box.png Binary files differnew file mode 100644 index 00000000..54876e68 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/box.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/bullet.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/bullet.png Binary files differnew file mode 100644 index 00000000..dd527369 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/bullet.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/entry.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/entry.png Binary files differnew file mode 100644 index 00000000..a9f4157b --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/entry.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/lock.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/lock.png Binary files differnew file mode 100644 index 00000000..a0f8c12f --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/lock.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/spinfinity.plymouth b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/spinfinity.plymouth new file mode 100644 index 00000000..f2baf3f8 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/spinfinity.plymouth @@ -0,0 +1,7 @@ +[Plymouth Theme] +Name=Spinfinity +Description=Simple theme that shows a rotating infinity sign in the center of the screen +ModuleName=throbgress + +[throbgress] +ImageDir=/usr/share/plymouth/themes/spinfinity diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-00.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-00.png Binary files differnew file mode 100644 index 00000000..5ca64413 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-00.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-01.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-01.png Binary files differnew file mode 100644 index 00000000..dac708be --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-01.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-02.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-02.png Binary files differnew file mode 100644 index 00000000..68aa2d21 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-02.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-03.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-03.png Binary files differnew file mode 100644 index 00000000..ec63a382 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-03.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-04.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-04.png Binary files differnew file mode 100644 index 00000000..876bf373 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-04.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-05.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-05.png Binary files differnew file mode 100644 index 00000000..fa909b97 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-05.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-06.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-06.png Binary files differnew file mode 100644 index 00000000..3d446354 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-06.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-07.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-07.png Binary files differnew file mode 100644 index 00000000..b932c68b --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-07.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-08.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-08.png Binary files differnew file mode 100644 index 00000000..920c8dbd --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-08.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-09.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-09.png Binary files differnew file mode 100644 index 00000000..b4526956 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-09.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-10.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-10.png Binary files differnew file mode 100644 index 00000000..99377a90 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-10.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-11.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-11.png Binary files differnew file mode 100644 index 00000000..3bd36a9e --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-11.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-12.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-12.png Binary files differnew file mode 100644 index 00000000..da6ce584 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-12.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-13.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-13.png Binary files differnew file mode 100644 index 00000000..58cd02f9 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-13.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-14.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-14.png Binary files differnew file mode 100644 index 00000000..b43aef1a --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-14.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-15.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-15.png Binary files differnew file mode 100644 index 00000000..8eb06d8f --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-15.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-16.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-16.png Binary files differnew file mode 100644 index 00000000..0689f510 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-16.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-17.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-17.png Binary files differnew file mode 100644 index 00000000..db78d6b6 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-17.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-18.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-18.png Binary files differnew file mode 100644 index 00000000..29967543 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-18.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-19.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-19.png Binary files differnew file mode 100644 index 00000000..66b17fe0 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-19.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-20.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-20.png Binary files differnew file mode 100644 index 00000000..1af7efcf --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-20.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-21.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-21.png Binary files differnew file mode 100644 index 00000000..661c0a32 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-21.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-22.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-22.png Binary files differnew file mode 100644 index 00000000..fbd0379e --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-22.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-23.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-23.png Binary files differnew file mode 100644 index 00000000..4fda936d --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-23.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-24.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-24.png Binary files differnew file mode 100644 index 00000000..8be2bc0a --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-24.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-25.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-25.png Binary files differnew file mode 100644 index 00000000..2009b4bd --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-25.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-26.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-26.png Binary files differnew file mode 100644 index 00000000..531a39d0 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-26.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-27.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-27.png Binary files differnew file mode 100644 index 00000000..51a9b688 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-27.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-28.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-28.png Binary files differnew file mode 100644 index 00000000..1f598586 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-28.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-29.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-29.png Binary files differnew file mode 100644 index 00000000..10143567 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-29.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-30.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-30.png Binary files differnew file mode 100644 index 00000000..652bdef4 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-30.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-31.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-31.png Binary files differnew file mode 100644 index 00000000..6792bc8f --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-31.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-32.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-32.png Binary files differnew file mode 100644 index 00000000..232c05bf --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-32.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-33.png b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-33.png Binary files differnew file mode 100644 index 00000000..b9836fef --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/spinfinity/throbber-33.png diff --git a/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/text/text.plymouth b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/text/text.plymouth new file mode 100644 index 00000000..a2db9e68 --- /dev/null +++ b/src/initramfs/eglibc-packages/plymouth/usr/share/plymouth/themes/text/text.plymouth @@ -0,0 +1,4 @@ +[Plymouth Theme] +Name=Text +Description=Text mode theme with tricolor progress bar +ModuleName=text diff --git a/src/initramfs/eglibc-packages/strace/usr/bin/strace b/src/initramfs/eglibc-packages/strace/usr/bin/strace Binary files differnew file mode 100755 index 00000000..efe78e71 --- /dev/null +++ b/src/initramfs/eglibc-packages/strace/usr/bin/strace diff --git a/src/initramfs/eglibc-rootfs/bin/ash b/src/initramfs/eglibc-rootfs/bin/ash new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/ash @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/bash b/src/initramfs/eglibc-rootfs/bin/bash new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/bash @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/busybox b/src/initramfs/eglibc-rootfs/bin/busybox Binary files differnew file mode 100755 index 00000000..fa652e7b --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/busybox diff --git a/src/initramfs/eglibc-rootfs/bin/cat b/src/initramfs/eglibc-rootfs/bin/cat new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/cat @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/chgrp b/src/initramfs/eglibc-rootfs/bin/chgrp new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/chgrp @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/chmod b/src/initramfs/eglibc-rootfs/bin/chmod new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/chmod @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/chown b/src/initramfs/eglibc-rootfs/bin/chown new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/chown @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/cp b/src/initramfs/eglibc-rootfs/bin/cp new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/cp @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/cpio b/src/initramfs/eglibc-rootfs/bin/cpio new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/cpio @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/cttyhack b/src/initramfs/eglibc-rootfs/bin/cttyhack new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/cttyhack @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/date b/src/initramfs/eglibc-rootfs/bin/date new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/date @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/dd b/src/initramfs/eglibc-rootfs/bin/dd new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/dd @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/df b/src/initramfs/eglibc-rootfs/bin/df new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/df @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/dmesg b/src/initramfs/eglibc-rootfs/bin/dmesg new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/dmesg @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/echo b/src/initramfs/eglibc-rootfs/bin/echo new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/echo @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/egrep b/src/initramfs/eglibc-rootfs/bin/egrep new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/egrep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/false b/src/initramfs/eglibc-rootfs/bin/false new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/false @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/grep b/src/initramfs/eglibc-rootfs/bin/grep new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/grep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/gunzip b/src/initramfs/eglibc-rootfs/bin/gunzip new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/gunzip @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/gzip b/src/initramfs/eglibc-rootfs/bin/gzip new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/gzip @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/ip b/src/initramfs/eglibc-rootfs/bin/ip new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/ip @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/ipcalc b/src/initramfs/eglibc-rootfs/bin/ipcalc new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/ipcalc @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/kill b/src/initramfs/eglibc-rootfs/bin/kill new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/kill @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/ln b/src/initramfs/eglibc-rootfs/bin/ln new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/ln @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/ls b/src/initramfs/eglibc-rootfs/bin/ls new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/ls @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/mkdir b/src/initramfs/eglibc-rootfs/bin/mkdir new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/mkdir @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/mknod b/src/initramfs/eglibc-rootfs/bin/mknod new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/mknod @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/mount b/src/initramfs/eglibc-rootfs/bin/mount new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/mount @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/mv b/src/initramfs/eglibc-rootfs/bin/mv new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/mv @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/nice b/src/initramfs/eglibc-rootfs/bin/nice new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/nice @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/pidof b/src/initramfs/eglibc-rootfs/bin/pidof new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/pidof @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/ping b/src/initramfs/eglibc-rootfs/bin/ping new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/ping @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/ps b/src/initramfs/eglibc-rootfs/bin/ps new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/ps @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/pwd b/src/initramfs/eglibc-rootfs/bin/pwd new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/pwd @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/rev b/src/initramfs/eglibc-rootfs/bin/rev new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/rev @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/rm b/src/initramfs/eglibc-rootfs/bin/rm new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/rm @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/sed b/src/initramfs/eglibc-rootfs/bin/sed new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/sed @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/sh b/src/initramfs/eglibc-rootfs/bin/sh new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/sh @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/sleep b/src/initramfs/eglibc-rootfs/bin/sleep new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/sleep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/sync b/src/initramfs/eglibc-rootfs/bin/sync new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/sync @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/tar b/src/initramfs/eglibc-rootfs/bin/tar new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/tar @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/touch b/src/initramfs/eglibc-rootfs/bin/touch new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/touch @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/true b/src/initramfs/eglibc-rootfs/bin/true new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/true @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/umount b/src/initramfs/eglibc-rootfs/bin/umount new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/umount @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/uname b/src/initramfs/eglibc-rootfs/bin/uname new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/uname @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/usleep b/src/initramfs/eglibc-rootfs/bin/usleep new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/usleep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/vi b/src/initramfs/eglibc-rootfs/bin/vi new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/vi @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/bin/zcat b/src/initramfs/eglibc-rootfs/bin/zcat new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/bin/zcat @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/lib/ld-2.11.2.so b/src/initramfs/eglibc-rootfs/lib/ld-2.11.2.so Binary files differnew file mode 100755 index 00000000..fecb3a46 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/lib/ld-2.11.2.so diff --git a/src/initramfs/eglibc-rootfs/lib/ld-linux.so.2 b/src/initramfs/eglibc-rootfs/lib/ld-linux.so.2 new file mode 120000 index 00000000..e1654955 --- /dev/null +++ b/src/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/src/initramfs/eglibc-rootfs/lib/libc.so.6 b/src/initramfs/eglibc-rootfs/lib/libc.so.6 Binary files differnew file mode 100755 index 00000000..bfd7ef5d --- /dev/null +++ b/src/initramfs/eglibc-rootfs/lib/libc.so.6 diff --git a/src/initramfs/eglibc-rootfs/lib/libdbus-1.so.3 b/src/initramfs/eglibc-rootfs/lib/libdbus-1.so.3 Binary files differnew file mode 100644 index 00000000..526f06dc --- /dev/null +++ b/src/initramfs/eglibc-rootfs/lib/libdbus-1.so.3 diff --git a/src/initramfs/eglibc-rootfs/lib/libdl.so.2 b/src/initramfs/eglibc-rootfs/lib/libdl.so.2 Binary files differnew file mode 100644 index 00000000..b7d6dacc --- /dev/null +++ b/src/initramfs/eglibc-rootfs/lib/libdl.so.2 diff --git a/src/initramfs/eglibc-rootfs/lib/libm.so.6 b/src/initramfs/eglibc-rootfs/lib/libm.so.6 Binary files differnew file mode 100644 index 00000000..0e557bfe --- /dev/null +++ b/src/initramfs/eglibc-rootfs/lib/libm.so.6 diff --git a/src/initramfs/eglibc-rootfs/lib/librt.so.1 b/src/initramfs/eglibc-rootfs/lib/librt.so.1 Binary files differnew file mode 100644 index 00000000..fbea0db1 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/lib/librt.so.1 diff --git a/src/initramfs/eglibc-rootfs/sbin/bootchartd b/src/initramfs/eglibc-rootfs/sbin/bootchartd new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/bootchartd @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/fbsplash b/src/initramfs/eglibc-rootfs/sbin/fbsplash new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/fbsplash @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/fdisk b/src/initramfs/eglibc-rootfs/sbin/fdisk new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/fdisk @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/getty b/src/initramfs/eglibc-rootfs/sbin/getty new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/getty @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/halt b/src/initramfs/eglibc-rootfs/sbin/halt new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/halt @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/hdparm b/src/initramfs/eglibc-rootfs/sbin/hdparm new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/hdparm @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/hwclock b/src/initramfs/eglibc-rootfs/sbin/hwclock new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/hwclock @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/inotifyd b/src/initramfs/eglibc-rootfs/sbin/inotifyd new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/inotifyd @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/insmod b/src/initramfs/eglibc-rootfs/sbin/insmod new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/insmod @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/klogd b/src/initramfs/eglibc-rootfs/sbin/klogd new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/klogd @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/ldconfig b/src/initramfs/eglibc-rootfs/sbin/ldconfig Binary files differnew file mode 100755 index 00000000..74da4189 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/ldconfig diff --git a/src/initramfs/eglibc-rootfs/sbin/loadkmap b/src/initramfs/eglibc-rootfs/sbin/loadkmap new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/loadkmap @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/logread b/src/initramfs/eglibc-rootfs/sbin/logread new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/logread @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/lsmod b/src/initramfs/eglibc-rootfs/sbin/lsmod new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/lsmod @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/lspci b/src/initramfs/eglibc-rootfs/sbin/lspci new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/lspci @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/lsusb b/src/initramfs/eglibc-rootfs/sbin/lsusb new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/lsusb @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/mdev b/src/initramfs/eglibc-rootfs/sbin/mdev new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/mdev @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/mkdosfs b/src/initramfs/eglibc-rootfs/sbin/mkdosfs new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/mkdosfs @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/mkfs.vfat b/src/initramfs/eglibc-rootfs/sbin/mkfs.vfat new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/mkfs.vfat @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/mkswap b/src/initramfs/eglibc-rootfs/sbin/mkswap new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/mkswap @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/modinfo b/src/initramfs/eglibc-rootfs/sbin/modinfo new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/modinfo @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/modprobe b/src/initramfs/eglibc-rootfs/sbin/modprobe new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/modprobe @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/poweroff b/src/initramfs/eglibc-rootfs/sbin/poweroff new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/poweroff @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/reboot b/src/initramfs/eglibc-rootfs/sbin/reboot new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/reboot @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/rmmod b/src/initramfs/eglibc-rootfs/sbin/rmmod new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/rmmod @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/route b/src/initramfs/eglibc-rootfs/sbin/route new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/route @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/start-stop-daemon b/src/initramfs/eglibc-rootfs/sbin/start-stop-daemon new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/start-stop-daemon @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/swapoff b/src/initramfs/eglibc-rootfs/sbin/swapoff new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/swapoff @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/swapon b/src/initramfs/eglibc-rootfs/sbin/swapon new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/swapon @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/switch_root b/src/initramfs/eglibc-rootfs/sbin/switch_root new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/switch_root @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/sysctl b/src/initramfs/eglibc-rootfs/sbin/sysctl new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/sysctl @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/syslogd b/src/initramfs/eglibc-rootfs/sbin/syslogd new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/syslogd @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/tunctl b/src/initramfs/eglibc-rootfs/sbin/tunctl new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/tunctl @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/udhcpc b/src/initramfs/eglibc-rootfs/sbin/udhcpc new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/udhcpc @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/vconfig b/src/initramfs/eglibc-rootfs/sbin/vconfig new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/vconfig @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/watchdog b/src/initramfs/eglibc-rootfs/sbin/watchdog new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/watchdog @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/sbin/zcip b/src/initramfs/eglibc-rootfs/sbin/zcip new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/sbin/zcip @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/[ b/src/initramfs/eglibc-rootfs/usr/bin/[ new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/[ @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/[[ b/src/initramfs/eglibc-rootfs/usr/bin/[[ new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/[[ @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/ar b/src/initramfs/eglibc-rootfs/usr/bin/ar new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/ar @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/arping b/src/initramfs/eglibc-rootfs/usr/bin/arping new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/arping @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/awk b/src/initramfs/eglibc-rootfs/usr/bin/awk new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/awk @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/basename b/src/initramfs/eglibc-rootfs/usr/bin/basename new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/basename @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/bunzip2 b/src/initramfs/eglibc-rootfs/usr/bin/bunzip2 new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/bunzip2 @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/bzcat b/src/initramfs/eglibc-rootfs/usr/bin/bzcat new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/bzcat @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/bzip2 b/src/initramfs/eglibc-rootfs/usr/bin/bzip2 new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/bzip2 @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/chvt b/src/initramfs/eglibc-rootfs/usr/bin/chvt new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/chvt @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/cut b/src/initramfs/eglibc-rootfs/usr/bin/cut new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/cut @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/deallocvt b/src/initramfs/eglibc-rootfs/usr/bin/deallocvt new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/deallocvt @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/du b/src/initramfs/eglibc-rootfs/usr/bin/du new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/du @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/dumpleases b/src/initramfs/eglibc-rootfs/usr/bin/dumpleases new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/dumpleases @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/eject b/src/initramfs/eglibc-rootfs/usr/bin/eject new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/eject @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/env b/src/initramfs/eglibc-rootfs/usr/bin/env new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/env @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/expr b/src/initramfs/eglibc-rootfs/usr/bin/expr new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/expr @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/fgconsole b/src/initramfs/eglibc-rootfs/usr/bin/fgconsole new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/fgconsole @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/find b/src/initramfs/eglibc-rootfs/usr/bin/find new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/find @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/flock b/src/initramfs/eglibc-rootfs/usr/bin/flock new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/flock @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/free b/src/initramfs/eglibc-rootfs/usr/bin/free new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/free @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/ftpget b/src/initramfs/eglibc-rootfs/usr/bin/ftpget new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/ftpget @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/ftpput b/src/initramfs/eglibc-rootfs/usr/bin/ftpput new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/ftpput @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/head b/src/initramfs/eglibc-rootfs/usr/bin/head new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/head @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/id b/src/initramfs/eglibc-rootfs/usr/bin/id new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/id @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/killall b/src/initramfs/eglibc-rootfs/usr/bin/killall new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/killall @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/ld b/src/initramfs/eglibc-rootfs/usr/bin/ld Binary files differnew file mode 100755 index 00000000..f169e2ec --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/ld diff --git a/src/initramfs/eglibc-rootfs/usr/bin/ldd b/src/initramfs/eglibc-rootfs/usr/bin/ldd new file mode 100755 index 00000000..4dba3cfb --- /dev/null +++ b/src/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-2) 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/src/initramfs/eglibc-rootfs/usr/bin/less b/src/initramfs/eglibc-rootfs/usr/bin/less new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/less @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/logger b/src/initramfs/eglibc-rootfs/usr/bin/logger new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/logger @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/lspci b/src/initramfs/eglibc-rootfs/usr/bin/lspci new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/lspci @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/lsusb b/src/initramfs/eglibc-rootfs/usr/bin/lsusb new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/lsusb @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/lzcat b/src/initramfs/eglibc-rootfs/usr/bin/lzcat new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/lzcat @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/lzma b/src/initramfs/eglibc-rootfs/usr/bin/lzma new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/lzma @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/lzmacat b/src/initramfs/eglibc-rootfs/usr/bin/lzmacat new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/lzmacat @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/md5sum b/src/initramfs/eglibc-rootfs/usr/bin/md5sum new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/md5sum @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/nc b/src/initramfs/eglibc-rootfs/usr/bin/nc new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/nc @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/nmeter b/src/initramfs/eglibc-rootfs/usr/bin/nmeter new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/nmeter @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/openvt b/src/initramfs/eglibc-rootfs/usr/bin/openvt new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/openvt @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/printf b/src/initramfs/eglibc-rootfs/usr/bin/printf new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/printf @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/readahead b/src/initramfs/eglibc-rootfs/usr/bin/readahead new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/readahead @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/readlink b/src/initramfs/eglibc-rootfs/usr/bin/readlink new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/readlink @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/realpath b/src/initramfs/eglibc-rootfs/usr/bin/realpath new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/realpath @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/rpm2cpio b/src/initramfs/eglibc-rootfs/usr/bin/rpm2cpio new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/rpm2cpio @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/smemcap b/src/initramfs/eglibc-rootfs/usr/bin/smemcap new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/smemcap @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/sort b/src/initramfs/eglibc-rootfs/usr/bin/sort new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/sort @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/strings b/src/initramfs/eglibc-rootfs/usr/bin/strings new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/strings @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/tail b/src/initramfs/eglibc-rootfs/usr/bin/tail new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/tail @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/test b/src/initramfs/eglibc-rootfs/usr/bin/test new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/test @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/tftp b/src/initramfs/eglibc-rootfs/usr/bin/tftp new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/tftp @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/time b/src/initramfs/eglibc-rootfs/usr/bin/time new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/time @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/timeout b/src/initramfs/eglibc-rootfs/usr/bin/timeout new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/timeout @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/tr b/src/initramfs/eglibc-rootfs/usr/bin/tr new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/tr @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/uniq b/src/initramfs/eglibc-rootfs/usr/bin/uniq new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/uniq @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/unlzma b/src/initramfs/eglibc-rootfs/usr/bin/unlzma new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/unlzma @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/unxz b/src/initramfs/eglibc-rootfs/usr/bin/unxz new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/unxz @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/uptime b/src/initramfs/eglibc-rootfs/usr/bin/uptime new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/uptime @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/wc b/src/initramfs/eglibc-rootfs/usr/bin/wc new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/wc @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/wget b/src/initramfs/eglibc-rootfs/usr/bin/wget new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/wget @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/which b/src/initramfs/eglibc-rootfs/usr/bin/which new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/which @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/whoami b/src/initramfs/eglibc-rootfs/usr/bin/whoami new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/whoami @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/xargs b/src/initramfs/eglibc-rootfs/usr/bin/xargs new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/xargs @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/xz b/src/initramfs/eglibc-rootfs/usr/bin/xz new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/xz @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/bin/xzcat b/src/initramfs/eglibc-rootfs/usr/bin/xzcat new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/bin/xzcat @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/lib/libbfd-2.20.1-system.20100303.so b/src/initramfs/eglibc-rootfs/usr/lib/libbfd-2.20.1-system.20100303.so Binary files differnew file mode 100644 index 00000000..ae24957b --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/lib/libbfd-2.20.1-system.20100303.so diff --git a/src/initramfs/eglibc-rootfs/usr/lib/libfusion-1.2.so.9 b/src/initramfs/eglibc-rootfs/usr/lib/libfusion-1.2.so.9 Binary files differnew file mode 100644 index 00000000..1b8d84ea --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/lib/libfusion-1.2.so.9 diff --git a/src/initramfs/eglibc-rootfs/usr/lib/libgcc_s.so.1 b/src/initramfs/eglibc-rootfs/usr/lib/libgcc_s.so.1 Binary files differnew file mode 100644 index 00000000..f893c04d --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/lib/libgcc_s.so.1 diff --git a/src/initramfs/eglibc-rootfs/usr/lib/libhal.so.1 b/src/initramfs/eglibc-rootfs/usr/lib/libhal.so.1 Binary files differnew file mode 100644 index 00000000..8db463f0 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/lib/libhal.so.1 diff --git a/src/initramfs/eglibc-rootfs/usr/lib/libhd.so.16 b/src/initramfs/eglibc-rootfs/usr/lib/libhd.so.16 Binary files differnew file mode 100644 index 00000000..3fd68f29 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/lib/libhd.so.16 diff --git a/src/initramfs/eglibc-rootfs/usr/lib/libm.so b/src/initramfs/eglibc-rootfs/usr/lib/libm.so new file mode 120000 index 00000000..6c7b429c --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/lib/libm.so @@ -0,0 +1 @@ +/lib/libm.so.6
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/lib/libpcre.so.3 b/src/initramfs/eglibc-rootfs/usr/lib/libpcre.so.3 Binary files differnew file mode 100644 index 00000000..d11113bb --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/lib/libpcre.so.3 diff --git a/src/initramfs/eglibc-rootfs/usr/lib/libz.so.1 b/src/initramfs/eglibc-rootfs/usr/lib/libz.so.1 Binary files differnew file mode 100644 index 00000000..c1b51178 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/lib/libz.so.1 diff --git a/src/initramfs/eglibc-rootfs/usr/sbin/brctl b/src/initramfs/eglibc-rootfs/usr/sbin/brctl new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/sbin/brctl @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/sbin/chroot b/src/initramfs/eglibc-rootfs/usr/sbin/chroot new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/sbin/chroot @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/sbin/dhcprelay b/src/initramfs/eglibc-rootfs/usr/sbin/dhcprelay new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/sbin/dhcprelay @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/sbin/fbset b/src/initramfs/eglibc-rootfs/usr/sbin/fbset new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/sbin/fbset @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/sbin/httpd b/src/initramfs/eglibc-rootfs/usr/sbin/httpd new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/sbin/httpd @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/sbin/hwinfo b/src/initramfs/eglibc-rootfs/usr/sbin/hwinfo Binary files differnew file mode 100755 index 00000000..5dbe48a4 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/sbin/hwinfo diff --git a/src/initramfs/eglibc-rootfs/usr/sbin/loadfont b/src/initramfs/eglibc-rootfs/usr/sbin/loadfont new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/sbin/loadfont @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/sbin/rdate b/src/initramfs/eglibc-rootfs/usr/sbin/rdate new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/sbin/rdate @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/sbin/setlogcons b/src/initramfs/eglibc-rootfs/usr/sbin/setlogcons new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/sbin/setlogcons @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/eglibc-rootfs/usr/sbin/udhcpd b/src/initramfs/eglibc-rootfs/usr/sbin/udhcpd new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/eglibc-rootfs/usr/sbin/udhcpd @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/stage3-stuff/bin/dhcpmkconfig b/src/initramfs/stage3-stuff/bin/dhcpmkconfig new file mode 100755 index 00000000..fa01db75 --- /dev/null +++ b/src/initramfs/stage3-stuff/bin/dhcpmkconfig @@ -0,0 +1,47 @@ +#!/bin/sh +# Copyright (c) 2003..2006 - RZ Uni Freiburg +# Copyright (c) 2006..2010 - OpenSLX GmbH +# +# This program 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 under http://openslx.org +# +# Universal (distro independent) IP configuration writer for busybox udhcpc +# applet used within OpenSLX initramfs. The result is written to the +# /etc/initramfs-setup file + +# script started twice by udhcpc, quit fast if no ip configuration present +[ -z "$ip" ] && exit 0 + +# heavy debugging output in level 3 and above ... and on 13 +#FIXME: DEBUGLEVEL is not propagated to this file (at least for Ubuntu) +[ -z "$DEBUGLEVEL" ] && DEBUGLEVEL=0 +[ $DEBUGLEVEL -gt 3 -a $DEBUGLEVEL -lt 8 -o $DEBUGLEVEL -eq 13 ] && \ + set -x + +echo -e "# network configuration written by $0:" >/tmp/confviadhcp +unset HOME IFS KCMDLINE DEBUGLEVEL MODPRV TERM BOOTIF BOOT_IMAGE \ + infomsg mask lease interface cfgmsg cfgfile boot_file no_bootsplash +# set the broadcast address if not delivered by dhcp +[ -z "$broadcast" ] && \ + broadcast=$(ipcalc -b $ip/$subnet|sed s/.*=//) +set | sed \ + -e "s,^P.*,,;s,ntpsrv,ntp_servers,;s,ip,clientip," \ + -e "s,serverid,serverip,;s,subnet,subnet_mask," \ + -e "s,router,gateway,;s,hostname,host_name," \ + -e "s,domain,domain_name,;s,dns,domain_name_servers," \ + -e "s,broadcast,broadcast_address,;s,dhc.*,,;/^$/d" \ + -e "s,nissrv,nis_servers,;s,nisdomain_name,nis_domain," \ + -e "s,wins,netbios_name_servers,;/OPTIND.*/d" >>/tmp/confviadhcp + +# generate a local /etc/resolv.conf (might overwrite the version from preboot) +[ -n "$domain" ] && echo -e "search $domain\n" >/etc/resolv.conf +test -n "$dns" && { + for name in $dns; do + echo nameserver $name >>/etc/resolv.conf; + done; } + diff --git a/src/initramfs/stage3-stuff/bin/hwautocfg b/src/initramfs/stage3-stuff/bin/hwautocfg new file mode 100755 index 00000000..1f02892e --- /dev/null +++ b/src/initramfs/stage3-stuff/bin/hwautocfg @@ -0,0 +1,299 @@ +#!/bin/sh +# Copyright (c) 2003..2006 - RZ Uni Freiburg +# Copyright (c) 2006..2010 - OpenSLX GmbH +# +# This program 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 under http://openslx.org +# +# Universal (distro independent) hardware autoconfiguration script for +# OpenSLX linux stateless clients, using SuSE hwinfo for configuration + +############################################################################# +# pre part, load USB modules and start hardware detection pci +base () { +# avoid annoying error messages because of missing scripts +for tool in /usr/sbin/acpidump \ + /usr/bin/udevinfo \ + /sbin/dmraid ; do + testmkd ${tool%/*} + echo -e "#!/bin/sh" >${tool} + chmod u+x ${tool} +done +# no kernel messages, switch on hotplug via /sbin/mdev +echo "0 0 0 0" >/proc/sys/kernel/printk +echo "/sbin/mdev" >/proc/sys/kernel/hotplug +modprobe -a ${MODPRV} usbhid hid-bright 2>/dev/null & +# check from vga= that the traditional framebuffer is needed e.g. for splashy +# get information on the graphics adaptor if bootsplash or xserver plugins are +# present and the new drm/kms infrastructure is present +if strinfile "vga=" /proc/cmdline; then + ( modprobe -a vesafb fbcon 2>/dev/null + hwinfo --gfxcard >/etc/hwinfo.gfxcard ) & +elif [ -e /etc/init-hooks/00-started/xserver.sh -o \ + -e /etc/init-hooks/05--have-kernelvars/bootsplash.sh ] && \ + [ -e /lib/modules/${KERNEL}/kernel/drivers/gpu ]; then + # check for the standard modules (single gpu, multiple connector only) + ( hwinfo --gfxcard >/etc/hwinfo.gfxcard + case $(cat /etc/hwinfo.gfxcard) in + *i915*) + modprobe -a ${MODPRV} i915 2>/dev/null + ;; + *intel*|*Intel*) + modprobe -a ${MODPRV} i810 i830 i915 2>/dev/null + ;; + *nvidia*|*NVidia*|*nouveau*) + modprobe ${MODPRV} nouveau 2>/dev/null + ;; + *radeon*|*Radeon*) + modprobe ${MODPRV} radeon 2>/dev/null + ;; + *mga*|*matrox*|*Matrox*) + modprobe ${MODPRV} mga 2>/dev/null + ;; + *) + modprobe -a ${MODPRV} r128 savage sis tdfx ttm via + ;; + esac + modprobe -a drm fbcon; mdev -s ) & +fi + +# check and then load appropriate network card modules +nwcardlist=$(echo ${slxconf_listnwmod}|sed "s/\ /|/g") +# save results for later info and for Xen plugin when starting Xen VM +hwinfo --netcard --usb-ctrl >/etc/hwinfo.netcard-usbctrl +grep modprobe /etc/hwinfo.netcard-usbctrl | grep -E "$nwcardlist|hcd" | \ + grep -v ehci | sed 's/.* Cmd: "//;s/"//' | sort -u >/etc/modprobe.base +# virtio hack +if [ $(grep -ic "virtio_pci" /etc/modprobe.base) -ge 1 ]; then + echo "modprobe virtio_net" >>/etc/modprobe.base +fi +sh /etc/modprobe.base; mdev -s + +# optimization possible: exclude network and usb base drivers from the +# following list (bios detection for non-hwautocfg component) +( hwinfo --pci >/etc/hwinfo.data; echo "read pci device list at $(sysup)" \ + >/tmp/hwdataready ) & +( usleep 100000 ; hwinfo --bios >/etc/hwinfo.bios ) & +# for mounting partitions/devices with the "auto" option +echo -e "ext3\next2\nreiserfs\nxfs\njfs\next4\nvfat" >/etc/filesystems +# request a local block device for config and root filesystem (lbd://) +if grep -iq '"lbd://' /proc/cmdline /etc/initramfs-setup; then + modprobe -a ${MODPRV} ehci_hcd usb-storage sd_mod + mdev -s +fi +return 0 +} + +############################################################################# +# main part +hwmain () { +# activate the previously detected devices +[ $DEBUGLEVEL -ge 2 ] || modloadbg=" >/dev/null 2>\&1" +# check for rtc if not compiled directly into the kernel +( [ -e /proc/driver/rtc ] || modprobe ${MODPRV} rtc-cmos ) & +waitfor /tmp/hwdataready 10000 +sed '/Driver Info #1/,/Config Status:/d' \ + /etc/hwinfo.data | grep modprobe | sed "s|.* Cmd: \"||;s|\"|$modloadbg|" \ + | sort -u >/etc/modprobe.pci +sh /etc/modprobe.pci +mdev -s + +# bluetooth setup (start it later if present, depends on firmware availa- +# bility, interpreted by servconfig) +#( hwinfo --bluetooth >/etc/hwinfo.bt ) & + +# load harddisk driver and check for harddisk +( grep -q -E "SCSI|SATA" /etc/hwinfo.data && modprobe ${MODPRV} sd_mod + grep -q -E "IDE" /etc/hwinfo.data && modprobe ${MODPRV} ide-disk + hwinfo --disk | sed -n "/Device File: /p" | \ + sed -e "s|.*Device File: /dev/||;s| .*||" >/etc/hwinfo.disk + echo "disk detection finished at $(sysup)" >/tmp/diskready; ) & +[ $DEBUGLEVEL -eq 21 ] && echo "** finished 2nd hwdetection at $(sysup)" + +# load disk/optical high level drivers +modprobe ${MODPRV} ide-cd 2>/dev/null +modprobe ${MODPRV} sr_mod 2>/dev/null +modprobe ${MODPRV} ide-floppy 2>/dev/null +mdev -s + +# load kernel module for ps2 mice and map the mousehandler to /dev/input/mice +( [ -f /lib/modules/${KERNEL}/kernel/drivers/input/mouse/psmouse.ko ] && \ + modprobe ${MODPRV} psmouse + [ -f /lib/modules/${KERNEL}/kernel/drivers/input/mousedev.ko ] && \ + modprobe ${MODPRV} mousedev + testmkd /dev/input + mknod /dev/input/mice c 13 63 2>/dev/null + hwinfo --mouse >/etc/hwinfo.mouse ) & + +# complete the audio configuration and load the dummy module if no audio +# hardware is present in the machine +grep -q -E "Audio|sound" /etc/hwinfo.data || modprobe snd-dummy +modprobe ${MODPRV} snd-pcm-oss +modprobe ${MODPRV} snd-mixer-oss +#ln -s /proc/sound/oss/sndstat /dev/sndstat + +[ $DEBUGLEVEL -eq 21 ] && echo "** finished most of module loading at $(sysup)" + +# scanner setup (fixme: to be checked) +hwinfo --scanner >/etc/hwinfo.scanner +[ -f /tmp/scanner-udev ] && cat /tmp/scanner-udev \ + >>/mnt/etc/udev/rules.d/04-scanner.rules + +# parallel port setup +modprobe ${MODPRV} parport_pc && modprobe ${MODPRV} ppdev + +# if any new device appeared up to now +mdev -s +return 0 +} +############################################################################# +# harddisk partition setup part +disk () { +# get idea of availabe harddisk partitions, put swap partitions into +# (/mnt)/etc/fstab and format and mount partitions of type 44 (unknown) +[ $DEBUGLEVEL -eq 21 ] && echo "** starting hdd stuff at $(sysup)" +waitfor /tmp/diskready 20000 +if [ -s /etc/hwinfo.disk ] ; then + for hd in $(cat /etc/hwinfo.disk) ; do + fdisk -l /dev/$hd|sed -n "/^\/dev\//p" >/etc/disk.partition + for hdpartnr in $(cat /etc/disk.partition | \ + sed -n -e "/ 82 /p"|sed -e "s/[[:space:]].*//") ; do + echo -e "$hdpartnr\tswap\t\tswap\t\tdefaults\t 0 0" >>/tmp/fstab + done + # we use special non assigned partition type (id44) for harddisk scratch + # space, thus no normal filesystem will be incidentally deleted or + # corrupted + for hdpartnr in $(cat /etc/disk.partition | \ + sed -n -e "/ 44 /p"|sed -e "s/[[:space:]].*//") ; do + # check for supported filesystem and formatter + ( if diskfm $hdpartnr ; then + echo "$hdpartnr is mounted to /mnt/tmp at $(sysup)" >/tmp/tmpready + echo -e "$hdpartnr\t/tmp\t\tauto\t\tdefaults\t 0 0" >>/tmp/fstab + else + echo "formatting failed for some reason ($(sysup))" >/tmp/tmpready + fi ) & + part44=yes + break + done + # put detected linux partitions (83) into /etc/fstab with "noauto", + # special partition 45 (persistent scratch) to /var/scratch and 46 + # to /var/openslx + for partid in 83 45 46 ; do + for hdpartnr in $(cat /etc/disk.partition | \ + sed -n -e "/ ${partid} /p"|sed -e "s/[[:space:]].*//") ; do + mkdir -p /mnt/media/${hdpartnr#/dev/*} 2>/dev/null + if [ ${partid} -eq 83 ] ; then + echo -e "$hdpartnr\t/media/${hdpartnr#/dev/*}\tauto\t\tnoauto,\ +noexec\t 0 0" >>/tmp/fstab + elif [ ${partid} -eq 45 ] ; then + # if more than one id45 present, the latter ones are simply mounted + # over the previous (the mounts are postponed a bit via do_mnt to + # have the filesystem completely prepared) + echo -e "waitfor ${hdpartnr} 4000\n\ + mount -t auto ${hdpartnr} /mnt/media/${hdpartnr#/dev/*}\n\ + ln -sf /media/${hdpartnr#/dev/*} /mnt/var/scratch" >>/etc/do_mnt + echo -e "${hdpartnr}\t/media/${hdpartnr#/dev/*}\tauto\t\tnoauto\ +\t\t 0 0" >>/tmp/fstab + elif [ ${partid} -eq 46 ] ; then + # mount a home directory to (/mnt)/var/home + echo -e "waitfor ${hdpartnr} 4000\n\ + mount -t auto ${hdpartnr} /mnt/media/${hdpartnr#/dev/*} \n\ + test -d /mnt/media/${hdpartnr#/dev/*}/home && \ + ln -sf /media/${hdpartnr#/dev/*} /mnt/var/home" >>/etc/do_mnt + echo -e "${hdpartnr}\t/media/${hdpartnr#/dev/*}\tauto\t\tnoauto\ +\t\t 0 0" >>/tmp/fstab + fi + done + done + # add + [ -f /etc/do_mnt ] && sed -e "1i. /etc/functions" -i /etc/do_mnt + done + # determine if tmp preparation should wait for format/mount or not + [ -z "$part44" ] && echo "finished at $(sysup)" >/tmp/tmpready +else + echo "no harddisk found ( $(sysup) )" >/tmp/tmpready +fi +[ $DEBUGLEVEL -eq 21 ] && echo "** finished hdd stuff at $(sysup)" +} + +############################################################################# +# cleanup/finishing part +finish () { +mdev -s +# mount filesystem parts (if any) requested in disk setup +[ -f /etc/do_mnt ] && sh /etc/do_mnt & +# remove unneeded disk and mouse drivers +[ ! -s /etc/hwinfo.disk ] && rmmod sd_mod 2>/dev/null +#grep -q " PS/2 " /etc/hwinfo.mouse || \ +# { rmmod psmouse 2>/dev/null; rm /dev/psaux 2>/dev/null; } +# more sophistication possible :) +# remove /sbin/mdev as not available in stage4 +echo >/proc/sys/kernel/hotplug +return 0 +} + +############################################################################# +# main script starts here + +# functions common for all distros +. /etc/functions +# functions common for all distros, messages contains all error and +# info output +. /etc/messages +# load distro specific configuration variables and functions. distro +# specific functions may overwrite functions defined in /etc/functions +. /etc/distro-functions +# source general slx and initramfs-setup settings +. /etc/slxsystem.conf +. /etc/initramfs-setup + +# script run timer +[ $DEBUGLEVEL -eq 8 -o $DEBUGLEVEL -eq 21 ] && \ + echo "** HW $1 setup started at $(sysup)" + +# heavy debugging output in level 3 and above and specific for 11 +[ $DEBUGLEVEL -gt 3 -a $DEBUGLEVEL -lt 8 -o $DEBUGLEVEL -eq 11 ] && \ + set -x + +case $1 in + # pre initialization: loading USB base and network adaptor modules, + # detection of other pci bus modules + base) + base + ;; + # main part of hardware setup of pci stuff + main) + hwmain + # main script run timer or debug information + [ $DEBUGLEVEL -eq 8 -o $DEBUGLEVEL -eq 21 ] && \ + echo "** HW main setup finished at $(sysup)" + echo "hwsetup main part finished at $(sysup)" >/tmp/hwcfg + ;; + # disk setup part (detecting general id82,83 and slx id44,45,46, formatting + # if required and mounting) + disk) + # try to enable compressed RAM SWAP + if modprobe ${MODPRV} ramzswap && [ -f /usr/bin/rzscontrol ] ; then + mdev -s + rzscontrol /dev/ramzswap0 --init + swapon /dev/ramzswap0 + #hdswap="# disk swap disabled because of enabled compressed ramswap" + fi + # if disk action is not disabled + if [ "x${hw_local_disk}" != "xno" ] ; then + disk + else + echo "using harddisk switched off by hw_local_disk set to 'no' ( $(sysup) )" \ + >/tmp/tmpready + fi + ;; + # remove unneeded kernel modules + finish) + finish + ;; +esac diff --git a/src/initramfs/stage3-stuff/bin/init-wrapper b/src/initramfs/stage3-stuff/bin/init-wrapper new file mode 100755 index 00000000..57fcb8a0 --- /dev/null +++ b/src/initramfs/stage3-stuff/bin/init-wrapper @@ -0,0 +1,60 @@ +#!/bin/sh +# Copyright (c) 2006..2010 - OpenSLX GmbH +# +# This program 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 +# +# wrapperscript for plugin init files +############################################################################# + +# Get parameters +init_file="$1" +DEBUGLEVEL="$2" + +[ -z $DEBUGLEVEL ] && DEBUGLEVEL=0 + +# How do the localization here? There is not yet a country-Variable +. /etc/messages +. /etc/functions +. /etc/distro-functions + +# Configuration settings for this slx system's environment +. /etc/slxsystem.conf 2>/dev/null + +# initramfs-setup configuration (common initial settings for all clients using +# a certain InitRamFS generated by slxconfig-demuxer) +[ -f /etc/initramfs-setup ] && . /etc/initramfs-setup 2>/dev/null + +# Initial +testmkd /tmp/env + +if [ ! -f /tmp/env/base.sed ]; then + # Get environment and prepare as sed command + pre_env_base=$(env | sed -e 's/^\([^=]*\).*/\1/' | tr '\n' ';') + pre_env_base=$(echo $pre_env_base| sed -e 's/;/\.\*\/\/;s\/\^/g') + pre_env_base="s/^$pre_env_base//;" + $(echo $pre_env_base > /tmp/env/base.sed) +else + pre_env_base=$(cat /tmp/env/base.sed) +fi + +# Load temporary environments +[ -f /tmp/env/wrapper.env ] && . /tmp/env/wrapper.env + +[ "${DEBUGLEVEL}" -eq 15 ] && set -x +[ -f $init_file ] && . $init_file +[ "${DEBUGLEVEL}" -eq 15 ] && set +x + +# Remove already known environment variables from postenv +#env |sed -e $pre_env_base | sort -u | \ +# Store the environment for re-initialization in runinithook function +env | grep -v -E "debug|DEBUGLEVEL" | sort -u | \ + sed "1s|.*|# generated by init-wrapper; last changed by $init_file|" | \ + sed -e 's/^\([^=]*\)=\(.*\)/export \1="\2"/' \ + > /tmp/env/wrapper.env + diff --git a/src/initramfs/stage3-stuff/bin/servconfig b/src/initramfs/stage3-stuff/bin/servconfig new file mode 100755 index 00000000..1248918e --- /dev/null +++ b/src/initramfs/stage3-stuff/bin/servconfig @@ -0,0 +1,308 @@ +#!/bin/sh +# Copyright (c) 2003..2006 - RZ Uni Freiburg +# Copyright (c) 2006..2010 - OpenSLX GmbH +# +# This program 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 under http://openslx.org +# +# universal (distro independent) configuration script for OpenSLX linux +# diskless clients (executed in stage3 within initial ramfs). The file- +# system setup is completed when servconfig starts + +############################################################################# +# check for configuration files to source + +# functions common for all distros, messages contains all error and +# info output +. /etc/messages +. /etc/functions +# load distro specific configuration functions. Distro specific functions may +# overwrite functions defined in /etc/functions +. /etc/distro-functions +. /etc/slxsystem.conf + +# load variables defined by plugins +[ -f /tmp/env/wrapper.env ] && . /tmp/env/wrapper.env + +# script run timer +[ $DEBUGLEVEL -eq 8 ] && echo "** SW setup started at $(sysup)" + +# heavy debugging output in level 3 and below 8 ... +[ $DEBUGLEVEL -gt 3 -a $DEBUGLEVEL -lt 8 -o $DEBUGLEVEL -eq 12 ] && \ + set -x + +############################################################################# +# read and unify configuration options - default configuration file, from +# dhcp, ldap ... +# wait for the appearance of configuration from several sources +cfgcomplete +. /etc/initramfs-setup +[ $DEBUGLEVEL -eq 8 ] && echo "** Config info is complete at $(sysup)" + +# copy additional configuration and var files and directories +# admins can place there files in /var/lib/openslx/config/... +# to be packed during stage2 into (/srv/dxs)/tftpboot/client-config...) +cp -a /rootfs/* /mnt 2>/dev/null + +# copy passwd, group files for temporarily (within stage3 configuration) used +# by chown +cp /mnt/etc/passwd /etc +cp /mnt/etc/group /etc + +# set greeting and add information on booted system +len=$(expr length ${SLXVERSION}${SYSTEM_NAME}) +if [ $len -le 28 ] ; then + vdstr="Stateless Workstation (V${SLXVERSION}/${SYSTEM_NAME})" + smax=28 +else + vdstr="V${SLXVERSION}/${SYSTEM_NAME}" + smax=52 +fi +while [ $len -le $smax ] ; do + vdstr="$vdstr " + len=$(($len + 1)) +done +len=$(expr length ${host_name}) +while [ $len -le 30 ] ; do + space="$space " + len=$(($len + 1)) +done +echo " + WELCOME TO $space \n (\l) + _____ ______ ______ __ __ _______ __ __ __ + / _ | _ | ___| | | | | ____| | | | | | + | | | | |_| | |_ | | | | |___ | | / / + | | | | ___/| _| | | ____ | | | | + | |_| | | | |___| | | | ____| | |___ / / + _____/|__| |______|__| |__| |_______|______|__| |__| + + $vdstr (c) <OpenSLX.ORG> +" >/mnt/etc/issue + +############################################################################# +# set localization and add entries to initialize keytable and consolefont to +# boot.slx +if [ -z "${country}" ] ; then + error "$scfg_country" nonfatal + country="us" +fi +# do localization (this functions simply sets a list of variables) +localization "${country}" +# start distrospecific localization +dlocale + +############################################################################# +# setup passwd and shadow for local system users like root, bin, daemon and +# nobody if no user/admin provided passwd exists ... fixme: see #206 +[ ! -e /rootfs/etc/shadow ] && \ + basepasswd $(sed "/+::0/d;s/root://;s/:.*//" /rootfs/etc/shadow 2>/dev/null) + +############################################################################# +# dns and ip configuration +# hostname of the machine +echo "$host_name" >/proc/sys/kernel/hostname +echo -e "# /etc/hosts - file generated by $0 during OpenSLX stage3\ +\n#\n# IP-Address Full-Qualified-Hostname Short-Hostname\n#\n\ +127.0.0.1\tlocalhost\n::1\t\tlocalhost ipv6-localhost ipv6-loopback\n\ +fe00::0\t\tipv6-localnet\nff00::0\t\tipv6-mcastprefix\nff02::1\ +\t\tipv6-allnodes\nff02::2\t\tipv6-allrouters\nff02::3\t\t\ +ipv6-allhosts\n" >/mnt/etc/hosts +if [ -n "${domain_name}" ]; then + echo -en "${clientip}\t" >>/mnt/etc/hosts + for name in ${domain_name}; do + echo -en "${host_name}.${name} " >>/mnt/etc/hosts + done + echo -e "${host_name}" >>/mnt/etc/hosts +else + echo -e "${clientip}\t${host_name}" >>/mnt/etc/hosts +fi +# set up domainname and resolving +rm -rf /mnt/etc/resolv.conf +test -n "${domain_name}" && \ + echo -e "# /etc/resolv.conf - file generated by\n#\t$0:\n\ +#\t${date}\n#options timeout:1 attempts:1 rotate\n\ +search "${domain_name} >/mnt/etc/resolv.conf +test -n "${domain_name_servers}" && { + for name in ${domain_name_servers}; do + echo nameserver ${name} >>/mnt/etc/resolv.conf; + done; } + +############################################################################# +# run distro specific configuration function +config_distro + +############################################################################# +# basic (non network) services + +# at daemon - calling distro specific function config_atd +config_atd + +# configuration of cron services - calling distro specific function +# config_cron (runlevel links, directories, ...) +config_cron + +# setup system log services - distro dependent function config_syslog +config_syslog + +# acpi and powersave - distro dependent function config_acpi, these daemons +# might require dbus +config_acpi + +# configure udev +config_udev + +# configure dbus - distro dependent function config_dreshal - handle +# all stuff regarding dependent services like dbus, resmgr, hal ... +# (check for runlevel scripts, passwd entries, directories ...) +config_dreshal + +# configure automounter (should be moved to plugin) +if [ "x$automnt" != "xno" ] ; then + # check if there is some user provided configuration (only auto.master is + # important) and skip automatic setup + if [ ! -f /rootfs/etc/auto.master ] ; then + if [ -d /mnt/misc ] ; then + echo -e "# /etc/auto.master - file generated by $0:\n\ +/misc\t/etc/auto.misc" >/mnt/etc/auto.master + echo -e "# /etc/auto.misc - file generated by $0:" >/mnt/etc/auto.misc + else + echo -e "# /etc/auto.master - file generated by $0:\n\ +/misc\t#/etc/auto.misc" >/mnt/etc/auto.master + echo -e "# /etc/auto.misc - file generated by $0:\nautomount for \ +removable devices is mostly deprecated, so /misc is not\nactivated in \ +auto.master." >/mnt/etc/auto.misc + fi + if [ -n "${automnt_src}" ] ; then + # local directory and home directory server from initialramfs-setup + [ -z "${automnt_dir}" ] && automnt_dir="/home" + # remove leading and trailing slash + automnt_dir=${automnt_dir#/} + automnt_dir=${automnt_dir%/} + test -d /${automnt_dir} || error "$scfg_erradir" nonfatal + amserv=$(uri_token $automnt_src server) + ampath=$(uri_token $automnt_src path) + amdirn=$(echo ${automnt_dir}|sed "s,/,_,g") + echo -e "/${automnt_dir}\t/etc/auto.${amdirn}\n" \ + >> /mnt/etc/auto.master + echo -e "# /etc/auto.${amdirn} created by $0:\n" \ + > /mnt/etc/auto.${amdirn} + # add '/' to path because uri_token removes any leading '/' (s. function) + echo -e "*\t-rsize=32768,wsize=32768,rw\t${amserv}:/${ampath}/&" \ + >> /mnt/etc/auto.${amdirn} + # no tempfs needed if automounter operates on /home + [ "${automnt_dir}" = "home" ] && umount -t tmpfs /mnt/home 2>/dev/null + # portmapper is needed for remote NFS sources and local nfs directories + testmkd /mnt/var/lib/nfs/state + config_portmap + fi + fi + config_automount +fi + +# configure print services / start requested printer daemon +config_printer + +# configure bluetooth services +#[ -s /etc/hwinfo.bt ] if existance of bt devices should play any role +config_bt + +############################################################################# +# network(ed) services + +if [ -n "$ntp_servers" ]; then + # rdate uses the time protocol (port 37 which is not the ntp standard port) + # thus not every standard ntp-server might offer this service) + ( rdate -s "$ntp_servers" 2>/dev/null || error "$scfg_rdate" nonfatal + hwclock -w ) & +fi + +# network time service (ntp) configuration file +if [ -n "$ntp_servers" -a ! -f /rootfs/etc/ntp.conf ]; then + echo -e "# /etc/ntp.conf - file generated by $0: \ +$date\n" >/mnt/etc/ntp.conf + for name in $ntp_servers; do + echo server $name >>/mnt/etc/ntp.conf + done +fi +# copy timezone file defined with language settings +[ -z "$TZ" ] && TZ="$timezone" +ln -snf /usr/share/zoneinfo/${TZ} /mnt/etc/localtime || \ + error "$scfg_ntptz" nonfatal +config_ntp + +# secure shell server - at the moment all clients share one "secret" +# key or the key has to be regenerated on every bootup or fetched on +# every bootup from somewhere +config_sshd + +# simple network management protocol agent +config_snmp + +# configure samba service +config_samba + +############################################################################# +# NIS (variable typically fetched via dhcp) +# setup nis configuration if needed +if [ "x$nis_domain" != "x" -a "x$nis_servers" != "x" ] ; then + echo $nis_domain >/mnt/etc/defaultdomain + echo -e "# /etc/yp.conf - file generated by $0:\n#\t\ +$date\n\nypserver "$nis_servers >/mnt/etc/yp.conf + config_nis +fi + +############################################################################# +# name service caching daemon if networked user database +config_nscd + +############################################################################# +# preparation of /tmp directory (partition 44, nfs scratch, ramdisk). there +# might be the chance that we have a disk partition available, so wait for +# completion of detection, setup process +[ $DEBUGLEVEL -eq 8 ] && echo "** Waiting for /tmp completion at $(sysup)" +waitfor /tmp/tmpready 40000 +[ $DEBUGLEVEL -eq 8 ] && echo "** Setup of /tmp completed at $(sysup)" +# create some directories and correct permissions +tmpisdisk=$(sed -n '/\/tmp/p' /tmp/fstab 2>/dev/null) +# if there is no local disk partition for /tmp then try to mount a rw +# scratch space (if defined in $scratch) and prepared on server +if [ -n "$scratch" -a -z "$tmpisdisk" ] ; then + scrproto=$(uri_token $FILESRC prot) + scrpath=$(uri_token $FILESRC path) + testmkd /tmp/scratch + # exports have to be per client!! + case "$scrproto" in + nbd) + : + ;; + *) + tmpserv=$(uri_token $scratch server) + tmppath=$(uri_token $scratch path) + # hanging mount processes might stop further setup - timeout + # should be configured ... + # fsmount proto server path target options + fsmount nfs ${tmpserv} ${tmppath} /tmp/scratch \ + "rw,intr,soft,timeo=2,nosuid" && { + if [ -d /tmp/scratch/${clientip} ] ; then + mv /tmp/scratch/${clientip} /tmp/scratch/${clientip}.totrash + rm -rf /tmp/scratch/${clientip}.totrash 2>/dev/null & + fi + testmkd /tmp/scratch/${clientip} + # no need for tempfs there ... + umount /mnt/tmp >/dev/null 2>&1 + fsmount nfs ${tmpserv} ${tmppath} /mnt/tmp \ + "rw,intr,soft,timeo=2,nosuid"; } + ;; + esac +fi + +# script run timer +[ $DEBUGLEVEL -eq 8 ] && echo "** SW setup finished at $(sysup)" + +# servconfig finished successfully +echo "servconfig finished at $(sysup)" > /tmp/svcfg diff --git a/src/initramfs/stage3-stuff/etc/functions b/src/initramfs/stage3-stuff/etc/functions new file mode 100644 index 00000000..3985bd57 --- /dev/null +++ b/src/initramfs/stage3-stuff/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/src/initramfs/stage3-stuff/etc/ldap-functions b/src/initramfs/stage3-stuff/etc/ldap-functions new file mode 100644 index 00000000..d2b6753e --- /dev/null +++ b/src/initramfs/stage3-stuff/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/src/initramfs/stage3-stuff/etc/messages b/src/initramfs/stage3-stuff/etc/messages new file mode 100644 index 00000000..ca66245d --- /dev/null +++ b/src/initramfs/stage3-stuff/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/src/initramfs/stage3-stuff/etc/messages.de b/src/initramfs/stage3-stuff/etc/messages.de new file mode 100644 index 00000000..487332d7 --- /dev/null +++ b/src/initramfs/stage3-stuff/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/src/initramfs/stage3-stuff/init b/src/initramfs/stage3-stuff/init new file mode 100755 index 00000000..3f97dba0 --- /dev/null +++ b/src/initramfs/stage3-stuff/init @@ -0,0 +1,1030 @@ +#!/bin/sh +# Copyright (c) 2003..2006 - RZ Uni Freiburg +# Copyright (c) 2006..2010 - OpenSLX GmbH +# +# This program 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 +# +# Main script for initial ramfs for OpenSLX linux stateless clients +############################################################################# + +# fixme: the primary init script should never fail, so move all critical code +# into sub script calls (see ticket 259) + +export PATH=/bin:/sbin:/usr/bin/:/usr/sbin + +# device files get their own filesystem (to be move mounted later) +devdir="/dev" +mount -n -t tmpfs -o 'size=25%,mode=0755' initramfsdevs ${devdir} + +# mount the important standard directories +[ ! -f /proc/cpuinfo ] && mount -n -t proc proc /proc +[ ! -d /sys/class ] && mount -n -t sysfs sysfs /sys + +# create basic device files an directories (in dev - for most hardware related +# devices mdev should handle that) +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/xconsole p"; do + mknod $i +done +mkdir -p ${devdir}/pts ${devdir}/shm ${devdir}/.udevdb ${devdir}/.udev \ + ${devdir}/.initramfs /var/log +# create some standard links (expected?) in /dev +ln -s /proc/kcore /dev/core +ln -s /proc/self/fd /dev/fd +ln -s /proc/self/fd/0 /dev/stdin +ln -s /proc/self/fd/1 /dev/stdout +ln -s /proc/self/fd/2 /dev/stderr + +# redirect kernel messages to tty10 instead of the standard console +getty -i -n -l /bin/cat 38400 tty10 & +setlogcons 10 + +# start device auto discovery/setup service of busybox +echo >/etc/mdev.conf +mdev -s + +# source functions file common for all distros, messages contains all error +# and info output (for some reason the error output is not produced properly +# - crash) + +# how do the localization here? There is not yet a country-Variable +. /etc/messages +. /etc/functions || ( echo -e $init_mff && sleep 100 ) +. /etc/distro-functions || ( echo -e $init_dff && sleep 100 ) + +# configuration settings for this slx system's environment +. /etc/slxsystem.conf 2>/dev/null || ( echo -e ${init_sscf} && \ + sleep 100 ) +# initramfs-setup configuration (common initial settings for all clients using +# a certain InitRamFS generated by slxconfig-demuxer) +[ -f /etc/initramfs-setup ] && . /etc/initramfs-setup 2>/dev/null + +export date="${slxconf_date}" + +export DEBUGLEVEL=0 +export KERNEL="${slxconf_kernver}" +export NWMODULES="${slxconf_listnwmod}" +export DISTRO_NAME="${slxconf_distro_name}" +export DISTRO_VER="${slxconf_distro_ver}" +export SYSTEM_NAME="${slxconf_system_name}" +export SLXVERSION="${slxconf_slxver}" + +# do not use dnbd cache file +nodnbdcache="yes" + +# set a default LAN interface, might be modified for WLAN, bridge setups or +# on machines with more than one ethernet card built in +export nwif="eth0" + +# load usb modules for keyboard (reenable usb keyboards, otherwise the +# admin has to wait until second run of hwsetup late in stage3) and the +# network adaptor modules, search for pci modules to load later on +hwautocfg base + +# if no kernel version is set, try to get it directly from /proc +if [ -z $KERNEL ] ; then + KERNEL=$(cat /proc/version) + KERNEL=${KERNEL#*version } + KERNEL=${KERNEL% (*) (*} +fi + +# set defaults for some important variables, might be overwritten via +# kernel commandline +tmpfssize="$(expr $(grep -i "memtotal" /proc/meminfo | awk '{print $2}') \ + / 100 \* 75 - 128000)k" # in kbyte +cowsize="50%" +rwdir=/dev/shm +nfsro="nfs" +aufs=1 +unionfs=1 + +runinithook '00-started' + +# run pre init script and user defined preinit.local, copied by mkdxsinitrd +# from /var/lib/openslx/config/... in stage2 +preinit +[ -x /bin/preinit.local ] && /bin/preinit.local + + +# switch off the several configuration methods, will be switched on +# according to kernel commandline settings +echo "noldap" > /tmp/ldap-done + +# external configuration file retrieval (per tftp) must be done, as otherwise +# we will never get the initramfs-setup file. By default, we try a predefined +# standard path (.../tftpboot/client-config/ ...) +file="yes" + +# read kernel commandline +read KCMDLINE < /proc/cmdline +export KCMDLINE +# read the system wide initramfs-setup and then the kernel commandline +for opts in $(sed "s/#.*//" /etc/initramfs-setup) ${KCMDLINE} ; do + case ${opts} in + # shut down pc + shutdown) + cat <<EOL + + SHUTTING DOWN PC! + +EOL + echo "o" >/proc/sysrq-trigger + ;; + # from IPAPPEND + BOOTIF=*) + bootmac=$(echo ${opts} | sed "s/.*=01-//;s/-/:/g") + ;; + # localization + country=*) + COUNTRY=${opts#country=} + grep -q -E "country=" /etc/initramfs-setup && + echo -e "\n# localization information gotten via kernel command line \ +in $0\ncountry=\"${COUNTRY}\"" >>/etc/initramfs-setup + ;; + # single token for debugging ... + debug) + DEBUGLEVEL=1 + ;; + # ... or a specified debug level + debug=*) + DEBUGLEVEL=${opts#debug=} + if [ $DEBUGLEVEL -eq 8 -o $DEBUGLEVEL -eq 20 ] ; then + echo "** SLX init started near $(sysup)" + elif [ $DEBUGLEVEL -ge 3 -a $DEBUGLEVEL -le 20 ] ; then + # create, start a debug shell process + echo "Debug shell started on second console (tty2)" + echo -e "#!/bin/sh\nsh" >/bin/debugshell + chmod u+x /bin/debugshell + getty -i -n -l /bin/debugshell 38400 tty2 & + # start logging (debuglevel >=3) + # fixme: SuSE hangs in Creating /var/log/boot.msg if activated + echo "Syslogd started on third console (tty3)" + # just to have some name in syslog + echo "(slx init)" >/proc/sys/kernel/hostname + syslogd -C2048 + klogd + logread -f > /dev/tty3 2>/dev/null & + logread -f >> /var/log/messages 2>/dev/null & + fi + ;; + # if configuration should not be gathered by dhcp client + nodhcp) + nodhcp="yes" + echo "nodhcp" >/tmp/dhcp-done + ;; + nofile) + unset file + echo "nofile" >/tmp/file-done + ;; + # if ldap configuration should be triggered + ldap) + ldap="yes" + rm /tmp/ldap-done + ;; + # ldap configuration with host and port to contact (base) + ldap=*) + ldap="yes" + rm /tmp/ldap-done + ;; + # file source with tftp server and file location on the server + file=*|file) + if [ "${opts}" != "file" ] ; then + fileprot=$(uri_token ${opts#file=} prot) + fileserv=$(uri_token ${opts#file=} server) + filepath=$(uri_token ${opts#file=} path) + fi + ;; + # if ld.so.cache should be generated; should be switched on when composing + # rootfs from more than one source + ldsc) + ldsc="yes";; + # simple union of base ro rootdir with tempfs on top + nounionfs) + unionfs=0;; + # additional source to unify root filesystem with; the top layer will be + # the tempfs + unionfs=*) + unionfs=1 + uniondirs=${opts#unionfs=} + # most probably it is a good idea to run ldconfig, so enable it + ldsc="yes" + ;; + # same for AUFS; alternative to unionfs + noaufs) + aufs=0;; + aufs=*) + aufs=1 + uniondirs=${opts#aufs=} + # most probably it is a good idea to run ldconfig, so enable it + ldsc="yes" + ;; + # if cowloop should be used, only ontop of network block device and in + # combination with classical fs, like ext2 useful + cowloop=*) + cowloop=1 + #cowsize=${opts#cowloop=} + ;; + # rootfs will void the variables (d)nbdroot, nfsroot ... + # fixme: allow multiple rootfs sources to be unioned!? + # if strinstr " " "$rootfs" ... + rootfs=*) + rootfs=${opts#rootfs=} + rootfs=${rootfs#\"} + rootfs=${rootfs%%\"} + srvproto=$(uri_token $rootfs prot) + case $srvproto in + nfs) + # nfsroot consists of two components + nfspath=$(uri_token $rootfs path) + nfsserver=$(uri_token $rootfs server) + grep -q -E "nfsserver" /etc/initramfs-setup || \ + echo -e "# nfs root information gotten via kernel command \ +line in $0\nnfsserver=\"${nfsserver}\"\nnfspath=\"${nfspath}\"" \ + >>/etc/initramfs-setup + ;; + *nbd*) + bldmod=$srvproto + # get settings for nbd-client, filesystem equals to path in URI + # notation (remove leading slash from filesystem at the end) + bldhost=$(uri_token $rootfs server) + bldport=$(uri_token $rootfs port) + bldrfst=$(uri_token $rootfs path) + bldrfst=${bldrfst#/*} + ;; + aoe) + echo "Not implemented yet" + bldmod= + ;; + iscsi) + echo "Not implemented yet" + bldmod= + #iscsiserver=$(uri_token $rootfs server) + #iscsiport=$(uri_token $rootfs port) + #iscsitarget=$(uri_token $rootfs path) + ;; + lbd) + # use a local device for mounting root block device with given + # filesystem directly or a root filesystem container from another + # filesystem, e.g. rootfs=lbd://sda1/squashfs (bldmod cannot be + # empty, use loop or the real device stuff) + bldmod=loop + blddev=$(uri_token $rootfs server) + bldfst=$(uri_token $rootfs path) + bldfst=${bldfst#/*} + ;; + esac + ;; + # size of cache dnbd should use within ram + dcsize=*) + dnbdcachesize=${opts#dcsize=};; + # ip configuration client-ip:server-ip:gateway:netmask + ip=*) + ipinfo=${opts#ip=};; + # deprecated: nfs server and path (rewritten to standard style) + nfsroot=*) + srvproto=nfs + nfsroot=${opts#nfsroot=} + nfspath=${nfsroot#*:} + nfsserver=${nfsroot%:/*} + grep -q -E "nfsserver" /etc/initramfs-setup || \ + echo -e "\n# nfs root information gotten via kernel command line \n\ +in $0\n# deprecated: please use rootfs=nfs://...\nnfsserver=\"${nfsserver}\"\ +\nnfspath=\"${nfspath}\"">> /etc/initramfs-setup + ;; + # size of tempfs if not max. 50% of RAM should be used + tmpfssize=*) + tmpfssize=${opts#tmpfssize=};; + # vendor code identifier for dhcp requests, that way OpenSLX clients could + # be distinguished from other (dhcp) clients + vci=*) + vci=${opts#vci=};; + # option for ddcinfo + ddcinfo=*) + ddcinfo=${opts#ddcinfo=};; + esac +done + +runinithook '05-have-kernelvars' + +# at this point a timer should be started to ensure an automated reboot +# or halt of the machine if SLX init does not succeed (e.g. missing kernel +# module for the network adaptor) +if [ ${DEBUGLEVEL} -lt 3 -o ${DEBUGLEVEL} = 8 ] ; then + cat<<EOF > /bin/watchdog +#!/bin/sh +echo \$$ > /tmp/watchdogpid +[ ! -f /proc/version ] && mount -n -t proc proc /proc +sleep 120 2> /dev/null +echo "o" > /proc/sysrq-trigger +EOF + chmod u+x /bin/watchdog + watchdog & +fi + +# check if at least one type of IP configuration is availabe +if [ -n "$nodhcp" -a -z "$ldap" -a -z "$ipinfo" -a $srvproto != "lbd" ] + then echo -e "# You did not specify any advanced configuration mode for \ +your clients. You\n# might want to add the token 'dhcp' for DHCP config, \ +'file(=source)'\n# for config file get via TFTP or 'ldap(=source)' for LDAP \ +configuration to\n# your kernel command line." >> /etc/initramfs-setup + if strinfile "clientip" /etc/initramfs-setup ; then + # IP configuration seems to be present in initramfs-setup file + # TODO: FIX this, as it will clobber all kernel-cmdline values! + . /etc/initramfs-setup + ipinfo="ip=$clientip:$serverip:$gateway:$subnet_mask" + else + error "$init_errip" + fi +fi + +# for ldap configuration at least basic IP setup is needed to contact the +# server +[ -n "$nodhcp" -a -n "$ldap" -a -z "$ipinfo" ] && error "$init_errldap" +# set debug level and logfile +if [ $DEBUGLEVEL -eq 20 ] ; then + echo "** Setting debuglevel to ${DEBUGLEVEL} at $(sysup)" +elif [ $DEBUGLEVEL -ne 0 ] ; then + echo "Setting debuglevel to ${DEBUGLEVEL}" +fi +export MODPRV=" " +export LOGFILE +if [ "${DEBUGLEVEL}" -gt 0 -a "${DEBUGLEVEL}" != 8 ] ; then + # set LOGFILE and move it later on into stage4 + LOGFILE="/var/log/slx-boot.log" + echo "Starting OpenSLX client boot logging at $(date)" >$LOGFILE + echo "1 4 1 7" >/proc/sys/kernel/printk + [ "${DEBUGLEVEL}" -ge 2 ] && MODPRV="-v" + [ "${DEBUGLEVEL}" -gt 3 -a "${DEBUGLEVEL}" -le 10 ] && { + set -x + # and the kernel too + echo "7 7 7 7" >/proc/sys/kernel/printk; } + [ "${DEBUGLEVEL}" -gt 10 -a "${DEBUGLEVEL}" -le 20 ] && set +x +else + # switch off most of kernel debug output + echo "0 0 0 0" >/proc/sys/kernel/printk + # modprobe should stay quiet + MODPRV="-q" + LOGFILE="/dev/null" +fi + +runinithook '10-nw-if-config' + +# check for multiple ethernet interfaces (we have at least the mac of PXE boot +# device in $bootmac) +# check here for the active ethernet link (skip non-ethN interfaces) +if strinstr "eth" "$nwif" ; then + for ethif in eth0 eth1 eth2 eth3 ; do + export macaddr=$(ip link show dev $ethif 2>/dev/null | \ + grep -i link.ether | awk '{print $2}') + # if there is no bootmac present in kernel commandline any checks are + # useless + if [ -z "$bootmac" ] ; then + bootmac="$macaddr" + [ "$ethif" != "eth0" ] && error "$init_bootmac" nonfatal + fi + if [ "$macaddr" = "$bootmac" ] ; then + nwif=$ethif + break + elif [ "x$macaddr" = "x" ] ; then + # if the macaddr is empty on the first interface tried, there is no + # network adaptor visible (missing kernel module) + if [ "$ethif" = "eth0" ] ; then + error "$init_errnwad" + else + # assume a forcedeth problem here (nonmatching MACs) + macaddr=${bootmac} + fi + break + fi + done +fi +# quickfix for proper nwif passing ... (to be fixed in a more general way) +sed "s/nwif=.*/nwif=\"${nwif}\"/" -i /tmp/env/wrapper.env +# hook to setup bridging (several virtualization tools ... +runinithook '20-nw-bridge-config' + +# set up loopback networking +[ $DEBUGLEVEL -eq 20 ] && echo "** starting ip config at $(sysup)" +ip link set dev lo up 2>/dev/null +ip addr add 127.0.0.1/8 dev lo 2>/dev/null +ip link set dev $nwif up 2>/dev/null || error "$init_noeth" + +# analyze ip information from the kernel command line and put parts +# of it into several variables +if [ -n "$ipinfo" ] ; then + getip () { + local val="$ipinfo:"; i=$(($1 - 1)); + while [ $i -gt 0 ] ; do + val=${val#*:} ; i=$(($i - 1)); + done; + echo $val|sed "s/:.*//"; } + clientip=$(getip 1) + serverip=$(getip 2) + gateway=$(getip 3) + subnet_mask=$(getip 4) + broadcast_address=$(ipcalc -s -b $clientip $subnet_mask|sed s/.*=//) + [ -z "$broadcast_address" ] && broadcast_address=255.255.255.255 + # we might have an idea of the dns server via preboot + dns_srv=$(getip 5) + [ -n "$dns_srv" ] && echo nameserver $dns_srv >/etc/resolv.conf; + echo -e "# ip configuration written by $0 script:\nclientip=$clientip\n\ +subnet_mask=$subnet_mask\ngateway=$gateway\nserverip=$serverip\n\ +broadcast_address=$broadcast_address" >>/etc/initramfs-setup + # set static ip address + ip addr add $clientip/$(ipcalc -s -p $clientip $subnet_mask|sed s/.*=//) \ + broadcast $broadcast_address dev $nwif 2>/dev/null + ip route add default via $gateway 2>/dev/null +else + noipyet="yes" +fi +# get configuration data via dhcp (with vendor code identifier if present +# in ${vci} from kernel command line or initramfs-setup) ... +if [ -z "$nodhcp" ] ; then + ( rundhcp ${vci}; echo "dhcp finished at $(sysup)" >/tmp/dhcp-done ) & + if [ -n "$noipyet" ] ; then + waitfor /tmp/dhcp-done 20000 + . /tmp/confviadhcp + # by now there should be a proper ip configuration present + if [ -z "$clientip" -o -z "$subnet_mask" -o -z "$broadcast_address" ] + then error "$init_errdhcp" + else + { ip addr add \ + $clientip/$(ipcalc -s -p $clientip $subnet_mask|sed s/.*=//) \ + broadcast $broadcast_address dev $nwif 2>/dev/null || \ + error "$init_erripcfg"; } + # if gateway is available set it + [ -n $gateway ] && ip route add default via $gateway 2>/dev/null + fi + # fixme: to be checked!! + # else + # if [ -n "$file" -a "$srvproto" = "lbd" ] ; then + # error "$init_erripcfg" nonfatal + # else + # error "$init_erripcfg" + # fi + # fi + fi +fi +# check if serverip is set as variable @@@serverip@@@ +sed "s,@@@serverip@@@,$serverip," -i /etc/initramfs-setup +[ $DEBUGLEVEL -eq 20 ] && echo "** finished ip config at $(sysup)" + +# on some network adaptors we need to wait for the link to come up +dmesg | grep -q "link down" && for i in 1 1 1 1 ; do + dmesg | grep -q "link up" && break + [ $DEBUGLEVEL -ge 1 ] && echo "network: waited half a second for the \ +link to come up" >>$LOGFILE + sleep $i +done +# ... or ldap if available (in background) +[ -n "$ldap" ] && ldapconf & +# ... or via (t)ftp/http file get (in background) +[ -n "$file" ] && fileget & + +runinithook '25-have-ip-config' + +# if root filesystem should be imported via local or a network block device +if [ -n "${bldmod}" ] ; then + # load block device driver(s) if needed + for module in ${bldmod} ; do + modprobe ${MODPRV} ${module} || error "$init_errbld" + done + mdev -s + [ -z "$bldrfst" ] && bldrfst=squashfs + bldhost=$(checkip $bldhost) + if [ $DEBUGLEVEL -eq 20 ] ; then + echo "** starting setup of ${bldmod} at $(sysup)" + else + echo "Stateless client using ${bldmod} on $bldhost:$bldport with $bldrfst" + fi + # fixme: check for fs in /proc/filesystems before trying to load the module + modprobe ${MODPRV} ${bldrfst} || error "$init_errbld" nonfatal + + # for debugging: interface might not be properly up - check reachability + [ $DEBUGLEVEL -ge 1 ] && ping -c 1 -w 15 ${bldhost} >/dev/null 2>&1 + + case "${srvproto}" in + # network block device present in standard kernel + nbd) + RDEV=/dev/nbd0 + waitfor "${RDEV}" 20000 || error "$init_nbddev" + i=0 + while ! nbd-client $bldhost $bldport ${RDEV} -persist ; do + usleep 100000 + i=$(($i + 1)) + if [ $i -ge 1000 ] ; then + error "$init_nbds"; break + fi + done + usleep 100 + echo deadline > /sys/block/nbd0/queue/scheduler + # echo "32" > /sys/block/nbd0/queue/read_ahead_kb + ;; + # dnbd2 by Vito Di Leo + dnbd2) + RDEV=/dev/vnbd0 + waitfor "${RDEV}" 20000 || error "$init_nbddev" + # quickhack, should be read in from URI + echo 1 > /sys/block/vnbd0/config/vid + echo 1 > /sys/block/vnbd0/config/rid + # check for others in initramfs-setup and then kernel cmdline + rootfs="$(sed -n "/rootfs=/p" /etc/initramfs-setup| \ + sed "s,rootfs=,,;s,\",,g") " + [ "$rootfs" = " " ] && \ + rootfs="$(cat /proc/cmdline|sed "s,.*rootfs=\",,;s,\".*,,") " + i=0 + # assume no more than 16 different dnbd2 servers (default 4) + while [ "x$bldhost" != "x" -a $i -lt 16 ]; do + #echo "I: $i R: $rootfs P:$bldport H:$bldhost" + echo $bldhost $bldport > /sys/block/vnbd0/server${i}/sock + i=$(($i + 1)) + rootfs=${rootfs#* } + bldsp=$(echo ${rootfs}|sed "s, .*,,") + bldhost=$(uri_token $bldsp server) + bldport=$(uri_token $bldsp port) + done + # the cfq scheduler seem not a good idea here + echo deadline > /sys/block/vnbd0/queue/scheduler + # needed for some reason to settle initialization + sleep 1 + i=0 + while [ $(cat /sys/block/vnbd0/config/running) != 1 ] ; do + usleep 100000 + echo 1 > /sys/block/vnbd0/config/running + i=$(($i + 1)) + if [ $i -ge 50 ] ; then + error "$init_dnbd2s"; break + fi + done + echo "64" > /sys/block/vnbd0/queue/read_ahead_kb + ;; + # dnbd by Thorsten Zitterell + dnbd) + # quickhack + RDEV=/dev/dnbd0 + if [ -z $nodnbdcache ] ; then # variable not really used yet + mkdir /dnbd + mount -n -o 'size=20%' -t tmpfs tmpfs /dnbd + ( cat /dev/zero > /dnbd/cache 2>/dev/null || echo "ok" >/tmp/cache ) & + clientopt="-c /dnbd/cache" + waitfor /tmp/cache 10000 + fi + [ $(echo $bldhost|sed "s,\..*,,") -ge 224 ] && \ + ip route add 224.0.0.0/4 dev $nwif + waitfor /dev/dnbd0 10000 || error "$init_nbddev" + echo "dnbd-client -b $bldhost -d $RDEV $clientopt" + while ! dnbd-client -b $bldhost -d $RDEV $clientopt ; do + usleep 10000 + done + # problem with squashfs and cfq scheduler + echo noop > /sys/block/dnbd0/queue/scheduler + echo 0 > /sys/block/dnbd0/queue/read_ahead_kb + ;; + lbd) + # using clients local block device (disk partition is to be specified + RDEV=/dev/$blddev + echo "$bldrfst" >>/etc/filesystems + realbldrfst=$bldrfst + # we might need to mount the base layer filesystem first before accessing + # e.g. a squashfs container file on it + bldrfst=auto + ;; + esac + RWRO="ro" + if [ -n "${cowloop}" -a -x /bin/cowdev ] ; then + modprobe ${MODPRV} cowloop || { + error "$init_loadcow" nonfatal + unset cowloop; } + [ -x /bin/mdev ] && mdev -s + fi + if [ -n "${cowloop}" ] ; then + if [ -n "${unionfs}" -o -n "${aufs}" ] ; then + error "$init_cownobld" + unset unionfs aufs + fi + echo "Using Copy-on-Write block device for rw access" + mount -n -t tmpfs -o size=${cowsize} ramfs ${rwdir} + mkdir /dev/cow && mknod /dev/cow/ctl b 241 255 + usleep 200 + ln -s /dev/cowloop0 /dev/cow/0 + # fixme - cowdev depending on blockdev choosen above ... + cowdev -a /dev/nbd0 ${rwdir}/nbd.cow + usleep 200 + RWRO="rw" + RDEV=/dev/cow/0 + # run ldconfig if not switched off via kernel command line + ldcfg + else + # use normal UnionFS behaviour because rootfs is not NFS + unset nfsro + fi + # finally mount the configured network/local block device + for i in 0 5000 20000 100000 500000 1000000 ; do + usleep $i + mount -n -t $bldrfst -o $RWRO $RDEV /mnt 2>/dev/null && break + done + # check if we got the rootfilesystem directly or need to mount a container + # file from the mounted block device + if [ "${srvproto}" = "lbd" -a -f /mnt/boot/${slxconf_system_name} ]; then + mkdir /dev/bootdisk + mount --move /mnt /dev/bootdisk + mount -t ${realbldrfst} -o loop \ + /dev/bootdisk/boot/${slxconf_system_name} /mnt || error "$init_errloop" + fi + [ $DEBUGLEVEL -eq 20 ] && echo "** finished blockdev setup stuff at $(sysup)" +elif [ -n ${iscsiserver} ] ; then + [ $DEBUGLEVEL -eq 20 ] && echo "** started setting up iSCSI initiator at \ +$(sysup)" + #if [ -n ${iscsitarget} ] ; then + # echo "InitiatorName=${iscsitarget}"|sed "s,@@@serverip@@@,$serverip," \ + # >/etc/initiatorname.iscsi + #else + # discovery + #fi + #echo -e "node.startup = automatic">/etc/iscsid.conf + #iscsid -c /etc/iscsid.conf + # the cowloop part has to be moved (option for iscsi devices too) + # and should be generalized for nbd, dnbd, iscsi +fi + +# if no type of root filesystem is passed via kernel command line try +# information gathered from dhcp process (only valid for nfs) +if [ -z "${bldmod}" -a -z "${bldhost}" -a -z "${nfsserver}" ] ; then + # information has to be read from dhcp and ldap configuration + # cfgcomplete merges all configuration files + cfgcomplete +fi + +# mount nfs rootfs +if [ -z "${bldmod}" -a -z "${bldserver}" ] ; then + [ $DEBUGLEVEL -eq 20 ] && echo "** started nfs mount" + # read in extended initramfs-setup + . /etc/initramfs-setup + # prefer nfsserver and nfspath from kernel commandline over the information + # gotten from dhcp server + if [ -n "${nfsserver}" -a -n "${nfspath}" ] ; then + # check if nfsserver is set as variable @@@serverip@@@ + nfsserver=$(checkip $nfsserver) + else + # we got a problem here + error "$init_nfssp" fatal + fi + # interface might not be properly up - check reachability + ping -c 1 -w 15 ${nfsserver} >/dev/null 2>&1 + # mount the rootfs via nfs readonly (ro) + fsmount nfs ${nfsserver} ${nfspath} /mnt ro + #for transport in tcp udp fail; do + # [ $proto = "fail" ] && { error "$init_nfs"; break; } + # mount -n -t nfs -o ro,nolock,${transport} ${nfsroot} /mnt && break + #done + [ $DEBUGLEVEL -eq 20 ] && echo "** finished nfs mount at $(sysup)" +fi + +runinithook '35-have-network-root' + +# get the complete collection of kernel modules and firmwares available +testmkd /lib/firmware +mount -n --bind /mnt/lib/modules /lib/modules && \ +mount -n --bind /mnt/lib/firmware /lib/firmware || error "$init_moddir" +# start hardware configuration as background process if not a special +# debuglevel (21) is used for the option of manual hwautocfg start +if [ ${DEBUGLEVEL} = 21 ] ; then + echo "You can run 'hwautocfg main &' manually now ..." + /bin/sh +else + [ $DEBUGLEVEL -eq 20 ] && echo "** started hwautocfg in background at \ +$(sysup)" + hwautocfg main & +fi + +runinithook '40-started-hw-config' + +# unionfs/aufs modules visible by now if installed, try to use aufs for rw +# access if available +union_type="" +if [ ${aufs} -eq 1 ] && \ + modprobe ${MODPRV} aufs 2>/dev/null && \ + lsmod | grep -qe "^aufs" ; then union_type="AUFS" +elif [ ${unionfs} -eq 1 ] && \ + modprobe ${MODPRV} unionfs 2>/dev/null && \ + lsmod | grep -qe "^unionfs" ; then union_type="UnionFS" +elif [ ${aufs} -eq 0 -a ${unionfs} -eq 0 -a -z "${cowloop}" ] ; then + error "$init_deselau" nonfatal + unset aufs unionfs +else + error "$init_loadaufs" nonfatal + unset aufs unionfs +fi + +# runtimer +[ $DEBUGLEVEL -eq 8 -o $DEBUGLEVEL -eq 20 ] && \ + echo "** Filesystem setup started at $(sysup)" +# setup of client root filesystem dependent on the availability of UnionFS +if [ "x${union_type}" != "x" ] ; then + echo "Using ${union_type} for rw access" + mkdir -p ${rwdir}/union ${rwdir}/uniontmp /rorootfs + # adapting tempfs size of the device directory (takes /tmp in stage4) + mount -o remount,size=${tmpfssize} ${devdir} + mount -n -t tmpfs -o size=${tmpfssize} none ${rwdir}/uniontmp + # hack for handling unionfs with patched run-init + mount -n --move /mnt /rorootfs + if [ "$union_type" == "UnionFS" ]; then + mount -n -t unionfs -o dirs=${rwdir}/uniontmp:/rorootfs=${nfsro}ro \ + none /mnt + elif [ "$union_type" == "AUFS" ]; then + mount -n -t aufs -o br:/${rwdir}/uniontmp:/rorootfs=ro none /mnt + fi + mkdir -p /mnt/uniontmp + mount -n --move ${rwdir}/uniontmp /mnt/uniontmp + chmod 0755 /mnt/uniontmp /mnt + # running hardware disk/tmp setup now + hwautocfg disk & + # run ldconfig if switched on via kernel command line (token ldsc) or + # triggered by unionized root filesystem + ldcfg +elif [ -z "${cowloop}" ] ; then + # fire up hardware disk/tmp setup first + hwautocfg disk & + echo "Using bind mounts to ramdisk for rw access" + mount -n -t tmpfs -o size=75% ramfs ${rwdir} + for path in ${D_BINDMPTS} ; do + mkdir -p ${rwdir}/${path} >/dev/null 2>&1 + mount -n --bind ${rwdir}/${path} /mnt/${path} + [ ${DEBUGLEVEL} -gt 1 -a ${DEBUGLEVEL} != 8 ] && \ + echo "Created ${rwdir}/${path} and mounted it to /mnt/$path" + done + # see above ... + ldcfg + # save the RO directories mentioned in the distro-specific + # config to a temporary directory. They will later on be restored + for path in ${D_RODIRSINRW}; do + if [ -d /mnt/${path} ] ; then + list="${path} ${list}" + # exclude them from etc copy process too + echo "${path}/*"|sed -e "s,/root/,,;s,^/,," >>/tmp/etc.exclude + mkdir -p /root/${path} >/dev/null 2>&1 + mount -n --bind /mnt/${path} /root/${path} >/dev/null 2>&1 + fi + done + for path in /etc/${D_SYSCONFDIR} ${D_DIRINBINDMNT} ${list}; do + mkdir -p ${rwdir}/${path} + done + testmkd ${rwdir}/var/tmp 1777 + # exclude all sysv runlevel link stuff + for i in ${D_RCDIRS} ${D_INITBOOTD} ; do + echo "*$i/*" >>/tmp/etc.exclude + done + # add list of files to be excluded and common excludes to the filter list + echo -e "-\ndhcp*\n*~\n*.old\n*-\nxorg.conf*" >>/tmp/etc.exclude + # if ld.so.cache is to be generated then do not copy the file + [ -n "${ldsc}" ] && echo -e "ld.so.cache*" >>/tmp/etc.exclude + # for tar exclude lists might be used, more difficult for cp + cd /mnt + tar -X /tmp/etc.exclude -cp etc/*|tar -xp -C ${rwdir} 2>/dev/null + cd / + mount -n --bind ${rwdir}/etc /mnt/etc + mount -n --bind ${rwdir}/var /mnt/var + # get the "covered" mounts back into filesystem structure + for path in ${list}; do + mount -n --move /root/$path /mnt/$path #>>$LOGFILE 2>&1 + done + #rm -rf /root/* >/dev/null 2>&1 + # run some specific stuff !? +fi + +runinithook '50-have-layered-fs' + +# generate a set of default directories +. /etc/openslx.conf +for dir in $OPENSLX_DEFAULT_LOGDIR $OPENSLX_DEFAULT_BINDIR \ + $OPENSLX_DEFAULT_LIBDIR $OPENSLX_DEFAULT_VIRTDIR; do + testmkd /mnt/$dir +done +chmod -R 1777 /mnt/${OPENSLX_DEFAULT_LOGDIR} + +# script for stuff to execute during early bootup +d_mkrlscript init boot.slx "Running configuration postponed from InitRamFS" +echo "fs complete at $(sysup)" >/tmp/fscmpl +# runtimer +[ $DEBUGLEVEL -eq 8 -o $DEBUGLEVEL -eq 20 ] && \ + echo "** Filesystem setup completed at $(sysup)" + +# write debug file information after filesystem setup completed +echo -e "# /etc${D_SYSCONFDIR}/logfile - file created by $0 (initramfs \ +from $date)\n#\n# logfile \ +for linux diskless client specific debugging output\nLOGFILE=\"$LOGFILE\"\n#\ +\n# debug level\nDEBUGLEVEL=\"$DEBUGLEVEL\"" \ + > /mnt/etc/${D_SYSCONFDIR}/logfile || error "$init_errlog" + +# run distribution independent and dependent configuration of files and +# services (offer debug shell in runlevel 22) +if [ ${DEBUGLEVEL} = 22 ] ; then + /bin/sh +else + servconfig & +fi + +for path in @@@COMDIRINDXS@@@ ${D_DIRINDXS} ${D_DIRINBINDMNT} ; do + testmkd /mnt/${path} +done +# Needed writable subdirs nested in readonly subdirs of writable one +for path in ${D_RWDIRSINRO}; do + mount -n -t tmpfs none /mnt/${path} +done +for i in /var/run/utmp /var/log/wtmp /var/log/lastlog /etc/mtab ; do + echo -n > /mnt/$i +done +chown 65534:0 /mnt/var/lib/nobody +# /proc/bus/usb might be deprecated in newer kernels ... +echo -e "# /etc/fstab - file generated by $0 (initramfs from $date)\n#\ +\tOpenSLX Project, info@openslx.com\n\nrootfs\t\t/\t\trootfs\t\tro\t\t 0 0\n\ +proc\t\t/proc\t\tproc\t\tdefaults\t 0 0\ninitramdevs\t/dev\t\ttmpfs\ +\t\trw\t\t 0 0\ndevpts\t\t/dev/pts\tdevpts\t\tmode=0620,gid=5\t 0 0" \ + >/mnt/etc/fstab || error "$init_fstab" +echo -e "rootfs / rootfs rw 0 0\ninitramdevs /dev tmpfs rw\ + 0 0" > /mnt/etc/mtab + +# copy library cache if generated +if [ -n "${ldsc}" ] ; then + # creating library cache takes a while ... + if waitfor /tmp/ldcfg 50000 ; then + test -s /mnt/tmp/ld.so.cache && \ + mv /mnt/tmp/ld.so.cache /mnt/etc/ld.so.cache + else + error "$init_errldcfg" + fi +else + [ $DEBUGLEVEL -gt 2 ] && error "$init_infldcfg" nonfatal +fi + +runinithook '60-have-servconfig' + +# wait a while for hardware setup to complete and start cleanup procedure +[ $DEBUGLEVEL -gt 1 ] && echo "Waiting for hwautocfg to finish ..." +waitfor /tmp/hwcfg 20000 || error "$init_errhw" +hwautocfg finish & + +# wait a while for services setup to complete +[ $DEBUGLEVEL -gt 1 ] && echo "Waiting for servconfig to finish ..." +waitfor /tmp/svcfg 10000 || error "$init_errsw" +# IP configuration is complete and should not be updated automatically +killall -9 udhcpc 2>/dev/null + +# if uniondirs is not set yet, maybe the unions were given via initramfs-setup +if [ -z "$uniondirs" ]; then + if [ "$union_type" == "AUFS" ]; then + # does it contain "://"? + if [ "$aufs" != "${aufs#*://}" ]; then + uniondirs="$aufs" + fi + elif [ "$union_type" == "UnionFS" ]; then + # does it contain "://"? + if [ "$unionfs" != "${unionfs#*://}" ]; then + uniondirs="$unionfs" + fi + fi +fi +# if locations are given that should be unioned with the fs root, do it +if [ -n "$uniondirs" ]; then + include_in_fsroot_union "$union_type" "$uniondirs" +fi + +runinithook '70-before-plugins' + +# ddcinfo temporary overwrite (with kernel cmdline ddcinfo=1) +if [ "${ddcinfo}" = "1" -a -f /initramfs/plugin-conf/xserver.conf ]; then + echo 'xserver_ddcinfo="1"' >> /initramfs/plugin-conf/xserver.conf +fi + +# runtimer +[ $DEBUGLEVEL -eq 8 -o $DEBUGLEVEL -eq 20 ] && \ + echo "** Plugin configuration started at $(sysup)" + +# check for any plugin-specific runlevel scripts and run them, if found: +if [ ${DEBUGLEVEL} = 25 ] ; then + /bin/sh +else + if [ -d /etc/plugin-init.d ]; then + for plugin_starter in /etc/plugin-init.d/*.sh; do + if [ -e $plugin_starter ]; then + [ $DEBUGLEVEL -gt 0 ] \ + && echo -n "Running plugin starter $plugin_starter ..." + [ $DEBUGLEVEL -eq 15 ] \ + && sed '/^#!/ a\\set -x' -i $plugin_starter + init-wrapper $plugin_starter >>/tmp/plugin_starter 2>&1 + if [ $? -eq 0 ]; then + [ $DEBUGLEVEL -gt 0 ] \ + && echo " ok" + else + [ $DEBUGLEVEL -gt 0 ] \ + && echo " failed" + fi + fi + done + # load variables defined by plugins to current environment + [ -f /tmp/env/wrapper.env ] && . /tmp/env/wrapper.env + fi +fi + +runinithook '80-after-plugins' + +# runtimer +[ $DEBUGLEVEL -eq 8 -o $DEBUGLEVEL -eq 20 ] && \ + echo "** Plugin configuration finished at $(sysup)" + +# create links for initial stage4 boot scripts +initial_boot + +runinithook '85-have-initial-boot' + +# post init for some distro specific stuff to run +postinit +# general postinit.local configurable by the admin via openslx/config/<system> +[ -f /initramfs/postinit.local ] && { + [ $DEBUGLEVEL -gt 0 ] && \ + echo -n "Running script /bin/postinit.local ... " + chmod u+x /initramfs/postinit.local + /initramfs/postinit.local + [ $DEBUGLEVEL -gt 0 ] && echo "ok"; } + +# start a debug shell in higher debug levels +[ $DEBUGLEVEL -gt 2 -a $DEBUGLEVEL != 8 ] \ + && echo "DEBUGLEVEL>2: starting debug-shell, exit with CTRL+D" && /bin/sh + +runinithook '90-postinit-done' + +# unmount the bind mounted modules, firmware directories and nfs /tmp/scratch +# (if present) +export ticks +for ticks in 0 1 2 5 10 20 30; do + sleep $ticks && umount -n /lib/modules 2>/dev/null && break + error "$init_wait" nonfatal +done +for ticks in 0 1 2 5 10 20 30; do + sleep $ticks && umount -n /lib/firmware 2>/dev/null && break + error "$init_wait" nonfatal +done +mount 2>/dev/null | grep -q "/tmp/scratch type nfs" && \ + for ticks in 0 1 2 5 10 20 30; do + sleep $ticks && umount -n /tmp/scratch 2>/dev/null && break + done + +mount 2>/dev/null | grep -q /lib/modules && error "$init_errumnt" +# close runlevel script for stuff to execute during early bootup +d_mkrlscript close boot.slx "" +# put /tmp into stage4 mtab and add stuff to stage4 fstab +sed -n "s,/mnt,,;/\/tmp /p" /proc/mounts >> /mnt/etc/mtab +[ -f /tmp/fstab ] && cat /tmp/fstab >> /mnt/etc/fstab +# preparations to leave initramfs - umounting ... +umount -n /sys || error "$init_errsys" nonfatal +umount -n /proc/bus/usb >/dev/null 2>&1 +chmod 1777 /dev/shm /mnt/tmp 2>/dev/null + +runinithook '95-cleanup' + +# kill hwautocfg, servconfig, hwinfo, syslogd, etc. +killall -9 hwautocfg servconfig debugshell hwinfo syslogd logread 2>/dev/null + +# runtimer +[ $DEBUGLEVEL -eq 8 -o $DEBUGLEVEL -eq 20 ] && \ + echo "** SLX init ended near $(sysup)" +# kill the watchdog (autopoweroff, if stage3 init never finishes) +[ -f /tmp/watchdogpid ] && kill $(cat /tmp/watchdogpid) 2>/dev/null +# stop logging services if required and move logfile into stage4 filesystem +# (if exists) +killall klogd 2>/dev/null +[ -f /var/log/slx-boot.log ] && mv /var/log/slx-boot.log \ + /mnt/var/log/slx-s3boot.log +[ -f /var/log/messages ] && cp /var/log/messages \ + /mnt/var/log/slx_messages 2>/dev/null +# if no syslog plugin was configured, start the daemon again writing to no +# logfile directly (useless fake test as placeholder) +# THIS IS NOT WORKING SOMEHOW!! +#[ ! -d /mnt/opt/openslx/plugin-repo/syslog/ ] && syslogd -O /mnt/var/log/testfile + +# move /dev and unmount /proc and unset all old, unneeded environment +# variables +mount -n --move /dev /mnt/dev +umount -n /proc +unset client debug date initrd ip bldroot macaddr nwif nfsroot rootfs ticks \ + vci vga +unset BOOT_IMAGE KCMDLINE KERNEL MODPRV NWMODULES OLDPWD UDEVD_EVENT_TIMEOUT \ + SLXVERSION UDEVD_EXPECTED_SEQNUM PATH + +runinithook '99-handing-over' + +# new style of pivoting (switch_root or run-init) +exec /sbin/switch_root -c dev/console /mnt /sbin/init $DEBUG_UPSTART || \ + error "$init_runinit" diff --git a/src/initramfs/tools/hwinfo/bin/hwinfo-13.11 b/src/initramfs/tools/hwinfo/bin/hwinfo-13.11 Binary files differnew file mode 100755 index 00000000..f2ae313c --- /dev/null +++ b/src/initramfs/tools/hwinfo/bin/hwinfo-13.11 diff --git a/src/initramfs/tools/hwinfo/bin/hwinfo-14.19 b/src/initramfs/tools/hwinfo/bin/hwinfo-14.19 Binary files differnew file mode 100755 index 00000000..af71e25c --- /dev/null +++ b/src/initramfs/tools/hwinfo/bin/hwinfo-14.19 diff --git a/src/initramfs/tools/hwinfo/bin/hwinfo-15.21 b/src/initramfs/tools/hwinfo/bin/hwinfo-15.21 Binary files differnew file mode 100755 index 00000000..87629a5c --- /dev/null +++ b/src/initramfs/tools/hwinfo/bin/hwinfo-15.21 diff --git a/src/initramfs/tools/hwinfo/bin/hwinfo-15.3 b/src/initramfs/tools/hwinfo/bin/hwinfo-15.3 Binary files differnew file mode 100755 index 00000000..4f806b6e --- /dev/null +++ b/src/initramfs/tools/hwinfo/bin/hwinfo-15.3 diff --git a/src/initramfs/tools/hwinfo/bin/hwinfo-16.0 b/src/initramfs/tools/hwinfo/bin/hwinfo-16.0 Binary files differnew file mode 100755 index 00000000..5dbe48a4 --- /dev/null +++ b/src/initramfs/tools/hwinfo/bin/hwinfo-16.0 diff --git a/src/initramfs/tools/hwinfo/db/hwinfo.db.tgz b/src/initramfs/tools/hwinfo/db/hwinfo.db.tgz Binary files differnew file mode 100644 index 00000000..524ee1de --- /dev/null +++ b/src/initramfs/tools/hwinfo/db/hwinfo.db.tgz diff --git a/src/initramfs/tools/hwinfo/lib/libhd.so.13.11 b/src/initramfs/tools/hwinfo/lib/libhd.so.13.11 Binary files differnew file mode 100755 index 00000000..f6fa83a6 --- /dev/null +++ b/src/initramfs/tools/hwinfo/lib/libhd.so.13.11 diff --git a/src/initramfs/tools/hwinfo/lib/libhd.so.14.19 b/src/initramfs/tools/hwinfo/lib/libhd.so.14.19 Binary files differnew file mode 100755 index 00000000..087e7c1e --- /dev/null +++ b/src/initramfs/tools/hwinfo/lib/libhd.so.14.19 diff --git a/src/initramfs/tools/hwinfo/lib/libhd.so.15.21 b/src/initramfs/tools/hwinfo/lib/libhd.so.15.21 Binary files differnew file mode 100755 index 00000000..fe066957 --- /dev/null +++ b/src/initramfs/tools/hwinfo/lib/libhd.so.15.21 diff --git a/src/initramfs/tools/hwinfo/lib/libhd.so.15.3 b/src/initramfs/tools/hwinfo/lib/libhd.so.15.3 Binary files differnew file mode 100755 index 00000000..6ab25238 --- /dev/null +++ b/src/initramfs/tools/hwinfo/lib/libhd.so.15.3 diff --git a/src/initramfs/tools/hwinfo/lib/libhd.so.16.0 b/src/initramfs/tools/hwinfo/lib/libhd.so.16.0 Binary files differnew file mode 100644 index 00000000..3fd68f29 --- /dev/null +++ b/src/initramfs/tools/hwinfo/lib/libhd.so.16.0 diff --git a/src/initramfs/tools/mksquashfs/3.3/mksquashfs b/src/initramfs/tools/mksquashfs/3.3/mksquashfs Binary files differnew file mode 100755 index 00000000..c43d8106 --- /dev/null +++ b/src/initramfs/tools/mksquashfs/3.3/mksquashfs diff --git a/src/initramfs/tools/mksquashfs/3.3/unsquashfs b/src/initramfs/tools/mksquashfs/3.3/unsquashfs Binary files differnew file mode 100755 index 00000000..4a73d690 --- /dev/null +++ b/src/initramfs/tools/mksquashfs/3.3/unsquashfs diff --git a/src/initramfs/tpm/bin/detect-tpm.sh b/src/initramfs/tpm/bin/detect-tpm.sh new file mode 100755 index 00000000..48bc92f7 --- /dev/null +++ b/src/initramfs/tpm/bin/detect-tpm.sh @@ -0,0 +1,60 @@ +#!/bin/sh +# + +SYS_PATH="/sys/class/misc/tpm0/device/" +MODULES="atmel tis nsc infineon" +MODULES_FORCE="tis" +FLAGS="" +FLAGS_FORCE="force=1" + +test_tpm() { + if [ ! -d "$SYS_PATH" ] ; then + return 1 + fi + +# tpm_tis creates "active" and "enabled" files +# _atmel and _nsc only create the "caps" + ACTIVE="$(cat $SYS_PATH/active 2>/dev/null)" + ENABLED="$(cat $SYS_PATH/enabled 2>/dev/null)" + CAPS="$(cat $SYS_PATH/caps 2>/dev/null)" + if [ -n "$ACTIVE" -o -n "$ENABLED" -o -n "$CAPS" ] ; then + echo + echo "successfully detected TPM chip!" + echo + echo "$CAPS" + echo + else + return 2 + fi +} + +try_modules() { + if [ "$1" == "force" ] ; then + MODULES=$MODULES_FORCE + FLAGS=$FLAGS_FORCE + echo "using flags '$FLAGS'" + fi + echo -n "trying modules:" + for module in $MODULES ; do + echo -n " $module" + modprobe tpm_${module} $FLAGS 2>/dev/null + if test_tpm ; then + return 0 + fi + # clean up since e.g. infineon always loads w/o error... + modprobe -r tpm_${module} 2>/dev/null + done + echo + return 1 +} + +# create device-node +test -c /dev/tpm0 || mknod /dev/tpm0 c 10 224 + +if try_modules ; then + exit 0 # success +fi +if ! try_modules force ; then + echo "Warning: no TPM chip found!" + exit 1 +fi diff --git a/src/initramfs/tpm/bin/fetch-sshkeys.sh b/src/initramfs/tpm/bin/fetch-sshkeys.sh new file mode 100755 index 00000000..c385fd47 --- /dev/null +++ b/src/initramfs/tpm/bin/fetch-sshkeys.sh @@ -0,0 +1,28 @@ +#!/bin/sh +# + +SHOWMAC="/bin/showmac.sh" +KEYTRG="/root/.ssh" + +# FIXME: remote-host could be determined from kernel-cmdline, should we? +RHOST="132.230.4.180" + +if [ ! -x "$SHOWMAC" ] ; then + echo "Can't find $SHOWMAC, exiting." + exit 1 +fi +MAC_ETH0="$($SHOWMAC eth0)" + +mkdir -p "$KEYTRG" + +PRIVKEY="id_rsa.tpm-${MAC_ETH0}.sealed" + +echo -n "trying to fetch private key (via tftp):" +tftp -r client-config/tpm/$PRIVKEY -l $KEYTRG/id_rsa -g $RHOST +if [ "$?" -gt 0 ] ; then + echo " FAILED!" + echo "ERROR: can't find private key for this MAC-address: $MAC_ETH0." + exit 2 +fi +echo " $PRIVKEY" +chmod 600 $KEYTRG/id_rsa diff --git a/src/initramfs/tpm/bin/mygetty.sh b/src/initramfs/tpm/bin/mygetty.sh new file mode 100755 index 00000000..db344d21 --- /dev/null +++ b/src/initramfs/tpm/bin/mygetty.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# + +if [ -f "/mnt/sbin/agetty" ] ; then + /mnt/sbin/agetty -n -l /bin/bash 9600 /dev/tty1 +else + echo "agetty-binary not found!" +fi + +# /bin/bash diff --git a/src/initramfs/tpm/bin/showmac.sh b/src/initramfs/tpm/bin/showmac.sh new file mode 100755 index 00000000..ef2aaf21 --- /dev/null +++ b/src/initramfs/tpm/bin/showmac.sh @@ -0,0 +1,9 @@ +#!/bin/sh +# + +DEV="$1" +[ -z "$DEV" ] && DEV="eth0" + +ip link show $DEV | \ + sed -n 's,.*\(..:..:..:..:..:..\) br.*,\1,p' | \ + sed 's,:,-,g' diff --git a/src/initramfs/tpm/etc/bash.bashrc b/src/initramfs/tpm/etc/bash.bashrc new file mode 100644 index 00000000..0c0dc200 --- /dev/null +++ b/src/initramfs/tpm/etc/bash.bashrc @@ -0,0 +1,3 @@ +[ -z "$PS1" ] && return + +PS1="(\h):\w# " diff --git a/src/initramfs/tpm/etc/hosts b/src/initramfs/tpm/etc/hosts new file mode 100644 index 00000000..35337c24 --- /dev/null +++ b/src/initramfs/tpm/etc/hosts @@ -0,0 +1,3 @@ +# needed for tpm stuff ... +127.0.0.1 localhost +::1 localhost ipv6-localhost ipv6-loopback diff --git a/src/initramfs/tpm/etc/inputrc b/src/initramfs/tpm/etc/inputrc new file mode 100644 index 00000000..ac81a394 --- /dev/null +++ b/src/initramfs/tpm/etc/inputrc @@ -0,0 +1 @@ +set bell-style none diff --git a/src/initramfs/tpm/etc/ld.so.preload b/src/initramfs/tpm/etc/ld.so.preload new file mode 100644 index 00000000..a59b3240 --- /dev/null +++ b/src/initramfs/tpm/etc/ld.so.preload @@ -0,0 +1 @@ +/usr/local/share/tpm/lib/libcrypto.so.0.9.8 diff --git a/src/initramfs/tpm/etc/libdeps b/src/initramfs/tpm/etc/libdeps new file mode 100644 index 00000000..9dae75e3 --- /dev/null +++ b/src/initramfs/tpm/etc/libdeps @@ -0,0 +1,34 @@ +# whitespace-separated list containing libraries +# that are required for some binaries to work... + +# tcsd requires libgcc_s, otherwise it exits after the +# first connection socket is closed +lib/libgcc_s.so.1 + +# nss is required to connect to local and remote services: +lib/libnss_compat.so.2 +lib/libnss_files.so.2 + +################ deprecated ################ +# slxldd resolves the dependencies below... +### lib/libpthread.so.0 + +# tcsd: +### lib/libdl.so.2 +### lib/libz.so.1 + +# ssh/scp: +### lib/libresolv.so.2 +### lib/libutil.so.1 +### lib/libnsl.so.1 +### lib/libcrypt.so.1 +### usr/lib/libopensc.so.2 +### usr/lib/libgssapi_krb5.so.2 +### usr/lib/libkrb5.so.3 +### usr/lib/libk5crypto.so.3 +### usr/lib/libscconf.so.2 +### usr/lib/libssl.so.0.9.8 +### usr/lib/libopenct.so.1 +### usr/lib/libpcsclite.so.1 +### usr/lib/libltdl.so.3 +### usr/lib/libkrb5support.so.0 diff --git a/src/initramfs/tpm/etc/passwd b/src/initramfs/tpm/etc/passwd new file mode 100644 index 00000000..644c98f1 --- /dev/null +++ b/src/initramfs/tpm/etc/passwd @@ -0,0 +1,5 @@ +root:x:0:0:root:/root:/bin/bash +bin:x:1:1:bin:/bin:/bin/bash +daemon:x:2:2:Daemon:/sbin:/bin/bash +tss:x:111:112:Trusted Software Stack:/var/lib/tpm/:/bin/false +nobody:x:65534:65533:nobody:/var/lib/nobody:/bin/bash diff --git a/src/initramfs/tpm/var/lib/tpm/system.data b/src/initramfs/tpm/var/lib/tpm/system.data Binary files differnew file mode 100644 index 00000000..ad10a1cd --- /dev/null +++ b/src/initramfs/tpm/var/lib/tpm/system.data diff --git a/src/initramfs/uclib-rootfs.old/bin/ash b/src/initramfs/uclib-rootfs.old/bin/ash new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/ash @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/busybox b/src/initramfs/uclib-rootfs.old/bin/busybox Binary files differnew file mode 100755 index 00000000..8a9e390b --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/busybox diff --git a/src/initramfs/uclib-rootfs.old/bin/cat b/src/initramfs/uclib-rootfs.old/bin/cat new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/cat @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/chgrp b/src/initramfs/uclib-rootfs.old/bin/chgrp new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/chgrp @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/chmod b/src/initramfs/uclib-rootfs.old/bin/chmod new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/chmod @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/chown b/src/initramfs/uclib-rootfs.old/bin/chown new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/chown @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/cp b/src/initramfs/uclib-rootfs.old/bin/cp new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/cp @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/cpio b/src/initramfs/uclib-rootfs.old/bin/cpio new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/cpio @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/cttyhack b/src/initramfs/uclib-rootfs.old/bin/cttyhack new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/cttyhack @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/date b/src/initramfs/uclib-rootfs.old/bin/date new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/date @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/dd b/src/initramfs/uclib-rootfs.old/bin/dd new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/dd @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/df b/src/initramfs/uclib-rootfs.old/bin/df new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/df @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/dmesg b/src/initramfs/uclib-rootfs.old/bin/dmesg new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/dmesg @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/echo b/src/initramfs/uclib-rootfs.old/bin/echo new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/echo @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/egrep b/src/initramfs/uclib-rootfs.old/bin/egrep new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/egrep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/false b/src/initramfs/uclib-rootfs.old/bin/false new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/false @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/grep b/src/initramfs/uclib-rootfs.old/bin/grep new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/grep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/gunzip b/src/initramfs/uclib-rootfs.old/bin/gunzip new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/gunzip @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/gzip b/src/initramfs/uclib-rootfs.old/bin/gzip new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/gzip @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/ip b/src/initramfs/uclib-rootfs.old/bin/ip new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/ip @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/ipcalc b/src/initramfs/uclib-rootfs.old/bin/ipcalc new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/ipcalc @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/kill b/src/initramfs/uclib-rootfs.old/bin/kill new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/kill @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/ldconfig b/src/initramfs/uclib-rootfs.old/bin/ldconfig Binary files differnew file mode 100755 index 00000000..71ea4b7c --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/ldconfig diff --git a/src/initramfs/uclib-rootfs.old/bin/ln b/src/initramfs/uclib-rootfs.old/bin/ln new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/ln @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/ls b/src/initramfs/uclib-rootfs.old/bin/ls new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/ls @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/mkdir b/src/initramfs/uclib-rootfs.old/bin/mkdir new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/mkdir @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/mknod b/src/initramfs/uclib-rootfs.old/bin/mknod new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/mknod @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/mount b/src/initramfs/uclib-rootfs.old/bin/mount new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/mount @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/mv b/src/initramfs/uclib-rootfs.old/bin/mv new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/mv @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/nice b/src/initramfs/uclib-rootfs.old/bin/nice new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/nice @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/pidof b/src/initramfs/uclib-rootfs.old/bin/pidof new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/pidof @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/ping b/src/initramfs/uclib-rootfs.old/bin/ping new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/ping @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/ps b/src/initramfs/uclib-rootfs.old/bin/ps new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/ps @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/pwd b/src/initramfs/uclib-rootfs.old/bin/pwd new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/pwd @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/rm b/src/initramfs/uclib-rootfs.old/bin/rm new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/rm @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/sed b/src/initramfs/uclib-rootfs.old/bin/sed new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/sed @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/sh b/src/initramfs/uclib-rootfs.old/bin/sh new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/sh @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/sleep b/src/initramfs/uclib-rootfs.old/bin/sleep new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/sleep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/sync b/src/initramfs/uclib-rootfs.old/bin/sync new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/sync @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/tar b/src/initramfs/uclib-rootfs.old/bin/tar new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/tar @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/touch b/src/initramfs/uclib-rootfs.old/bin/touch new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/touch @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/true b/src/initramfs/uclib-rootfs.old/bin/true new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/true @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/umount b/src/initramfs/uclib-rootfs.old/bin/umount new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/umount @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/uname b/src/initramfs/uclib-rootfs.old/bin/uname new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/uname @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/usleep b/src/initramfs/uclib-rootfs.old/bin/usleep new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/usleep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/vi b/src/initramfs/uclib-rootfs.old/bin/vi new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/vi @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/bin/zcat b/src/initramfs/uclib-rootfs.old/bin/zcat new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/bin/zcat @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/etc/ld.so.cache b/src/initramfs/uclib-rootfs.old/etc/ld.so.cache Binary files differnew file mode 100644 index 00000000..eb53c2b9 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/etc/ld.so.cache diff --git a/src/initramfs/uclib-rootfs.old/etc/terminfo/a/ansi b/src/initramfs/uclib-rootfs.old/etc/terminfo/a/ansi Binary files differnew file mode 100644 index 00000000..52e58b23 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/etc/terminfo/a/ansi diff --git a/src/initramfs/uclib-rootfs.old/etc/terminfo/d/dumb b/src/initramfs/uclib-rootfs.old/etc/terminfo/d/dumb Binary files differnew file mode 100644 index 00000000..fd4091a9 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/etc/terminfo/d/dumb diff --git a/src/initramfs/uclib-rootfs.old/etc/terminfo/l/linux b/src/initramfs/uclib-rootfs.old/etc/terminfo/l/linux Binary files differnew file mode 100644 index 00000000..2c3ceb70 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/etc/terminfo/l/linux diff --git a/src/initramfs/uclib-rootfs.old/etc/terminfo/r/rxvt b/src/initramfs/uclib-rootfs.old/etc/terminfo/r/rxvt Binary files differnew file mode 100644 index 00000000..1e81ea1f --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/etc/terminfo/r/rxvt diff --git a/src/initramfs/uclib-rootfs.old/etc/terminfo/s/screen b/src/initramfs/uclib-rootfs.old/etc/terminfo/s/screen Binary files differnew file mode 100644 index 00000000..142b54a6 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/etc/terminfo/s/screen diff --git a/src/initramfs/uclib-rootfs.old/etc/terminfo/s/sun b/src/initramfs/uclib-rootfs.old/etc/terminfo/s/sun Binary files differnew file mode 100644 index 00000000..1976f973 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/etc/terminfo/s/sun diff --git a/src/initramfs/uclib-rootfs.old/etc/terminfo/v/vt100 b/src/initramfs/uclib-rootfs.old/etc/terminfo/v/vt100 Binary files differnew file mode 100644 index 00000000..1a7176dd --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/etc/terminfo/v/vt100 diff --git a/src/initramfs/uclib-rootfs.old/etc/terminfo/v/vt102 b/src/initramfs/uclib-rootfs.old/etc/terminfo/v/vt102 Binary files differnew file mode 100644 index 00000000..b9a393c5 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/etc/terminfo/v/vt102 diff --git a/src/initramfs/uclib-rootfs.old/etc/terminfo/v/vt200 b/src/initramfs/uclib-rootfs.old/etc/terminfo/v/vt200 new file mode 120000 index 00000000..5f37425d --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/etc/terminfo/v/vt200 @@ -0,0 +1 @@ +../v/vt220
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/etc/terminfo/v/vt220 b/src/initramfs/uclib-rootfs.old/etc/terminfo/v/vt220 Binary files differnew file mode 100644 index 00000000..b3d4d9fb --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/etc/terminfo/v/vt220 diff --git a/src/initramfs/uclib-rootfs.old/etc/terminfo/v/vt52 b/src/initramfs/uclib-rootfs.old/etc/terminfo/v/vt52 Binary files differnew file mode 100644 index 00000000..b3f466f2 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/etc/terminfo/v/vt52 diff --git a/src/initramfs/uclib-rootfs.old/etc/terminfo/x/xterm b/src/initramfs/uclib-rootfs.old/etc/terminfo/x/xterm Binary files differnew file mode 100644 index 00000000..a626ac94 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/etc/terminfo/x/xterm diff --git a/src/initramfs/uclib-rootfs.old/etc/terminfo/x/xterm-color b/src/initramfs/uclib-rootfs.old/etc/terminfo/x/xterm-color Binary files differnew file mode 100644 index 00000000..10bf2e1a --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/etc/terminfo/x/xterm-color diff --git a/src/initramfs/uclib-rootfs.old/etc/terminfo/x/xterm-xfree86 b/src/initramfs/uclib-rootfs.old/etc/terminfo/x/xterm-xfree86 Binary files differnew file mode 100644 index 00000000..f5f9c2d3 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/etc/terminfo/x/xterm-xfree86 diff --git a/src/initramfs/uclib-rootfs.old/lib/ld-uClibc-0.9.30.1.so b/src/initramfs/uclib-rootfs.old/lib/ld-uClibc-0.9.30.1.so Binary files differnew file mode 100755 index 00000000..51a8fc4b --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/ld-uClibc-0.9.30.1.so diff --git a/src/initramfs/uclib-rootfs.old/lib/ld-uClibc.so.0 b/src/initramfs/uclib-rootfs.old/lib/ld-uClibc.so.0 new file mode 120000 index 00000000..3dc0074e --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/ld-uClibc.so.0 @@ -0,0 +1 @@ +ld-uClibc-0.9.30.1.so
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/lib/libc.so.0 b/src/initramfs/uclib-rootfs.old/lib/libc.so.0 new file mode 120000 index 00000000..7ea3dfa2 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libc.so.0 @@ -0,0 +1 @@ +libuClibc-0.9.30.1.so
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/lib/libcrypt-0.9.30.1.so b/src/initramfs/uclib-rootfs.old/lib/libcrypt-0.9.30.1.so Binary files differnew file mode 100755 index 00000000..e5c3d405 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libcrypt-0.9.30.1.so diff --git a/src/initramfs/uclib-rootfs.old/lib/libcrypt.so.0 b/src/initramfs/uclib-rootfs.old/lib/libcrypt.so.0 new file mode 120000 index 00000000..efbe4755 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libcrypt.so.0 @@ -0,0 +1 @@ +libcrypt-0.9.30.1.so
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/lib/libdl-0.9.30.1.so b/src/initramfs/uclib-rootfs.old/lib/libdl-0.9.30.1.so Binary files differnew file mode 100755 index 00000000..3a4c5784 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libdl-0.9.30.1.so diff --git a/src/initramfs/uclib-rootfs.old/lib/libdl.so.0 b/src/initramfs/uclib-rootfs.old/lib/libdl.so.0 new file mode 120000 index 00000000..94f8b370 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libdl.so.0 @@ -0,0 +1 @@ +libdl-0.9.30.1.so
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/lib/libm-0.9.30.1.so b/src/initramfs/uclib-rootfs.old/lib/libm-0.9.30.1.so Binary files differnew file mode 100755 index 00000000..18b0eaf4 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libm-0.9.30.1.so diff --git a/src/initramfs/uclib-rootfs.old/lib/libm.so.0 b/src/initramfs/uclib-rootfs.old/lib/libm.so.0 new file mode 120000 index 00000000..7c83f175 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libm.so.0 @@ -0,0 +1 @@ +libm-0.9.30.1.so
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/lib/libnsl-0.9.30.1.so b/src/initramfs/uclib-rootfs.old/lib/libnsl-0.9.30.1.so Binary files differnew file mode 100755 index 00000000..d10310dd --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libnsl-0.9.30.1.so diff --git a/src/initramfs/uclib-rootfs.old/lib/libnsl.so.0 b/src/initramfs/uclib-rootfs.old/lib/libnsl.so.0 new file mode 120000 index 00000000..06a67360 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libnsl.so.0 @@ -0,0 +1 @@ +libnsl-0.9.30.1.so
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/lib/libpthread-0.9.30.1.so b/src/initramfs/uclib-rootfs.old/lib/libpthread-0.9.30.1.so Binary files differnew file mode 100755 index 00000000..34953439 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libpthread-0.9.30.1.so diff --git a/src/initramfs/uclib-rootfs.old/lib/libpthread.so.0 b/src/initramfs/uclib-rootfs.old/lib/libpthread.so.0 new file mode 120000 index 00000000..6e3f5a3d --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libpthread.so.0 @@ -0,0 +1 @@ +libpthread-0.9.30.1.so
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/lib/libresolv-0.9.30.1.so b/src/initramfs/uclib-rootfs.old/lib/libresolv-0.9.30.1.so Binary files differnew file mode 100755 index 00000000..42f2dda0 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libresolv-0.9.30.1.so diff --git a/src/initramfs/uclib-rootfs.old/lib/libresolv.so.0 b/src/initramfs/uclib-rootfs.old/lib/libresolv.so.0 new file mode 120000 index 00000000..5fbd926b --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libresolv.so.0 @@ -0,0 +1 @@ +libresolv-0.9.30.1.so
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/lib/librt-0.9.30.1.so b/src/initramfs/uclib-rootfs.old/lib/librt-0.9.30.1.so Binary files differnew file mode 100755 index 00000000..6595380e --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/librt-0.9.30.1.so diff --git a/src/initramfs/uclib-rootfs.old/lib/librt.so.0 b/src/initramfs/uclib-rootfs.old/lib/librt.so.0 new file mode 120000 index 00000000..f61c6e12 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/librt.so.0 @@ -0,0 +1 @@ +librt-0.9.30.1.so
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/lib/libthread_db-0.9.30.1.so b/src/initramfs/uclib-rootfs.old/lib/libthread_db-0.9.30.1.so Binary files differnew file mode 100755 index 00000000..2946dac7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libthread_db-0.9.30.1.so diff --git a/src/initramfs/uclib-rootfs.old/lib/libthread_db.so.1 b/src/initramfs/uclib-rootfs.old/lib/libthread_db.so.1 new file mode 120000 index 00000000..30ee3cef --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libthread_db.so.1 @@ -0,0 +1 @@ +libthread_db-0.9.30.1.so
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/lib/libuClibc-0.9.30.1.so b/src/initramfs/uclib-rootfs.old/lib/libuClibc-0.9.30.1.so Binary files differnew file mode 100755 index 00000000..0300bb7c --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libuClibc-0.9.30.1.so diff --git a/src/initramfs/uclib-rootfs.old/lib/libutil-0.9.30.1.so b/src/initramfs/uclib-rootfs.old/lib/libutil-0.9.30.1.so Binary files differnew file mode 100755 index 00000000..b1c68245 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libutil-0.9.30.1.so diff --git a/src/initramfs/uclib-rootfs.old/lib/libutil.so.0 b/src/initramfs/uclib-rootfs.old/lib/libutil.so.0 new file mode 120000 index 00000000..c7d6d48b --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libutil.so.0 @@ -0,0 +1 @@ +libutil-0.9.30.1.so
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/lib/libz.so b/src/initramfs/uclib-rootfs.old/lib/libz.so new file mode 120000 index 00000000..c52c0288 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libz.so @@ -0,0 +1 @@ +libz.so.1.2.3
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/lib/libz.so.1 b/src/initramfs/uclib-rootfs.old/lib/libz.so.1 new file mode 120000 index 00000000..c52c0288 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libz.so.1 @@ -0,0 +1 @@ +libz.so.1.2.3
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/lib/libz.so.1.2.3 b/src/initramfs/uclib-rootfs.old/lib/libz.so.1.2.3 Binary files differnew file mode 100755 index 00000000..1b2329fb --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/lib/libz.so.1.2.3 diff --git a/src/initramfs/uclib-rootfs.old/sbin/dnbd-client b/src/initramfs/uclib-rootfs.old/sbin/dnbd-client Binary files differnew file mode 100755 index 00000000..4d1f4b2c --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/dnbd-client diff --git a/src/initramfs/uclib-rootfs.old/sbin/fbsplash b/src/initramfs/uclib-rootfs.old/sbin/fbsplash new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/fbsplash @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/fdisk b/src/initramfs/uclib-rootfs.old/sbin/fdisk new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/fdisk @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/getty b/src/initramfs/uclib-rootfs.old/sbin/getty new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/getty @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/halt b/src/initramfs/uclib-rootfs.old/sbin/halt new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/halt @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/hdparm b/src/initramfs/uclib-rootfs.old/sbin/hdparm new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/hdparm @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/hwclock b/src/initramfs/uclib-rootfs.old/sbin/hwclock new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/hwclock @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/ifrename b/src/initramfs/uclib-rootfs.old/sbin/ifrename Binary files differnew file mode 100755 index 00000000..015f7a4c --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/ifrename diff --git a/src/initramfs/uclib-rootfs.old/sbin/inotifyd b/src/initramfs/uclib-rootfs.old/sbin/inotifyd new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/inotifyd @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/insmod b/src/initramfs/uclib-rootfs.old/sbin/insmod new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/insmod @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/klogd b/src/initramfs/uclib-rootfs.old/sbin/klogd new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/klogd @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/loadkmap b/src/initramfs/uclib-rootfs.old/sbin/loadkmap new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/loadkmap @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/logread b/src/initramfs/uclib-rootfs.old/sbin/logread new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/logread @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/lsmod b/src/initramfs/uclib-rootfs.old/sbin/lsmod new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/lsmod @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/mdev b/src/initramfs/uclib-rootfs.old/sbin/mdev new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/mdev @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/mkdosfs b/src/initramfs/uclib-rootfs.old/sbin/mkdosfs new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/mkdosfs @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/mkfs.vfat b/src/initramfs/uclib-rootfs.old/sbin/mkfs.vfat new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/mkfs.vfat @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/mkswap b/src/initramfs/uclib-rootfs.old/sbin/mkswap new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/mkswap @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/modprobe b/src/initramfs/uclib-rootfs.old/sbin/modprobe new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/modprobe @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/nbd-client b/src/initramfs/uclib-rootfs.old/sbin/nbd-client Binary files differnew file mode 100755 index 00000000..c22cb4b7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/nbd-client diff --git a/src/initramfs/uclib-rootfs.old/sbin/poweroff b/src/initramfs/uclib-rootfs.old/sbin/poweroff new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/poweroff @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/reboot b/src/initramfs/uclib-rootfs.old/sbin/reboot new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/reboot @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/rmmod b/src/initramfs/uclib-rootfs.old/sbin/rmmod new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/rmmod @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/route b/src/initramfs/uclib-rootfs.old/sbin/route new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/route @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/start-stop-daemon b/src/initramfs/uclib-rootfs.old/sbin/start-stop-daemon new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/start-stop-daemon @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/swapoff b/src/initramfs/uclib-rootfs.old/sbin/swapoff new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/swapoff @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/swapon b/src/initramfs/uclib-rootfs.old/sbin/swapon new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/swapon @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/switch_root b/src/initramfs/uclib-rootfs.old/sbin/switch_root new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/switch_root @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/sysctl b/src/initramfs/uclib-rootfs.old/sbin/sysctl new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/sysctl @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/syslogd b/src/initramfs/uclib-rootfs.old/sbin/syslogd new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/syslogd @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/tunctl b/src/initramfs/uclib-rootfs.old/sbin/tunctl new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/tunctl @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/udhcpc b/src/initramfs/uclib-rootfs.old/sbin/udhcpc new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/udhcpc @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/vconfig b/src/initramfs/uclib-rootfs.old/sbin/vconfig new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/vconfig @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/watchdog b/src/initramfs/uclib-rootfs.old/sbin/watchdog new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/watchdog @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/sbin/zcip b/src/initramfs/uclib-rootfs.old/sbin/zcip new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/sbin/zcip @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/[ b/src/initramfs/uclib-rootfs.old/usr/bin/[ new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/[ @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/[[ b/src/initramfs/uclib-rootfs.old/usr/bin/[[ new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/[[ @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/ar b/src/initramfs/uclib-rootfs.old/usr/bin/ar new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/ar @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/arping b/src/initramfs/uclib-rootfs.old/usr/bin/arping new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/arping @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/awk b/src/initramfs/uclib-rootfs.old/usr/bin/awk new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/awk @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/basename b/src/initramfs/uclib-rootfs.old/usr/bin/basename new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/basename @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/bunzip2 b/src/initramfs/uclib-rootfs.old/usr/bin/bunzip2 new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/bunzip2 @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/bzcat b/src/initramfs/uclib-rootfs.old/usr/bin/bzcat new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/bzcat @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/bzip2 b/src/initramfs/uclib-rootfs.old/usr/bin/bzip2 new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/bzip2 @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/chvt b/src/initramfs/uclib-rootfs.old/usr/bin/chvt new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/chvt @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/cut b/src/initramfs/uclib-rootfs.old/usr/bin/cut new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/cut @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/deallocvt b/src/initramfs/uclib-rootfs.old/usr/bin/deallocvt new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/deallocvt @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/du b/src/initramfs/uclib-rootfs.old/usr/bin/du new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/du @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/eject b/src/initramfs/uclib-rootfs.old/usr/bin/eject new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/eject @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/env b/src/initramfs/uclib-rootfs.old/usr/bin/env new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/env @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/expr b/src/initramfs/uclib-rootfs.old/usr/bin/expr new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/expr @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/find b/src/initramfs/uclib-rootfs.old/usr/bin/find new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/find @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/free b/src/initramfs/uclib-rootfs.old/usr/bin/free new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/free @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/ftpget b/src/initramfs/uclib-rootfs.old/usr/bin/ftpget new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/ftpget @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/ftpput b/src/initramfs/uclib-rootfs.old/usr/bin/ftpput new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/ftpput @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/getent b/src/initramfs/uclib-rootfs.old/usr/bin/getent new file mode 100755 index 00000000..30d515b7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/getent @@ -0,0 +1,43 @@ +#!/bin/sh +# $Header: /var/cvs/uClibc/extra/scripts/getent,v 1.2 2005/02/02 14:18:01 solar Exp $ +# +# Closely (not perfectly) emulate the behavior of glibc's getent utility +# +#passwd|shadow|group|aliases|hosts|networks|ethers|netgroup|protocols|services|rpc +# only returns the first match (by design) +# dns based search is not supported (hosts,networks) +# case-insensitive matches not supported (ethers; others?) +# may return false-positives (hosts,protocols,rpc,services,ethers) + +export PATH="${PATH}:/bin:/usr/bin" + +file="/etc/$1" +case $1 in + passwd|group) + match="^$2:\|^[^:]*:[^:]*:$2:" ;; + shadow) + match="^$2:" ;; + networks|netgroup) + match="^[[:space:]]*$2\>" ;; + hosts|protocols|rpc|services|ethers) + match="\<$2\>" ;; + aliases) + match="^[[:space:]]*$2[[:space:]]*:" ;; + ""|-h|--help) + echo "USAGE: $0 database [key]" + exit 0 ;; + *) + echo "$0: Unknown database: $1" 1>&2 + exit 1 ;; +esac + +if [ ! -f "$file" ] ; then + echo "$0: Could not find database file for $1" 1>&2 + exit 1 +fi + +if [ $# -eq 1 ] ; then + exec cat "$file" +else + sed "s/#.*//; /$match/q; d" "$file" | grep . || exit 2 +fi diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/head b/src/initramfs/uclib-rootfs.old/usr/bin/head new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/head @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/id b/src/initramfs/uclib-rootfs.old/usr/bin/id new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/id @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/killall b/src/initramfs/uclib-rootfs.old/usr/bin/killall new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/killall @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/ldd b/src/initramfs/uclib-rootfs.old/usr/bin/ldd Binary files differnew file mode 100755 index 00000000..f018ad28 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/ldd diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/less b/src/initramfs/uclib-rootfs.old/usr/bin/less new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/less @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/logger b/src/initramfs/uclib-rootfs.old/usr/bin/logger new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/logger @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/lzmacat b/src/initramfs/uclib-rootfs.old/usr/bin/lzmacat new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/lzmacat @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/md5sum b/src/initramfs/uclib-rootfs.old/usr/bin/md5sum new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/md5sum @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/nc b/src/initramfs/uclib-rootfs.old/usr/bin/nc new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/nc @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/ncurses5-config b/src/initramfs/uclib-rootfs.old/usr/bin/ncurses5-config new file mode 100755 index 00000000..bef48cd7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/ncurses5-config @@ -0,0 +1,156 @@ +#!/bin/sh +# $Id: ncurses-config.in,v 1.11 2006/10/28 20:22:52 tom Exp $ +############################################################################## +# Copyright (c) 2006 Free Software Foundation, Inc. # +# # +# Permission is hereby granted, free of charge, to any person obtaining a # +# copy of this software and associated documentation files (the "Software"), # +# to deal in the Software without restriction, including without limitation # +# the rights to use, copy, modify, merge, publish, distribute, distribute # +# with modifications, sublicense, and/or sell copies of the Software, and to # +# permit persons to whom the Software is furnished to do so, subject to the # +# following conditions: # +# # +# The above copyright notice and this permission notice shall be included in # +# all copies or substantial portions of the Software. # +# # +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR # +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, # +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL # +# THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER # +# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING # +# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER # +# DEALINGS IN THE SOFTWARE. # +# # +# Except as contained in this notice, the name(s) of the above copyright # +# holders shall not be used in advertising or otherwise to promote the sale, # +# use or other dealings in this Software without prior written # +# authorization. # +############################################################################## +# +# Author: Thomas E. Dickey, 2006 + +prefix="/usr" +exec_prefix="${prefix}" + +bindir="${exec_prefix}/bin" +libdir="/lib" +datadir="/usr/share" +mandir="/usr/share/man" + +THIS="ncurses" + +test $# = 0 && exec /bin/sh $0 --error + +while test $# -gt 0; do + case "$1" in + -*=*) + ARG=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` + ;; + *) + ARG= + ;; + esac + + case "$1" in + # basic configuration + --prefix=*) + prefix="$ARG" + test -z "$exec_prefix" && exec_prefix="$ARG" + ;; + --prefix) + echo "$prefix" + ;; + --exec-prefix=*) + exec_prefix="$ARG" + ;; + --exec-prefix) + echo "$exec_prefix" + ;; + # compile/link + --cflags) + INCS= + if test "${prefix}/include" != /usr/include ; then + INCS="-I${prefix}/include" + fi + if test "" != no ; then + INCS="$INCS -I${prefix}/include/${THIS}" + fi + sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO + $INCS +ENDECHO + ;; + --libs) + sed -e 's,^[ ]*,,' -e 's, [ ]*, ,g' -e 's,[ ]*$,,' <<-ENDECHO + -L${exec_prefix}/lib -l${THIS} +ENDECHO + ;; + # identification + --version) + echo "5.6.20061217" + ;; + --abi-version) + echo "5" + ;; + --mouse-version) + echo "1" + ;; + # locations + --bindir) + echo "${bindir}" + ;; + --datadir) + echo "${datadir}" + ;; + --libdir) + echo "${libdir}" + ;; + --mandir) + echo "${mandir}" + ;; + --terminfo) + echo "/usr/share/terminfo" + ;; + --terminfo-dirs) + echo "/etc/terminfo:/usr/share/terminfo" + ;; + --termpath) + echo "" + ;; + # general info + --help) + cat <<ENDHELP +Usage: ${THIS}-config [options] + +Options: + --prefix echos the package-prefix of ${THIS} + --prefix=ARG sets the package-prefix of ${THIS} + --exec-prefix echos the executable-prefix of ${THIS} + --exec-prefix=ARG sets the executable-prefix of ${THIS} + + --cflags echos the C compiler flags needed to compile with ${THIS} + --libs echos the libraries needed to link with ${THIS} + + --version echos the release+patchdate version of ${THIS} + --abi-version echos the ABI version of ${THIS} + --mouse-version echos the mouse-interface version of ${THIS} + + --bindir echos the directory containing ${THIS} programs + --datadir echos the directory containing ${THIS} data + --libdir echos the directory containing ${THIS} libraries + --mandir echos the directory containing ${THIS} manpages + --terminfo echos the \$TERMINFO terminfo database path + --terminfo-dirs echos the \$TERMINFO_DIRS directory list + --termpath echos the \$TERMPATH termcap list + + --help prints this message +ENDHELP + ;; + --error|*) + /bin/sh $0 --help 1>&2 + exit 1 + ;; + esac + shift +done +# vile:shmode diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/nmeter b/src/initramfs/uclib-rootfs.old/usr/bin/nmeter new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/nmeter @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/openvt b/src/initramfs/uclib-rootfs.old/usr/bin/openvt new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/openvt @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/printf b/src/initramfs/uclib-rootfs.old/usr/bin/printf new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/printf @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/readahead b/src/initramfs/uclib-rootfs.old/usr/bin/readahead new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/readahead @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/readlink b/src/initramfs/uclib-rootfs.old/usr/bin/readlink new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/readlink @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/realpath b/src/initramfs/uclib-rootfs.old/usr/bin/realpath new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/realpath @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/rpm2cpio b/src/initramfs/uclib-rootfs.old/usr/bin/rpm2cpio new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/rpm2cpio @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/sort b/src/initramfs/uclib-rootfs.old/usr/bin/sort new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/sort @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/strace b/src/initramfs/uclib-rootfs.old/usr/bin/strace Binary files differnew file mode 100755 index 00000000..3aec0598 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/strace diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/strings b/src/initramfs/uclib-rootfs.old/usr/bin/strings new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/strings @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/tail b/src/initramfs/uclib-rootfs.old/usr/bin/tail new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/tail @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/test b/src/initramfs/uclib-rootfs.old/usr/bin/test new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/test @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/tftp b/src/initramfs/uclib-rootfs.old/usr/bin/tftp new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/tftp @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/time b/src/initramfs/uclib-rootfs.old/usr/bin/time new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/time @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/timeout b/src/initramfs/uclib-rootfs.old/usr/bin/timeout new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/timeout @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/tr b/src/initramfs/uclib-rootfs.old/usr/bin/tr new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/tr @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/uniq b/src/initramfs/uclib-rootfs.old/usr/bin/uniq new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/uniq @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/unlzma b/src/initramfs/uclib-rootfs.old/usr/bin/unlzma new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/unlzma @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/uptime b/src/initramfs/uclib-rootfs.old/usr/bin/uptime new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/uptime @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/wc b/src/initramfs/uclib-rootfs.old/usr/bin/wc new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/wc @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/wget b/src/initramfs/uclib-rootfs.old/usr/bin/wget new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/wget @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/which b/src/initramfs/uclib-rootfs.old/usr/bin/which new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/which @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/whoami b/src/initramfs/uclib-rootfs.old/usr/bin/whoami new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/whoami @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/bin/xargs b/src/initramfs/uclib-rootfs.old/usr/bin/xargs new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/bin/xargs @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/lib/libc.so b/src/initramfs/uclib-rootfs.old/usr/lib/libc.so new file mode 100755 index 00000000..32a2e3d9 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/lib/libc.so @@ -0,0 +1,5 @@ +/* GNU ld script + * Use the shared library, but some functions are only in + * the static library, so try that secondarily. */ +OUTPUT_FORMAT ( elf32-i386 ) +GROUP ( /usr/lib/uclibc_nonshared.a /lib/libc.so.0 AS_NEEDED ( /lib/ld-uClibc.so.0 ) ) diff --git a/src/initramfs/uclib-rootfs.old/usr/lib/libcrypt.so b/src/initramfs/uclib-rootfs.old/usr/lib/libcrypt.so new file mode 120000 index 00000000..42735716 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/lib/libcrypt.so @@ -0,0 +1 @@ +../../lib/libcrypt.so.0
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/lib/libdl.so b/src/initramfs/uclib-rootfs.old/usr/lib/libdl.so new file mode 120000 index 00000000..f648150a --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/lib/libdl.so @@ -0,0 +1 @@ +../../lib/libdl.so.0
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/lib/libm.so b/src/initramfs/uclib-rootfs.old/usr/lib/libm.so new file mode 120000 index 00000000..8d5c614e --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/lib/libm.so @@ -0,0 +1 @@ +../../lib/libm.so.0
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/lib/libnsl.so b/src/initramfs/uclib-rootfs.old/usr/lib/libnsl.so new file mode 120000 index 00000000..b4a08661 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/lib/libnsl.so @@ -0,0 +1 @@ +../../lib/libnsl.so.0
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/lib/libpthread.so b/src/initramfs/uclib-rootfs.old/usr/lib/libpthread.so new file mode 120000 index 00000000..57f4003c --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/lib/libpthread.so @@ -0,0 +1 @@ +../../lib/libpthread.so.0
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/lib/libresolv.so b/src/initramfs/uclib-rootfs.old/usr/lib/libresolv.so new file mode 120000 index 00000000..f5b11fcd --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/lib/libresolv.so @@ -0,0 +1 @@ +../../lib/libresolv.so.0
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/lib/librt.so b/src/initramfs/uclib-rootfs.old/usr/lib/librt.so new file mode 120000 index 00000000..b7dd09d3 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/lib/librt.so @@ -0,0 +1 @@ +../../lib/librt.so.0
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/lib/libthread_db.so b/src/initramfs/uclib-rootfs.old/usr/lib/libthread_db.so new file mode 120000 index 00000000..e05f68f2 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/lib/libthread_db.so @@ -0,0 +1 @@ +../../lib/libthread_db.so.1
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/lib/libutil.so b/src/initramfs/uclib-rootfs.old/usr/lib/libutil.so new file mode 120000 index 00000000..5b103561 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/lib/libutil.so @@ -0,0 +1 @@ +../../lib/libutil.so.0
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/lib/libz.so b/src/initramfs/uclib-rootfs.old/usr/lib/libz.so new file mode 100755 index 00000000..97779630 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/lib/libz.so @@ -0,0 +1,11 @@ +/* GNU ld script + Since Gentoo has critical dynamic libraries in /lib, and the static versions + in /usr/lib, we need to have a "fake" dynamic lib in /usr/lib, otherwise we + run into linking problems. This "fake" dynamic lib is a linker script that + redirects the linker to the real lib. And yes, this works in the cross- + compiling scenario as the sysroot-ed linker will prepend the real path. + + See bug http://bugs.gentoo.org/4411 for more info. + */ +OUTPUT_FORMAT ( elf32-i386 ) +GROUP ( /lib/libz.so ) diff --git a/src/initramfs/uclib-rootfs.old/usr/sbin/brctl b/src/initramfs/uclib-rootfs.old/usr/sbin/brctl new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/sbin/brctl @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/sbin/chroot b/src/initramfs/uclib-rootfs.old/usr/sbin/chroot new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/sbin/chroot @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/sbin/fbset b/src/initramfs/uclib-rootfs.old/usr/sbin/fbset new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/sbin/fbset @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/sbin/httpd b/src/initramfs/uclib-rootfs.old/usr/sbin/httpd new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/sbin/httpd @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/sbin/loadfont b/src/initramfs/uclib-rootfs.old/usr/sbin/loadfont new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/sbin/loadfont @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/sbin/rdate b/src/initramfs/uclib-rootfs.old/usr/sbin/rdate new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/sbin/rdate @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/sbin/setlogcons b/src/initramfs/uclib-rootfs.old/usr/sbin/setlogcons new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/sbin/setlogcons @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs.old/usr/sbin/udhcpd b/src/initramfs/uclib-rootfs.old/usr/sbin/udhcpd new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs.old/usr/sbin/udhcpd @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/ash b/src/initramfs/uclib-rootfs/bin/ash new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/ash @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/bash b/src/initramfs/uclib-rootfs/bin/bash new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/bash @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/busybox b/src/initramfs/uclib-rootfs/bin/busybox Binary files differnew file mode 100755 index 00000000..fa652e7b --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/busybox diff --git a/src/initramfs/uclib-rootfs/bin/cat b/src/initramfs/uclib-rootfs/bin/cat new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/cat @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/chgrp b/src/initramfs/uclib-rootfs/bin/chgrp new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/chgrp @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/chmod b/src/initramfs/uclib-rootfs/bin/chmod new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/chmod @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/chown b/src/initramfs/uclib-rootfs/bin/chown new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/chown @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/cp b/src/initramfs/uclib-rootfs/bin/cp new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/cp @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/cpio b/src/initramfs/uclib-rootfs/bin/cpio new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/cpio @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/cttyhack b/src/initramfs/uclib-rootfs/bin/cttyhack new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/cttyhack @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/date b/src/initramfs/uclib-rootfs/bin/date new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/date @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/dd b/src/initramfs/uclib-rootfs/bin/dd new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/dd @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/df b/src/initramfs/uclib-rootfs/bin/df new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/df @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/dmesg b/src/initramfs/uclib-rootfs/bin/dmesg new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/dmesg @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/echo b/src/initramfs/uclib-rootfs/bin/echo new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/echo @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/egrep b/src/initramfs/uclib-rootfs/bin/egrep new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/egrep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/false b/src/initramfs/uclib-rootfs/bin/false new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/false @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/grep b/src/initramfs/uclib-rootfs/bin/grep new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/grep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/gunzip b/src/initramfs/uclib-rootfs/bin/gunzip new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/gunzip @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/gzip b/src/initramfs/uclib-rootfs/bin/gzip new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/gzip @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/ip b/src/initramfs/uclib-rootfs/bin/ip new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/ip @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/ipcalc b/src/initramfs/uclib-rootfs/bin/ipcalc new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/ipcalc @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/kill b/src/initramfs/uclib-rootfs/bin/kill new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/kill @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/ln b/src/initramfs/uclib-rootfs/bin/ln new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/ln @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/ls b/src/initramfs/uclib-rootfs/bin/ls new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/ls @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/mkdir b/src/initramfs/uclib-rootfs/bin/mkdir new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/mkdir @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/mknod b/src/initramfs/uclib-rootfs/bin/mknod new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/mknod @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/mount b/src/initramfs/uclib-rootfs/bin/mount new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/mount @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/mv b/src/initramfs/uclib-rootfs/bin/mv new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/mv @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/nice b/src/initramfs/uclib-rootfs/bin/nice new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/nice @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/pidof b/src/initramfs/uclib-rootfs/bin/pidof new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/pidof @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/ping b/src/initramfs/uclib-rootfs/bin/ping new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/ping @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/ps b/src/initramfs/uclib-rootfs/bin/ps new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/ps @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/pwd b/src/initramfs/uclib-rootfs/bin/pwd new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/pwd @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/rev b/src/initramfs/uclib-rootfs/bin/rev new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/rev @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/rm b/src/initramfs/uclib-rootfs/bin/rm new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/rm @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/sed b/src/initramfs/uclib-rootfs/bin/sed new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/sed @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/sh b/src/initramfs/uclib-rootfs/bin/sh new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/sh @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/sleep b/src/initramfs/uclib-rootfs/bin/sleep new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/sleep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/sync b/src/initramfs/uclib-rootfs/bin/sync new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/sync @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/tar b/src/initramfs/uclib-rootfs/bin/tar new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/tar @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/touch b/src/initramfs/uclib-rootfs/bin/touch new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/touch @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/true b/src/initramfs/uclib-rootfs/bin/true new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/true @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/umount b/src/initramfs/uclib-rootfs/bin/umount new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/umount @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/uname b/src/initramfs/uclib-rootfs/bin/uname new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/uname @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/usleep b/src/initramfs/uclib-rootfs/bin/usleep new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/usleep @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/vi b/src/initramfs/uclib-rootfs/bin/vi new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/vi @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/bin/zcat b/src/initramfs/uclib-rootfs/bin/zcat new file mode 120000 index 00000000..c3fa8102 --- /dev/null +++ b/src/initramfs/uclib-rootfs/bin/zcat @@ -0,0 +1 @@ +busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/lib/ld-2.11.2.so b/src/initramfs/uclib-rootfs/lib/ld-2.11.2.so Binary files differnew file mode 100755 index 00000000..fecb3a46 --- /dev/null +++ b/src/initramfs/uclib-rootfs/lib/ld-2.11.2.so diff --git a/src/initramfs/uclib-rootfs/lib/ld-linux.so.2 b/src/initramfs/uclib-rootfs/lib/ld-linux.so.2 new file mode 120000 index 00000000..e1654955 --- /dev/null +++ b/src/initramfs/uclib-rootfs/lib/ld-linux.so.2 @@ -0,0 +1 @@ +ld-2.11.2.so
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/lib/libc.so.6 b/src/initramfs/uclib-rootfs/lib/libc.so.6 Binary files differnew file mode 100644 index 00000000..bfd7ef5d --- /dev/null +++ b/src/initramfs/uclib-rootfs/lib/libc.so.6 diff --git a/src/initramfs/uclib-rootfs/lib/libdbus-1.so.3 b/src/initramfs/uclib-rootfs/lib/libdbus-1.so.3 Binary files differnew file mode 100644 index 00000000..526f06dc --- /dev/null +++ b/src/initramfs/uclib-rootfs/lib/libdbus-1.so.3 diff --git a/src/initramfs/uclib-rootfs/lib/libdl.so.2 b/src/initramfs/uclib-rootfs/lib/libdl.so.2 Binary files differnew file mode 100644 index 00000000..b7d6dacc --- /dev/null +++ b/src/initramfs/uclib-rootfs/lib/libdl.so.2 diff --git a/src/initramfs/uclib-rootfs/lib/libhal.so.1 b/src/initramfs/uclib-rootfs/lib/libhal.so.1 Binary files differnew file mode 100644 index 00000000..8db463f0 --- /dev/null +++ b/src/initramfs/uclib-rootfs/lib/libhal.so.1 diff --git a/src/initramfs/uclib-rootfs/lib/libm.so.6 b/src/initramfs/uclib-rootfs/lib/libm.so.6 Binary files differnew file mode 100644 index 00000000..0e557bfe --- /dev/null +++ b/src/initramfs/uclib-rootfs/lib/libm.so.6 diff --git a/src/initramfs/uclib-rootfs/lib/libpthread.so.0 b/src/initramfs/uclib-rootfs/lib/libpthread.so.0 Binary files differnew file mode 100755 index 00000000..55de7d33 --- /dev/null +++ b/src/initramfs/uclib-rootfs/lib/libpthread.so.0 diff --git a/src/initramfs/uclib-rootfs/lib/librt.so.1 b/src/initramfs/uclib-rootfs/lib/librt.so.1 Binary files differnew file mode 100644 index 00000000..fbea0db1 --- /dev/null +++ b/src/initramfs/uclib-rootfs/lib/librt.so.1 diff --git a/src/initramfs/uclib-rootfs/sbin/bootchartd b/src/initramfs/uclib-rootfs/sbin/bootchartd new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/bootchartd @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/fbsplash b/src/initramfs/uclib-rootfs/sbin/fbsplash new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/fbsplash @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/fdisk b/src/initramfs/uclib-rootfs/sbin/fdisk new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/fdisk @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/getty b/src/initramfs/uclib-rootfs/sbin/getty new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/getty @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/halt b/src/initramfs/uclib-rootfs/sbin/halt new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/halt @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/hdparm b/src/initramfs/uclib-rootfs/sbin/hdparm new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/hdparm @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/hwclock b/src/initramfs/uclib-rootfs/sbin/hwclock new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/hwclock @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/inotifyd b/src/initramfs/uclib-rootfs/sbin/inotifyd new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/inotifyd @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/insmod b/src/initramfs/uclib-rootfs/sbin/insmod new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/insmod @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/klogd b/src/initramfs/uclib-rootfs/sbin/klogd new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/klogd @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/ldconfig b/src/initramfs/uclib-rootfs/sbin/ldconfig Binary files differnew file mode 100755 index 00000000..74da4189 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/ldconfig diff --git a/src/initramfs/uclib-rootfs/sbin/loadkmap b/src/initramfs/uclib-rootfs/sbin/loadkmap new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/loadkmap @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/logread b/src/initramfs/uclib-rootfs/sbin/logread new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/logread @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/lsmod b/src/initramfs/uclib-rootfs/sbin/lsmod new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/lsmod @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/lspci b/src/initramfs/uclib-rootfs/sbin/lspci new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/lspci @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/lsusb b/src/initramfs/uclib-rootfs/sbin/lsusb new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/lsusb @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/mdev b/src/initramfs/uclib-rootfs/sbin/mdev new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/mdev @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/mkdosfs b/src/initramfs/uclib-rootfs/sbin/mkdosfs new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/mkdosfs @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/mkfs.vfat b/src/initramfs/uclib-rootfs/sbin/mkfs.vfat new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/mkfs.vfat @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/mkswap b/src/initramfs/uclib-rootfs/sbin/mkswap new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/mkswap @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/modinfo b/src/initramfs/uclib-rootfs/sbin/modinfo new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/modinfo @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/modprobe b/src/initramfs/uclib-rootfs/sbin/modprobe new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/modprobe @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/poweroff b/src/initramfs/uclib-rootfs/sbin/poweroff new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/poweroff @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/reboot b/src/initramfs/uclib-rootfs/sbin/reboot new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/reboot @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/rmmod b/src/initramfs/uclib-rootfs/sbin/rmmod new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/rmmod @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/route b/src/initramfs/uclib-rootfs/sbin/route new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/route @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/start-stop-daemon b/src/initramfs/uclib-rootfs/sbin/start-stop-daemon new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/start-stop-daemon @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/swapoff b/src/initramfs/uclib-rootfs/sbin/swapoff new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/swapoff @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/swapon b/src/initramfs/uclib-rootfs/sbin/swapon new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/swapon @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/switch_root b/src/initramfs/uclib-rootfs/sbin/switch_root new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/switch_root @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/sysctl b/src/initramfs/uclib-rootfs/sbin/sysctl new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/sysctl @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/syslogd b/src/initramfs/uclib-rootfs/sbin/syslogd new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/syslogd @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/tunctl b/src/initramfs/uclib-rootfs/sbin/tunctl new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/tunctl @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/udhcpc b/src/initramfs/uclib-rootfs/sbin/udhcpc new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/udhcpc @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/vconfig b/src/initramfs/uclib-rootfs/sbin/vconfig new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/vconfig @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/watchdog b/src/initramfs/uclib-rootfs/sbin/watchdog new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/watchdog @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/sbin/zcip b/src/initramfs/uclib-rootfs/sbin/zcip new file mode 120000 index 00000000..71259713 --- /dev/null +++ b/src/initramfs/uclib-rootfs/sbin/zcip @@ -0,0 +1 @@ +../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/[ b/src/initramfs/uclib-rootfs/usr/bin/[ new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/[ @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/[[ b/src/initramfs/uclib-rootfs/usr/bin/[[ new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/[[ @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/ar b/src/initramfs/uclib-rootfs/usr/bin/ar new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/ar @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/arping b/src/initramfs/uclib-rootfs/usr/bin/arping new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/arping @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/awk b/src/initramfs/uclib-rootfs/usr/bin/awk new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/awk @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/basename b/src/initramfs/uclib-rootfs/usr/bin/basename new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/basename @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/bunzip2 b/src/initramfs/uclib-rootfs/usr/bin/bunzip2 new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/bunzip2 @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/bzcat b/src/initramfs/uclib-rootfs/usr/bin/bzcat new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/bzcat @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/bzip2 b/src/initramfs/uclib-rootfs/usr/bin/bzip2 new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/bzip2 @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/chvt b/src/initramfs/uclib-rootfs/usr/bin/chvt new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/chvt @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/cut b/src/initramfs/uclib-rootfs/usr/bin/cut new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/cut @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/deallocvt b/src/initramfs/uclib-rootfs/usr/bin/deallocvt new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/deallocvt @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/du b/src/initramfs/uclib-rootfs/usr/bin/du new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/du @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/dumpleases b/src/initramfs/uclib-rootfs/usr/bin/dumpleases new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/dumpleases @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/eject b/src/initramfs/uclib-rootfs/usr/bin/eject new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/eject @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/env b/src/initramfs/uclib-rootfs/usr/bin/env new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/env @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/expr b/src/initramfs/uclib-rootfs/usr/bin/expr new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/expr @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/fgconsole b/src/initramfs/uclib-rootfs/usr/bin/fgconsole new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/fgconsole @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/find b/src/initramfs/uclib-rootfs/usr/bin/find new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/find @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/flock b/src/initramfs/uclib-rootfs/usr/bin/flock new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/flock @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/free b/src/initramfs/uclib-rootfs/usr/bin/free new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/free @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/ftpget b/src/initramfs/uclib-rootfs/usr/bin/ftpget new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/ftpget @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/ftpput b/src/initramfs/uclib-rootfs/usr/bin/ftpput new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/ftpput @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/head b/src/initramfs/uclib-rootfs/usr/bin/head new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/head @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/id b/src/initramfs/uclib-rootfs/usr/bin/id new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/id @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/killall b/src/initramfs/uclib-rootfs/usr/bin/killall new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/killall @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/ld b/src/initramfs/uclib-rootfs/usr/bin/ld Binary files differnew file mode 100755 index 00000000..f169e2ec --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/ld diff --git a/src/initramfs/uclib-rootfs/usr/bin/ldd b/src/initramfs/uclib-rootfs/usr/bin/ldd new file mode 100755 index 00000000..4dba3cfb --- /dev/null +++ b/src/initramfs/uclib-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-2) 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/src/initramfs/uclib-rootfs/usr/bin/less b/src/initramfs/uclib-rootfs/usr/bin/less new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/less @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/logger b/src/initramfs/uclib-rootfs/usr/bin/logger new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/logger @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/lspci b/src/initramfs/uclib-rootfs/usr/bin/lspci new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/lspci @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/lsusb b/src/initramfs/uclib-rootfs/usr/bin/lsusb new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/lsusb @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/lzcat b/src/initramfs/uclib-rootfs/usr/bin/lzcat new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/lzcat @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/lzma b/src/initramfs/uclib-rootfs/usr/bin/lzma new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/lzma @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/lzmacat b/src/initramfs/uclib-rootfs/usr/bin/lzmacat new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/lzmacat @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/md5sum b/src/initramfs/uclib-rootfs/usr/bin/md5sum new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/md5sum @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/nc b/src/initramfs/uclib-rootfs/usr/bin/nc new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/nc @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/nmeter b/src/initramfs/uclib-rootfs/usr/bin/nmeter new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/nmeter @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/openvt b/src/initramfs/uclib-rootfs/usr/bin/openvt new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/openvt @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/printf b/src/initramfs/uclib-rootfs/usr/bin/printf new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/printf @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/readahead b/src/initramfs/uclib-rootfs/usr/bin/readahead new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/readahead @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/readlink b/src/initramfs/uclib-rootfs/usr/bin/readlink new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/readlink @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/realpath b/src/initramfs/uclib-rootfs/usr/bin/realpath new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/realpath @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/rpm2cpio b/src/initramfs/uclib-rootfs/usr/bin/rpm2cpio new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/rpm2cpio @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/rzscontrol b/src/initramfs/uclib-rootfs/usr/bin/rzscontrol Binary files differnew file mode 100755 index 00000000..0d7f2702 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/rzscontrol diff --git a/src/initramfs/uclib-rootfs/usr/bin/smemcap b/src/initramfs/uclib-rootfs/usr/bin/smemcap new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/smemcap @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/sort b/src/initramfs/uclib-rootfs/usr/bin/sort new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/sort @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/strace b/src/initramfs/uclib-rootfs/usr/bin/strace Binary files differnew file mode 100755 index 00000000..efe78e71 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/strace diff --git a/src/initramfs/uclib-rootfs/usr/bin/strings b/src/initramfs/uclib-rootfs/usr/bin/strings new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/strings @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/tail b/src/initramfs/uclib-rootfs/usr/bin/tail new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/tail @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/test b/src/initramfs/uclib-rootfs/usr/bin/test new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/test @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/tftp b/src/initramfs/uclib-rootfs/usr/bin/tftp new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/tftp @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/time b/src/initramfs/uclib-rootfs/usr/bin/time new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/time @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/timeout b/src/initramfs/uclib-rootfs/usr/bin/timeout new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/timeout @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/tr b/src/initramfs/uclib-rootfs/usr/bin/tr new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/tr @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/uniq b/src/initramfs/uclib-rootfs/usr/bin/uniq new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/uniq @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/unlzma b/src/initramfs/uclib-rootfs/usr/bin/unlzma new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/unlzma @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/unxz b/src/initramfs/uclib-rootfs/usr/bin/unxz new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/unxz @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/uptime b/src/initramfs/uclib-rootfs/usr/bin/uptime new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/uptime @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/wc b/src/initramfs/uclib-rootfs/usr/bin/wc new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/wc @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/wget b/src/initramfs/uclib-rootfs/usr/bin/wget new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/wget @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/which b/src/initramfs/uclib-rootfs/usr/bin/which new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/which @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/whoami b/src/initramfs/uclib-rootfs/usr/bin/whoami new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/whoami @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/xargs b/src/initramfs/uclib-rootfs/usr/bin/xargs new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/xargs @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/xz b/src/initramfs/uclib-rootfs/usr/bin/xz new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/xz @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/bin/xzcat b/src/initramfs/uclib-rootfs/usr/bin/xzcat new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/bin/xzcat @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/lib/libbfd-2.20.1-system.20100303.so b/src/initramfs/uclib-rootfs/usr/lib/libbfd-2.20.1-system.20100303.so Binary files differnew file mode 100644 index 00000000..ae24957b --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/lib/libbfd-2.20.1-system.20100303.so diff --git a/src/initramfs/uclib-rootfs/usr/lib/libfusion-1.2.so.9 b/src/initramfs/uclib-rootfs/usr/lib/libfusion-1.2.so.9 Binary files differnew file mode 100644 index 00000000..1b8d84ea --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/lib/libfusion-1.2.so.9 diff --git a/src/initramfs/uclib-rootfs/usr/lib/libgcc_s.so.1 b/src/initramfs/uclib-rootfs/usr/lib/libgcc_s.so.1 Binary files differnew file mode 100644 index 00000000..f893c04d --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/lib/libgcc_s.so.1 diff --git a/src/initramfs/uclib-rootfs/usr/lib/libhal.so.1 b/src/initramfs/uclib-rootfs/usr/lib/libhal.so.1 Binary files differnew file mode 100644 index 00000000..8db463f0 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/lib/libhal.so.1 diff --git a/src/initramfs/uclib-rootfs/usr/lib/libhd.so.16 b/src/initramfs/uclib-rootfs/usr/lib/libhd.so.16 Binary files differnew file mode 100644 index 00000000..3fd68f29 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/lib/libhd.so.16 diff --git a/src/initramfs/uclib-rootfs/usr/lib/libm.so b/src/initramfs/uclib-rootfs/usr/lib/libm.so new file mode 120000 index 00000000..6c7b429c --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/lib/libm.so @@ -0,0 +1 @@ +/lib/libm.so.6
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/lib/libpcre.so.3 b/src/initramfs/uclib-rootfs/usr/lib/libpcre.so.3 Binary files differnew file mode 100644 index 00000000..d11113bb --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/lib/libpcre.so.3 diff --git a/src/initramfs/uclib-rootfs/usr/lib/libz.so.1 b/src/initramfs/uclib-rootfs/usr/lib/libz.so.1 Binary files differnew file mode 100644 index 00000000..c1b51178 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/lib/libz.so.1 diff --git a/src/initramfs/uclib-rootfs/usr/sbin/brctl b/src/initramfs/uclib-rootfs/usr/sbin/brctl new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/sbin/brctl @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/sbin/chroot b/src/initramfs/uclib-rootfs/usr/sbin/chroot new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/sbin/chroot @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/sbin/dhcprelay b/src/initramfs/uclib-rootfs/usr/sbin/dhcprelay new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/sbin/dhcprelay @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/sbin/fbset b/src/initramfs/uclib-rootfs/usr/sbin/fbset new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/sbin/fbset @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/sbin/httpd b/src/initramfs/uclib-rootfs/usr/sbin/httpd new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/sbin/httpd @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/sbin/hwinfo b/src/initramfs/uclib-rootfs/usr/sbin/hwinfo Binary files differnew file mode 100755 index 00000000..5dbe48a4 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/sbin/hwinfo diff --git a/src/initramfs/uclib-rootfs/usr/sbin/loadfont b/src/initramfs/uclib-rootfs/usr/sbin/loadfont new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/sbin/loadfont @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/sbin/rdate b/src/initramfs/uclib-rootfs/usr/sbin/rdate new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/sbin/rdate @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/sbin/setlogcons b/src/initramfs/uclib-rootfs/usr/sbin/setlogcons new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/sbin/setlogcons @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file diff --git a/src/initramfs/uclib-rootfs/usr/sbin/udhcpd b/src/initramfs/uclib-rootfs/usr/sbin/udhcpd new file mode 120000 index 00000000..f948f1a7 --- /dev/null +++ b/src/initramfs/uclib-rootfs/usr/sbin/udhcpd @@ -0,0 +1 @@ +../../bin/busybox
\ No newline at end of file |