Lint hostapp.sh and robust umount (#406)

* Lint hostapp.sh and robust umount

* Update hostapp.sh

* Update Dockerfile

* Update Dockerfile

* Update hassos.mk

* Update hostapp.sh

* Update Dockerfile

* Update hassos.mk

* Update hostapp.sh

* Update hdd-image.sh

* Update entry.sh
This commit is contained in:
Pascal Vizeli
2019-05-14 23:22:48 +02:00
committed by GitHub
parent d5e6cc78d5
commit 1febb31647
5 changed files with 44 additions and 18 deletions

View File

@@ -89,10 +89,10 @@ function create_kernel_image() {
mkfs.ext4 -L "hassos-kernel" -E lazy_itable_init=0,lazy_journal_init=0 -O ^extent,^64bit "${kernel_img}"
# Mount / init file structs
mkdir -p /mnt/data/
mount -o loop "${kernel_img}" /mnt/data
cp -f "${kernel}" /mnt/data/
umount /mnt/data
sudo mkdir -p /mnt/data/
sudo mount -o loop "${kernel_img}" /mnt/data
sudo cp -f "${kernel}" /mnt/data/
sudo umount /mnt/data
}