trying to make ramdisk dyanmic through kernel option
This commit is contained in:
parent
1ac7a31740
commit
d51c41460f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue