From 3bc13a89e236dbec43b56d7931c11d7c98bffad5 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 11 Oct 2014 14:31:48 -0500 Subject: append fstab info for /data --- scripts/install.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/scripts/install.sh b/scripts/install.sh index 66553de6b..0b12266e8 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -499,18 +499,27 @@ case $target { (( quiet )) || print "Creating filesystem on ${rootpart}..." (( noformat )) || create_fs "$rootpart" ADKROOT ext4 +(( quiet )) || print Extracting installation archive... +mount_fs "$rootpart" "$R" ext4 +gzip -dc "$src" | (cd "$R"; tar -xpf -) + if (( datafssz )); then (( quiet )) || print "Creating filesystem on ${datapart}..." + mkdir -m0755 "$R"/data (( noformat )) || create_fs "$datapart" ADKDATA ext4 mount_fs "$datapart" "$D" ext4 mkdir -m0755 "$D/mpd" "$D/xbmc" umount_fs "$D" + case $target { + (raspberry-pi) + echo "/dev/mmcblk0p3 /data ext4 rw 0 0" >> "$R"/etc/fstab + ;; + (solidrun-imx6) + echo "/dev/mmcblk0p3 /data ext4 rw 0 0" >> "$R"/etc/fstab + ;; + } fi -(( quiet )) || print Extracting installation archive... -mount_fs "$rootpart" "$R" ext4 -gzip -dc "$src" | (cd "$R"; tar -xpf -) - case $target { (raspberry-pi) mount_fs "$bootpart" "$B" vfat -- cgit v1.2.3