Update perms for future overlays
This commit is contained in:
parent
5e4d2103a4
commit
85e8fe8386
1 changed files with 4 additions and 4 deletions
8
akshara
8
akshara
|
@ -225,24 +225,24 @@ def handle_system_packages(operation):
|
||||||
exec('rm', '-rf', f'/mnt/{old_overlay}')
|
exec('rm', '-rf', f'/mnt/{old_overlay}')
|
||||||
usr_overlay = subprocess.run(
|
usr_overlay = subprocess.run(
|
||||||
['mktemp', '-d', '/mnt/.blend-tmp-overlay-XXXXXXXXXXXXX'], stdout=subprocess.PIPE).stdout.decode().strip()
|
['mktemp', '-d', '/mnt/.blend-tmp-overlay-XXXXXXXXXXXXX'], stdout=subprocess.PIPE).stdout.decode().strip()
|
||||||
exec('chmod', '=rw', usr_overlay)
|
exec('chmod', '-R', '755', usr_overlay)
|
||||||
if os.path.isdir('/.blend-overlays/future-usr'):
|
if os.path.isdir('/.blend-overlays/future-usr'):
|
||||||
exec('rm', '-f', '/.blend-overlays/future-usr/.okay')
|
exec('rm', '-f', '/.blend-overlays/future-usr/.okay')
|
||||||
exec('rm', '-rf', usr_overlay)
|
exec('rm', '-rf', usr_overlay)
|
||||||
exec('mv', '/.blend-overlays/future-usr', usr_overlay)
|
exec('mv', '/.blend-overlays/future-usr', usr_overlay)
|
||||||
usr_overlay_workdir = subprocess.run(
|
usr_overlay_workdir = subprocess.run(
|
||||||
['mktemp', '-d', '/mnt/.blend-tmp-overlay-XXXXXXXXXXXXX'], stdout=subprocess.PIPE).stdout.decode().strip()
|
['mktemp', '-d', '/mnt/.blend-tmp-overlay-XXXXXXXXXXXXX'], stdout=subprocess.PIPE).stdout.decode().strip()
|
||||||
exec('chmod', '=rw', usr_overlay_workdir)
|
exec('chmod', '-R', '755', usr_overlay_workdir)
|
||||||
varlibpacman_overlay = subprocess.run(
|
varlibpacman_overlay = subprocess.run(
|
||||||
['mktemp', '-d', '/mnt/.blend-tmp-overlay-XXXXXXXXXXXXX'], stdout=subprocess.PIPE).stdout.decode().strip()
|
['mktemp', '-d', '/mnt/.blend-tmp-overlay-XXXXXXXXXXXXX'], stdout=subprocess.PIPE).stdout.decode().strip()
|
||||||
exec('chmod', '=rw', varlibpacman_overlay)
|
exec('chmod', '-R', '755', varlibpacman_overlay)
|
||||||
if os.path.isdir('/.blend-overlays/future-varlibpacman'):
|
if os.path.isdir('/.blend-overlays/future-varlibpacman'):
|
||||||
exec('rm', '-f', '/.blend-overlays/future-varlibpacman/.okay')
|
exec('rm', '-f', '/.blend-overlays/future-varlibpacman/.okay')
|
||||||
exec('rm', '-rf', varlibpacman_overlay)
|
exec('rm', '-rf', varlibpacman_overlay)
|
||||||
exec('mv', '/.blend-overlays/future-varlibpacman', varlibpacman_overlay)
|
exec('mv', '/.blend-overlays/future-varlibpacman', varlibpacman_overlay)
|
||||||
varlibpacman_overlay_workdir = subprocess.run(
|
varlibpacman_overlay_workdir = subprocess.run(
|
||||||
['mktemp', '-d', '/mnt/.blend-tmp-overlay-XXXXXXXXXXXXX'], stdout=subprocess.PIPE).stdout.decode().strip()
|
['mktemp', '-d', '/mnt/.blend-tmp-overlay-XXXXXXXXXXXXX'], stdout=subprocess.PIPE).stdout.decode().strip()
|
||||||
exec('chmod', '=rw', varlibpacman_overlay_workdir)
|
exec('chmod', '-R', '755', varlibpacman_overlay_workdir)
|
||||||
if '' in (usr_overlay, usr_overlay_workdir, varlibpacman_overlay, varlibpacman_overlay_workdir):
|
if '' in (usr_overlay, usr_overlay_workdir, varlibpacman_overlay, varlibpacman_overlay_workdir):
|
||||||
for old_overlay in os.listdir('/mnt'):
|
for old_overlay in os.listdir('/mnt'):
|
||||||
if old_overlay.startswith('.blend-tmp-overlay-'):
|
if old_overlay.startswith('.blend-tmp-overlay-'):
|
||||||
|
|
Loading…
Reference in a new issue