Fix init script for initramfs.

This commit is contained in:
Mateusz Hromada 2017-07-06 00:05:32 +02:00
parent 0682c9b27b
commit 0e4b7e67a9

View File

@ -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
# 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
echo "INITRAMFS: Extracting: $i ..."
tar x -f $i -C /rootfs
echo "INITRAMFS: Extracting: \$i ..."
tar x -f \$i -C /rootfs
done
fi