summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/live-installer/install_functions.sh
diff options
context:
space:
mode:
authorJames Meyer <james.meyer@operamail.com>2008-11-05 23:13:29 (GMT)
committerJames Meyer <james.meyer@operamail.com>2008-11-05 23:13:29 (GMT)
commit53ed8e22c9626d9dccf9676f0dfc95f6e7b9756c (patch)
tree019a998cefc5f360da9835f3082caf0e47237177 /abs/core-testing/live-installer/install_functions.sh
parent9bedd8cf62642d2c1ccec60000a70c3b9bd60e5e (diff)
downloadlinhes_pkgbuild-53ed8e22c9626d9dccf9676f0dfc95f6e7b9756c.zip
linhes_pkgbuild-53ed8e22c9626d9dccf9676f0dfc95f6e7b9756c.tar.gz
linhes_pkgbuild-53ed8e22c9626d9dccf9676f0dfc95f6e7b9756c.tar.bz2
create vg mount points for updates.
Diffstat (limited to 'abs/core-testing/live-installer/install_functions.sh')
-rwxr-xr-xabs/core-testing/live-installer/install_functions.sh11
1 files changed, 9 insertions, 2 deletions
diff --git a/abs/core-testing/live-installer/install_functions.sh b/abs/core-testing/live-installer/install_functions.sh
index bafb27a..511dc16 100755
--- a/abs/core-testing/live-installer/install_functions.sh
+++ b/abs/core-testing/live-installer/install_functions.sh
@@ -414,8 +414,15 @@ case $1 in
sed -i -e "s/.*swap\ .*$/UUID=$SWAPUUID swap swap defaults 0/g" /$mountpoint/etc/fstab
#if Knoppmyth upgrade then loop through old fstab picking out vg
-
-
+ if [ -f /tmp/etc/KnoppMyth-version ]
+ then
+ if [ -f /tmp/etc/fstab ]
+ then
+ grep /dev/vg /tmp/etc/fstab >> /$mountpoint/etc/fstab
+ grep /dev/vg /tmp/etc/fstab | awk -v mount=$mountpoint ' { print "/" mount $2 }' |xargs mkdir
+ grep /dev/vg /tmp/etc/fstab | awk -v mount=$mountpoint ' { print "/" mount $2 }' |xargs chown -R mythtv:users
+ fi
+ fi
;;
grub_it )