summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2010-03-09 14:45:05 +0000
committerOlivier Blin <oblin@mandriva.com>2010-03-09 14:45:05 +0000
commitc0dcb5fc0170183d49ee64972ad773f309914f5d (patch)
tree57931533822ee85385d7cddcebd672ca54e44e44
parentc938de6e764c69b68ab2d039023a085c73237e48 (diff)
downloaddraklive-c0dcb5fc0170183d49ee64972ad773f309914f5d.tar
draklive-c0dcb5fc0170183d49ee64972ad773f309914f5d.tar.gz
draklive-c0dcb5fc0170183d49ee64972ad773f309914f5d.tar.bz2
draklive-c0dcb5fc0170183d49ee64972ad773f309914f5d.tar.xz
draklive-c0dcb5fc0170183d49ee64972ad773f309914f5d.zip
mount /proc and /sys in post-install (to be friendly for packages installation, like Mythware)
-rwxr-xr-xdraklive7
1 files changed, 7 insertions, 0 deletions
diff --git a/draklive b/draklive
index 47725fd..aebf8a0 100755
--- a/draklive
+++ b/draklive
@@ -240,6 +240,9 @@ sub post_install_system {
#- workaround buggy installation of directories that are not owned by any packages
umask 022;
+ run_('mount', '-t', 'proc', '/proc', $live->get_system_root . '/proc');
+ run_('mount', '-t', 'sysfs', '/sys', $live->get_system_root . '/sys');
+
#- copy resolv.conf for name resolution to work when adding media
cp_f("/etc/resolv.conf", $live->get_system_root . "/etc");
@@ -341,6 +344,10 @@ sub post_install_system {
clean_system_conf_file($live, "/etc/resolv.conf");
write_dist_lists($live);
+ run_('umount', $live->get_system_root . '/sys');
+ run_('umount', $live->get_system_root . '/proc/bus/usb');
+ run_('umount', $live->get_system_root . '/proc');
+
umask $previous_umask;
}