Commit 44c729c5a1435be5d3446ad872ed3cd702fdad68

Authored by Silvan Calarco
1 parent 536c01796d
Exists in master

openmamba-postinstall: remove bluetooth config with livecd hostname inside

Also maybe fix chroot calls which were apparently broken.

Showing 1 changed file with 9 additions and 6 deletions Side-by-side Diff

calamares/openmamba-postinstall/main.py
... ... @@ -14,16 +14,19 @@
14 14 # fix root path ('/') permissions
15 15 libcalamares.utils.chroot_call(['chmod', '0755', '/'])
16 16  
  17 + # remove bluetooth config with livecd hostname
  18 + libcalamares.utils.chroot_call(['rm', '-f', '/var/lib/bluetooth/*/config'])
  19 +
17 20 # create user home
18 21 username = libcalamares.globalstorage.value("username")
19 22  
20   - libcalamares.utils.chroot_call(['chroot', 'cp', '-a', '/etc/skel', '/home/' . username ])
21   - libcalamares.utils.chroot_call(['chroot', 'chmod', '0711', '/home/' . username ])
22   - libcalamares.utils.chroot_call(['chroot', 'mkdir', '-p', '/home/' . username . '/.config/autostart' ])
23   - libcalamares.utils.chroot_call(['chroot', 'ln', '-s', '/usr/share/openmamba/mambabase/mambabase-autostart.desktop',
  23 + libcalamares.utils.chroot_call(['cp', '-a', '/etc/skel', '/home/' . username ])
  24 + libcalamares.utils.chroot_call(['chmod', '0711', '/home/' . username ])
  25 + libcalamares.utils.chroot_call(['mkdir', '-p', '/home/' . username . '/.config/autostart' ])
  26 + libcalamares.utils.chroot_call(['ln', '-s', '/usr/share/openmamba/mambabase/mambabase-autostart.desktop',
24 27 '/home/' . username . '/.config/autostart/mambabase.desktop' ])
25   - libcalamares.utils.chroot_call(['chroot', 'chown', '-R ', username . '.users', '/home/' . username ])
26   - libcalamares.utils.chroot_call(['chroot', 'chown', '-R ', username . '.users', '/home/' . username . '/.config' ])
  28 + libcalamares.utils.chroot_call(['chown', '-R ', username . '.users', '/home/' . username ])
  29 + libcalamares.utils.chroot_call(['chown', '-R ', username . '.users', '/home/' . username . '/.config' ])
27 30  
28 31 return None