2018-01-24 12:52:41 +01:00
|
|
|
DEPENDS="bbstatic"
|
|
|
|
|
2018-02-18 01:33:45 +01:00
|
|
|
build() {
|
|
|
|
return
|
2017-12-09 21:51:48 +01:00
|
|
|
}
|
|
|
|
|
2018-02-18 01:33:45 +01:00
|
|
|
deploy() {
|
2017-12-09 21:51:48 +01:00
|
|
|
local INPUT="$1"
|
2018-02-16 23:22:04 +01:00
|
|
|
local DEPLOY="$2"
|
2017-12-09 21:51:48 +01:00
|
|
|
|
2018-02-16 18:45:25 +01:00
|
|
|
cp "$SCRIPTDIR/pkg/initrd/initrd.skel" "$DEPLOY/init"
|
|
|
|
chmod +x "$DEPLOY/init"
|
2017-12-09 21:51:48 +01:00
|
|
|
|
2018-02-18 01:33:45 +01:00
|
|
|
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
|
2018-02-19 12:43:22 +01:00
|
|
|
file /bin/busybox $PKGDEPLOYDIR/bbstatic/bin/busybox 0775 0 0
|
2018-02-18 01:33:45 +01:00
|
|
|
slink /bin/sh /bin/busybox 0777 0 0
|
|
|
|
file /init $DEPLOY/init 0775 0 0
|
|
|
|
_EOF
|
2017-12-09 21:51:48 +01:00
|
|
|
}
|