trying to make ramdisk dyanmic through kernel option

This commit is contained in:
toby 2018-09-25 21:37:23 +00:00
parent 1ac7a31740
commit d51c41460f
1 changed files with 1 additions and 2 deletions

View File

@ -1,7 +1,6 @@
#!/bin/bash
set -Eeuxo pipefail
SIZE=10000
HOSTNAME=localhost
RELEASE=unstable
@ -194,7 +193,7 @@ cat <<-EOF >$INITRD_DIR/init
mdev -s
mkdir -p /newroot
mount -t tmpfs -o size=${SIZE}m tmpfs /newroot || error
mount -t tmpfs -o size=${SIZE:=10000}m tmpfs /newroot || error
echo "Extracting rootfs... "
xz -d -c -f rootfs.tar.xz | tar -x -f - -C /newroot || error