Fix init script for initramfs.
This commit is contained in:
parent
0682c9b27b
commit
0e4b7e67a9
@ -49,10 +49,10 @@ mkdir /mnt/tmpfs/work
|
|||||||
mount -t overlay -o rw,workdir=/mnt/tmpfs/work,upperdir=/mnt/tmpfs/rw,lowerdir=/mnt/squashfs overlay /rootfs
|
mount -t overlay -o rw,workdir=/mnt/tmpfs/work,upperdir=/mnt/tmpfs/rw,lowerdir=/mnt/squashfs overlay /rootfs
|
||||||
|
|
||||||
# Extract any addon packages
|
# Extract any addon packages
|
||||||
if [ -n "$(find . -maxdepth 1 -name '*.tar')" ]; then
|
if [ -n "\$(find . -maxdepth 1 -name '*.tar')" ]; then
|
||||||
for i in /*.tar; do
|
for i in /*.tar; do
|
||||||
echo "INITRAMFS: Extracting: $i ..."
|
echo "INITRAMFS: Extracting: \$i ..."
|
||||||
tar x -f $i -C /rootfs
|
tar x -f \$i -C /rootfs
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user