mirror of
https://github.com/pygos/build.git
synced 2024-11-13 06:57:11 +01:00
96966bf73b
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
28 lines
536 B
Text
Executable file
28 lines
536 B
Text
Executable file
DEPENDS="bbstatic"
|
|
|
|
build() {
|
|
return
|
|
}
|
|
|
|
deploy() {
|
|
local INPUT="$1"
|
|
local DEPLOY="$2"
|
|
|
|
cp "$SCRIPTDIR/pkg/initrd/initrd.skel" "$DEPLOY/init"
|
|
chmod +x "$DEPLOY/init"
|
|
|
|
cat > "$DEPLOY/initrd.list" <<_EOF
|
|
dir /dev 0755 0 0
|
|
dir /lib 0775 0 0
|
|
dir /bin 0775 0 0
|
|
dir /sys 0775 0 0
|
|
dir /proc 0775 0 0
|
|
dir /newroot 0775 0 0
|
|
dir /images 0775 0 0
|
|
slink /sbin /bin 0777 0 0
|
|
nod /dev/console 600 0 0 c 5 1
|
|
file /bin/busybox $PKGDEPLOYDIR/bbstatic/bin/busybox 0775 0 0
|
|
slink /bin/sh /bin/busybox 0777 0 0
|
|
file /init $DEPLOY/init 0775 0 0
|
|
_EOF
|
|
}
|