summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-05-30 13:56:14 +0000
committerOlivier Blin <oblin@mandriva.com>2008-05-30 13:56:14 +0000
commit39ceba8969796a30a3c7581515a4347a4dd9058e (patch)
tree3fc1ef7e55cd4f6643b2ffbfe344d097adb55d4b
parent1ef5a14b44aeffc12f5c122cef408f7a9ed4d6bb (diff)
downloaddraklive-install-39ceba8969796a30a3c7581515a4347a4dd9058e.tar
draklive-install-39ceba8969796a30a3c7581515a4347a4dd9058e.tar.gz
draklive-install-39ceba8969796a30a3c7581515a4347a4dd9058e.tar.bz2
draklive-install-39ceba8969796a30a3c7581515a4347a4dd9058e.tar.xz
draklive-install-39ceba8969796a30a3c7581515a4347a4dd9058e.zip
do not allow update-menus to create home directory with invalid perms
-rwxr-xr-xdraklive-install6
1 files changed, 5 insertions, 1 deletions
diff --git a/draklive-install b/draklive-install
index 9a54891..47ac665 100755
--- a/draklive-install
+++ b/draklive-install
@@ -248,7 +248,11 @@ sub complete_install {
$live_user_desktop . '/draklive-copy-wizard.desktop',
$live_user_desktop . '/draklive-install.desktop'),
);
- system('chroot', $::prefix, 'rpm', '-e', 'draklive-install');
+ {
+ #- do not allow update-menus to create home directory with invalid perms
+ local $ENV{HOME} = '/root';
+ system('chroot', $::prefix, 'rpm', '-e', 'draklive-install');
+ }
#- copy sysconfig files for first boot
cp_f(glob('/etc/draklive-install.d/sysconfig/*'), $::prefix . '/etc/sysconfig');