From 5503f78b542c051d74484570c71c3310c60f73d6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonah=20Br=C3=BCchert?= Date: Sat, 13 Jul 2019 10:31:27 +0200 Subject: [PATCH] Add fallback support for the dir layout of halium-boot Allows easier modification of files in the rootfs for development purpose and uses the space on /data more efficiently --- init-script | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/init-script b/init-script index 115022f..594f4da 100755 --- a/init-script +++ b/init-script @@ -145,7 +145,11 @@ mount_stowaways() { mkdir /target mount $DATA_PARTITION /data - mount /data/rootfs.img /target + if [ -f /data/rootfs.img ]; then + mount /data/rootfs.img /target + else + mount -o bind /data/halium-rootfs /target + fi mkdir -p /target/data # in new fs mount --bind /data/${data_subdir} /target/data