From 76aea65129899f95482325756e9194326656105c Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 1 Jan 2018 02:40:48 +0100 Subject: [PATCH] calamares: update openmamba-postinstall script for calamares 3.1 --- calamares/openmamba-postinstall/main.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/calamares/openmamba-postinstall/main.py b/calamares/openmamba-postinstall/main.py index 8559294..10a9100 100644 --- a/calamares/openmamba-postinstall/main.py +++ b/calamares/openmamba-postinstall/main.py @@ -12,20 +12,20 @@ def run(): """ Complete setup after openmamba installation """ # fix root path ('/') permissions - libcalamares.utils.chroot_call(['chmod', '0755', '/']) + libcalamares.utils.target_env_call(['chmod', '0755', '/']) # remove bluetooth config with livecd hostname - libcalamares.utils.chroot_call(['rm', '-f', '/var/lib/bluetooth/*/config']) + libcalamares.utils.target_env_call(['rm', '-f', '/var/lib/bluetooth/*/config']) # create user home username = libcalamares.globalstorage.value("username") - libcalamares.utils.chroot_call(['cp', '-r', '/etc/skel/.', '/home/%s' % username ]) - libcalamares.utils.chroot_call(['chmod', '0711', '/home/%s' % username ]) - libcalamares.utils.chroot_call(['mkdir', '-p', '/home/%s/.config/autostart' % username ]) - libcalamares.utils.chroot_call(['ln', '-s', '/usr/share/openmamba/mambabase/mambabase-autostart.desktop', + libcalamares.utils.target_env_call(['cp', '-r', '/etc/skel/.', '/home/%s' % username ]) + libcalamares.utils.target_env_call(['chmod', '0711', '/home/%s' % username ]) + libcalamares.utils.target_env_call(['mkdir', '-p', '/home/%s/.config/autostart' % username ]) + libcalamares.utils.target_env_call(['ln', '-s', '/usr/share/openmamba/mambabase/mambabase-autostart.desktop', '/home/%s/.config/autostart/mambabase.desktop' % username ]) - libcalamares.utils.chroot_call(['chown', '-R', '%s:users' % username, '/home/%s' % username ]) - libcalamares.utils.chroot_call(['chown', '-R', '%s:users' % username, '/home/%s/.config' % username ]) + libcalamares.utils.target_env_call(['chown', '-R', '%s:users' % username, '/home/%s' % username ]) + libcalamares.utils.target_env_call(['chown', '-R', '%s:users' % username, '/home/%s/.config' % username ]) return None