1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-22 11:09:46 +01:00
build/pkg/initrd/build
David Oberhollenzer 96966bf73b Minor cleanup
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
2018-02-24 22:45:00 +01:00

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
}