diff --git a/create_pxeinitrd.sh b/create_pxeinitrd.sh index a49d318..1989225 100755 --- a/create_pxeinitrd.sh +++ b/create_pxeinitrd.sh @@ -163,7 +163,7 @@ mkdir -p $INITRD_DIR/bin wget -O $INITRD_DIR/bin/busybox https://www.busybox.net/downloads/binaries/1.26.1-defconfig-multiarch/busybox-x86_64 chmod +x $INITRD_DIR/bin/busybox -cat <<-EOF >$INITRD_DIR/init +cat <<-"EOF" >$INITRD_DIR/init #!/bin/busybox sh # Dump to sh if something fails @@ -193,7 +193,7 @@ cat <<-EOF >$INITRD_DIR/init mdev -s mkdir -p /newroot - mount -t tmpfs -o size=${SIZE:=10000}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