1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-11-14 07:27:10 +01:00
build/pkg/initrd/build

29 lines
536 B
Text
Raw Normal View History

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
}