From 44c729c5a1435be5d3446ad872ed3cd702fdad68 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Mon, 17 Aug 2015 20:49:30 +0200 Subject: [PATCH] openmamba-postinstall: remove bluetooth config with livecd hostname inside Also maybe fix chroot calls which were apparently broken. --- calamares/openmamba-postinstall/main.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/calamares/openmamba-postinstall/main.py b/calamares/openmamba-postinstall/main.py index 514fee0..d51399d 100644 --- a/calamares/openmamba-postinstall/main.py +++ b/calamares/openmamba-postinstall/main.py @@ -14,15 +14,18 @@ def run(): # fix root path ('/') permissions libcalamares.utils.chroot_call(['chmod', '0755', '/']) + # remove bluetooth config with livecd hostname + libcalamares.utils.chroot_call(['rm', '-f', '/var/lib/bluetooth/*/config']) + # create user home username = libcalamares.globalstorage.value("username") - libcalamares.utils.chroot_call(['chroot', 'cp', '-a', '/etc/skel', '/home/' . username ]) - libcalamares.utils.chroot_call(['chroot', 'chmod', '0711', '/home/' . username ]) - libcalamares.utils.chroot_call(['chroot', 'mkdir', '-p', '/home/' . username . '/.config/autostart' ]) - libcalamares.utils.chroot_call(['chroot', 'ln', '-s', '/usr/share/openmamba/mambabase/mambabase-autostart.desktop', + libcalamares.utils.chroot_call(['cp', '-a', '/etc/skel', '/home/' . username ]) + libcalamares.utils.chroot_call(['chmod', '0711', '/home/' . username ]) + libcalamares.utils.chroot_call(['mkdir', '-p', '/home/' . username . '/.config/autostart' ]) + libcalamares.utils.chroot_call(['ln', '-s', '/usr/share/openmamba/mambabase/mambabase-autostart.desktop', '/home/' . username . '/.config/autostart/mambabase.desktop' ]) - libcalamares.utils.chroot_call(['chroot', 'chown', '-R ', username . '.users', '/home/' . username ]) - libcalamares.utils.chroot_call(['chroot', 'chown', '-R ', username . '.users', '/home/' . username . '/.config' ]) + libcalamares.utils.chroot_call(['chown', '-R ', username . '.users', '/home/' . username ]) + libcalamares.utils.chroot_call(['chown', '-R ', username . '.users', '/home/' . username . '/.config' ]) return None