trying to make ramdisk dyanmic through kernel option
This commit is contained in:
parent
1ac7a31740
commit
d51c41460f
|
@ -1,7 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -Eeuxo pipefail
|
set -Eeuxo pipefail
|
||||||
|
|
||||||
SIZE=10000
|
|
||||||
HOSTNAME=localhost
|
HOSTNAME=localhost
|
||||||
RELEASE=unstable
|
RELEASE=unstable
|
||||||
|
|
||||||
|
@ -194,7 +193,7 @@ cat <<-EOF >$INITRD_DIR/init
|
||||||
mdev -s
|
mdev -s
|
||||||
|
|
||||||
mkdir -p /newroot
|
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... "
|
echo "Extracting rootfs... "
|
||||||
xz -d -c -f rootfs.tar.xz | tar -x -f - -C /newroot || error
|
xz -d -c -f rootfs.tar.xz | tar -x -f - -C /newroot || error
|
||||||
|
|
Loading…
Reference in New Issue