summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-10-11 14:31:48 -0500
committerWaldemar Brodkorb <wbx@openadk.org>2014-10-11 14:31:48 -0500
commit3bc13a89e236dbec43b56d7931c11d7c98bffad5 (patch)
tree1063e0bc4f5112b3b3078dfdc49d576bfd32cb03
parentf0a578df945e3680efb0dffc7915accf19e60716 (diff)
append fstab info for /data
-rwxr-xr-xscripts/install.sh17
1 files 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