diff options
author | Olivier Blin <oblin@mandriva.com> | 2008-05-30 13:56:14 +0000 |
---|---|---|
committer | Olivier Blin <oblin@mandriva.com> | 2008-05-30 13:56:14 +0000 |
commit | 39ceba8969796a30a3c7581515a4347a4dd9058e (patch) | |
tree | 3fc1ef7e55cd4f6643b2ffbfe344d097adb55d4b | |
parent | 1ef5a14b44aeffc12f5c122cef408f7a9ed4d6bb (diff) | |
download | draklive-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-x | draklive-install | 6 |
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'); |