summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
l---------data/stage3.1/bin/adduser1
l---------data/stage3.1/bin/ash1
l---------data/stage3.1/bin/base641
l---------data/stage3.1/bin/bash1
-rwxr-xr-xdata/stage3.1/bin/busyboxbin0 -> 446608 bytes
l---------data/stage3.1/bin/cat1
l---------data/stage3.1/bin/chgrp1
l---------data/stage3.1/bin/chmod1
l---------data/stage3.1/bin/chown1
l---------data/stage3.1/bin/cp1
l---------data/stage3.1/bin/cpio1
l---------data/stage3.1/bin/cttyhack1
l---------data/stage3.1/bin/date1
l---------data/stage3.1/bin/dd1
l---------data/stage3.1/bin/df1
l---------data/stage3.1/bin/dmesg1
l---------data/stage3.1/bin/dnsdomainname1
l---------data/stage3.1/bin/dumpkmap1
l---------data/stage3.1/bin/echo1
l---------data/stage3.1/bin/egrep1
l---------data/stage3.1/bin/false1
l---------data/stage3.1/bin/grep1
l---------data/stage3.1/bin/gunzip1
l---------data/stage3.1/bin/gzip1
l---------data/stage3.1/bin/hostname1
l---------data/stage3.1/bin/insmod1
l---------data/stage3.1/bin/iostat1
l---------data/stage3.1/bin/ip1
l---------data/stage3.1/bin/ipcalc1
l---------data/stage3.1/bin/kill1
l---------data/stage3.1/bin/ln1
l---------data/stage3.1/bin/ls1
l---------data/stage3.1/bin/mkdir1
l---------data/stage3.1/bin/mkdosfs1
l---------data/stage3.1/bin/mknod1
l---------data/stage3.1/bin/mount1
l---------data/stage3.1/bin/mpstat1
l---------data/stage3.1/bin/mv1
l---------data/stage3.1/bin/netstat1
l---------data/stage3.1/bin/nice1
l---------data/stage3.1/bin/pidof1
l---------data/stage3.1/bin/ping1
l---------data/stage3.1/bin/powertop1
l---------data/stage3.1/bin/ps1
l---------data/stage3.1/bin/pwd1
l---------data/stage3.1/bin/rev1
l---------data/stage3.1/bin/rm1
l---------data/stage3.1/bin/sed1
l---------data/stage3.1/bin/setserial1
l---------data/stage3.1/bin/sh1
l---------data/stage3.1/bin/sleep1
l---------data/stage3.1/bin/su1
l---------data/stage3.1/bin/sync1
l---------data/stage3.1/bin/tar1
l---------data/stage3.1/bin/touch1
l---------data/stage3.1/bin/true1
l---------data/stage3.1/bin/umount1
l---------data/stage3.1/bin/uname1
l---------data/stage3.1/bin/usleep1
l---------data/stage3.1/bin/vi1
l---------data/stage3.1/bin/zcat1
-rw-r--r--data/stage3.1/etc/mdev.conf0
-rwxr-xr-xdata/stage3.1/lib/ld-linux.so.2bin0 -> 113964 bytes
-rwxr-xr-xdata/stage3.1/lib/libc.so.6bin0 -> 1319176 bytes
l---------data/stage3.1/sbin/switch_root1
-rwxr-xr-xserver/build_core268
66 files changed, 129 insertions, 0 deletions
diff --git a/data/stage3.1/bin/adduser b/data/stage3.1/bin/adduser
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/adduser
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/ash b/data/stage3.1/bin/ash
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/ash
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/base64 b/data/stage3.1/bin/base64
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/base64
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/bash b/data/stage3.1/bin/bash
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/bash
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/busybox b/data/stage3.1/bin/busybox
new file mode 100755
index 00000000..a3002afd
--- /dev/null
+++ b/data/stage3.1/bin/busybox
Binary files differ
diff --git a/data/stage3.1/bin/cat b/data/stage3.1/bin/cat
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/cat
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/chgrp b/data/stage3.1/bin/chgrp
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/chgrp
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/chmod b/data/stage3.1/bin/chmod
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/chmod
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/chown b/data/stage3.1/bin/chown
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/chown
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/cp b/data/stage3.1/bin/cp
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/cp
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/cpio b/data/stage3.1/bin/cpio
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/cpio
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/cttyhack b/data/stage3.1/bin/cttyhack
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/cttyhack
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/date b/data/stage3.1/bin/date
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/date
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/dd b/data/stage3.1/bin/dd
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/dd
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/df b/data/stage3.1/bin/df
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/df
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/dmesg b/data/stage3.1/bin/dmesg
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/dmesg
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/dnsdomainname b/data/stage3.1/bin/dnsdomainname
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/dnsdomainname
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/dumpkmap b/data/stage3.1/bin/dumpkmap
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/dumpkmap
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/echo b/data/stage3.1/bin/echo
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/echo
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/egrep b/data/stage3.1/bin/egrep
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/egrep
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/false b/data/stage3.1/bin/false
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/false
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/grep b/data/stage3.1/bin/grep
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/grep
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/gunzip b/data/stage3.1/bin/gunzip
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/gunzip
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/gzip b/data/stage3.1/bin/gzip
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/gzip
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/hostname b/data/stage3.1/bin/hostname
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/hostname
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/insmod b/data/stage3.1/bin/insmod
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/insmod
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/iostat b/data/stage3.1/bin/iostat
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/iostat
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/ip b/data/stage3.1/bin/ip
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/ip
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/ipcalc b/data/stage3.1/bin/ipcalc
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/ipcalc
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/kill b/data/stage3.1/bin/kill
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/kill
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/ln b/data/stage3.1/bin/ln
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/ln
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/ls b/data/stage3.1/bin/ls
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/ls
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/mkdir b/data/stage3.1/bin/mkdir
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/mkdir
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/mkdosfs b/data/stage3.1/bin/mkdosfs
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/mkdosfs
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/mknod b/data/stage3.1/bin/mknod
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/mknod
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/mount b/data/stage3.1/bin/mount
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/mount
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/mpstat b/data/stage3.1/bin/mpstat
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/mpstat
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/mv b/data/stage3.1/bin/mv
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/mv
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/netstat b/data/stage3.1/bin/netstat
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/netstat
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/nice b/data/stage3.1/bin/nice
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/nice
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/pidof b/data/stage3.1/bin/pidof
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/pidof
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/ping b/data/stage3.1/bin/ping
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/ping
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/powertop b/data/stage3.1/bin/powertop
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/powertop
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/ps b/data/stage3.1/bin/ps
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/ps
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/pwd b/data/stage3.1/bin/pwd
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/pwd
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/rev b/data/stage3.1/bin/rev
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/rev
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/rm b/data/stage3.1/bin/rm
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/rm
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/sed b/data/stage3.1/bin/sed
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/sed
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/setserial b/data/stage3.1/bin/setserial
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/setserial
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/sh b/data/stage3.1/bin/sh
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/sh
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/sleep b/data/stage3.1/bin/sleep
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/sleep
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/su b/data/stage3.1/bin/su
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/su
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/sync b/data/stage3.1/bin/sync
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/sync
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/tar b/data/stage3.1/bin/tar
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/tar
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/touch b/data/stage3.1/bin/touch
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/touch
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/true b/data/stage3.1/bin/true
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/true
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/umount b/data/stage3.1/bin/umount
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/umount
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/uname b/data/stage3.1/bin/uname
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/uname
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/usleep b/data/stage3.1/bin/usleep
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/usleep
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/vi b/data/stage3.1/bin/vi
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/vi
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/bin/zcat b/data/stage3.1/bin/zcat
new file mode 120000
index 00000000..c3fa8102
--- /dev/null
+++ b/data/stage3.1/bin/zcat
@@ -0,0 +1 @@
+busybox \ No newline at end of file
diff --git a/data/stage3.1/etc/mdev.conf b/data/stage3.1/etc/mdev.conf
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/data/stage3.1/etc/mdev.conf
diff --git a/data/stage3.1/lib/ld-linux.so.2 b/data/stage3.1/lib/ld-linux.so.2
new file mode 100755
index 00000000..fecb3a46
--- /dev/null
+++ b/data/stage3.1/lib/ld-linux.so.2
Binary files differ
diff --git a/data/stage3.1/lib/libc.so.6 b/data/stage3.1/lib/libc.so.6
new file mode 100755
index 00000000..c319e8c3
--- /dev/null
+++ b/data/stage3.1/lib/libc.so.6
Binary files differ
diff --git a/data/stage3.1/sbin/switch_root b/data/stage3.1/sbin/switch_root
new file mode 120000
index 00000000..71259713
--- /dev/null
+++ b/data/stage3.1/sbin/switch_root
@@ -0,0 +1 @@
+../bin/busybox \ No newline at end of file
diff --git a/server/build_core2 b/server/build_core2
new file mode 100755
index 00000000..5bbc74dc
--- /dev/null
+++ b/server/build_core2
@@ -0,0 +1,68 @@
+#!/bin/bash
+# Copyright (c) 2012 - 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
+#
+# Server side script to generate stage3.1,2 initial ramfses for OpenSLX Linux
+# stateless clients
+#############################################################################
+
+# first parameter is a hash pointing to the target directory
+# /srv/openslx/build
+
+# in the future the prefix should be set via slxsettings ...
+
+ROOT_DIR=$(dirname $(readlink -f $0))
+SELF=$(readlink -f $0)
+
+if [ "x$(whoami)" != "xroot" ]; then
+ echo "ERROR: You need to have root rights to install packages."
+ exit 1
+fi
+
+# add openslx distro (in)dependent data to the initramfs target
+DISTRONAME=ubuntu
+DISTROVER=12.04
+
+STAGE31_DIR=${ROOT_DIR}/stage3.1
+STAGE32_DIR=${ROOT_DIR}/../remote/stage3.2
+
+# produce stage3.1
+#mkdir -p ${STAGE31_DIR}
+
+# create the base directory structure for stage3.1
+#mkdir -p ${STAGE31_DIR}/{bin,dev,proc,run,lib,etc,mnt,sys}
+#cp -a /dev/{console,kmsg,mem,null,tty,tty0,tty1,tty9,urandom,zero} \
+# ${STAGE31_DIR}/dev
+
+#Copy Busybox to Stage3.1
+#[ ! -e ${STAGE32_DIR/openslx/bin/busybox} ] && echo "Busybox not found under stage3.2/openslx. Please run setup_tools first." && return
+
+#cp ${STAGE32_DIR}/openslx/bin/busybox ${STAGE31_DIR}/bin
+
+# link the required busybox applets for stage3.1
+#for app in insmod modprobe mount mkdir umount sh switch_root ; do
+# ln -s /bin/busybox ${IRTARGET}/stage3.1/bin/${app}
+#done
+
+# copy stage3.1 base from data directory
+[ ! -d ${ROOT_DIR}/../data/stage3.1 ] && echo "No stage3.1 directory found." && exit 1
+cp -a ${ROOT_DIR}/../data/stage3.1 ${ROOT_DIR}
+
+# finalize the initramfs target
+which mksquashfs 2>&1>/dev/null || echo "Please install SquashFS utilities"
+
+[ ! -d ${STAGE32_DIR} ] && echo "No stage3.2 directory found. Please run setup_tools first." && exit 1
+
+[ -e ${STAGE32_DIR}/mnt/openslx.sqfs ] && rm ${STAGE32_DIR}/mnt/openslx.sqfs
+
+mksquashfs ${STAGE32_DIR} ${STAGE31_DIR}/mnt/openslx.sqfs -comp xz -b 1M -no-progress -no-recovery 2>/dev/null
+
+cd ${STAGE31_DIR}
+find . | cpio --format="newc" --create | gzip -9 > ${ROOT_DIR}/initramfs