From 01bbb3fa34e750a9cac6bd22386533c1083d4dc8 Mon Sep 17 00:00:00 2001 From: Michael Neves Date: Wed, 7 Nov 2012 17:34:14 +0100 Subject: build_core2 --- data/stage3.1/bin/adduser | 1 + data/stage3.1/bin/ash | 1 + data/stage3.1/bin/base64 | 1 + data/stage3.1/bin/bash | 1 + data/stage3.1/bin/busybox | Bin 0 -> 446608 bytes data/stage3.1/bin/cat | 1 + data/stage3.1/bin/chgrp | 1 + data/stage3.1/bin/chmod | 1 + data/stage3.1/bin/chown | 1 + data/stage3.1/bin/cp | 1 + data/stage3.1/bin/cpio | 1 + data/stage3.1/bin/cttyhack | 1 + data/stage3.1/bin/date | 1 + data/stage3.1/bin/dd | 1 + data/stage3.1/bin/df | 1 + data/stage3.1/bin/dmesg | 1 + data/stage3.1/bin/dnsdomainname | 1 + data/stage3.1/bin/dumpkmap | 1 + data/stage3.1/bin/echo | 1 + data/stage3.1/bin/egrep | 1 + data/stage3.1/bin/false | 1 + data/stage3.1/bin/grep | 1 + data/stage3.1/bin/gunzip | 1 + data/stage3.1/bin/gzip | 1 + data/stage3.1/bin/hostname | 1 + data/stage3.1/bin/insmod | 1 + data/stage3.1/bin/iostat | 1 + data/stage3.1/bin/ip | 1 + data/stage3.1/bin/ipcalc | 1 + data/stage3.1/bin/kill | 1 + data/stage3.1/bin/ln | 1 + data/stage3.1/bin/ls | 1 + data/stage3.1/bin/mkdir | 1 + data/stage3.1/bin/mkdosfs | 1 + data/stage3.1/bin/mknod | 1 + data/stage3.1/bin/mount | 1 + data/stage3.1/bin/mpstat | 1 + data/stage3.1/bin/mv | 1 + data/stage3.1/bin/netstat | 1 + data/stage3.1/bin/nice | 1 + data/stage3.1/bin/pidof | 1 + data/stage3.1/bin/ping | 1 + data/stage3.1/bin/powertop | 1 + data/stage3.1/bin/ps | 1 + data/stage3.1/bin/pwd | 1 + data/stage3.1/bin/rev | 1 + data/stage3.1/bin/rm | 1 + data/stage3.1/bin/sed | 1 + data/stage3.1/bin/setserial | 1 + data/stage3.1/bin/sh | 1 + data/stage3.1/bin/sleep | 1 + data/stage3.1/bin/su | 1 + data/stage3.1/bin/sync | 1 + data/stage3.1/bin/tar | 1 + data/stage3.1/bin/touch | 1 + data/stage3.1/bin/true | 1 + data/stage3.1/bin/umount | 1 + data/stage3.1/bin/uname | 1 + data/stage3.1/bin/usleep | 1 + data/stage3.1/bin/vi | 1 + data/stage3.1/bin/zcat | 1 + data/stage3.1/etc/mdev.conf | 0 data/stage3.1/lib/ld-linux.so.2 | Bin 0 -> 113964 bytes data/stage3.1/lib/libc.so.6 | Bin 0 -> 1319176 bytes data/stage3.1/sbin/switch_root | 1 + server/build_core2 | 68 ++++++++++++++++++++++++++++++++++++++++ 66 files changed, 129 insertions(+) create mode 120000 data/stage3.1/bin/adduser create mode 120000 data/stage3.1/bin/ash create mode 120000 data/stage3.1/bin/base64 create mode 120000 data/stage3.1/bin/bash create mode 100755 data/stage3.1/bin/busybox create mode 120000 data/stage3.1/bin/cat create mode 120000 data/stage3.1/bin/chgrp create mode 120000 data/stage3.1/bin/chmod create mode 120000 data/stage3.1/bin/chown create mode 120000 data/stage3.1/bin/cp create mode 120000 data/stage3.1/bin/cpio create mode 120000 data/stage3.1/bin/cttyhack create mode 120000 data/stage3.1/bin/date create mode 120000 data/stage3.1/bin/dd create mode 120000 data/stage3.1/bin/df create mode 120000 data/stage3.1/bin/dmesg create mode 120000 data/stage3.1/bin/dnsdomainname create mode 120000 data/stage3.1/bin/dumpkmap create mode 120000 data/stage3.1/bin/echo create mode 120000 data/stage3.1/bin/egrep create mode 120000 data/stage3.1/bin/false create mode 120000 data/stage3.1/bin/grep create mode 120000 data/stage3.1/bin/gunzip create mode 120000 data/stage3.1/bin/gzip create mode 120000 data/stage3.1/bin/hostname create mode 120000 data/stage3.1/bin/insmod create mode 120000 data/stage3.1/bin/iostat create mode 120000 data/stage3.1/bin/ip create mode 120000 data/stage3.1/bin/ipcalc create mode 120000 data/stage3.1/bin/kill create mode 120000 data/stage3.1/bin/ln create mode 120000 data/stage3.1/bin/ls create mode 120000 data/stage3.1/bin/mkdir create mode 120000 data/stage3.1/bin/mkdosfs create mode 120000 data/stage3.1/bin/mknod create mode 120000 data/stage3.1/bin/mount create mode 120000 data/stage3.1/bin/mpstat create mode 120000 data/stage3.1/bin/mv create mode 120000 data/stage3.1/bin/netstat create mode 120000 data/stage3.1/bin/nice create mode 120000 data/stage3.1/bin/pidof create mode 120000 data/stage3.1/bin/ping create mode 120000 data/stage3.1/bin/powertop create mode 120000 data/stage3.1/bin/ps create mode 120000 data/stage3.1/bin/pwd create mode 120000 data/stage3.1/bin/rev create mode 120000 data/stage3.1/bin/rm create mode 120000 data/stage3.1/bin/sed create mode 120000 data/stage3.1/bin/setserial create mode 120000 data/stage3.1/bin/sh create mode 120000 data/stage3.1/bin/sleep create mode 120000 data/stage3.1/bin/su create mode 120000 data/stage3.1/bin/sync create mode 120000 data/stage3.1/bin/tar create mode 120000 data/stage3.1/bin/touch create mode 120000 data/stage3.1/bin/true create mode 120000 data/stage3.1/bin/umount create mode 120000 data/stage3.1/bin/uname create mode 120000 data/stage3.1/bin/usleep create mode 120000 data/stage3.1/bin/vi create mode 120000 data/stage3.1/bin/zcat create mode 100644 data/stage3.1/etc/mdev.conf create mode 100755 data/stage3.1/lib/ld-linux.so.2 create mode 100755 data/stage3.1/lib/libc.so.6 create mode 120000 data/stage3.1/sbin/switch_root create mode 100755 server/build_core2 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 Binary files /dev/null and b/data/stage3.1/bin/busybox 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 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 Binary files /dev/null and b/data/stage3.1/lib/ld-linux.so.2 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 Binary files /dev/null and b/data/stage3.1/lib/libc.so.6 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 -- cgit v1.2.3-55-g7522