add warnings
This commit is contained in:
parent
083a1e29d5
commit
a276c0020e
1 changed files with 8 additions and 0 deletions
8
akshara
8
akshara
|
@ -216,6 +216,12 @@ def handle_system_packages(install):
|
||||||
error('already running')
|
error('already running')
|
||||||
exit(1)
|
exit(1)
|
||||||
|
|
||||||
|
info('this command will discard any system packages installed')
|
||||||
|
info("previously if you didn't reboot after instlling them")
|
||||||
|
print()
|
||||||
|
info('this should __only__ be used for the installation of drivers')
|
||||||
|
info('blendOS is __not__ responsible for any system breakage')
|
||||||
|
|
||||||
exec('mkdir', '-p', '/.blendrw')
|
exec('mkdir', '-p', '/.blendrw')
|
||||||
while exec('umount', '-l', '/.blendrw/usr', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) == 0:
|
while exec('umount', '-l', '/.blendrw/usr', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) == 0:
|
||||||
pass
|
pass
|
||||||
|
@ -282,6 +288,7 @@ def handle_system_packages(install):
|
||||||
exec('mv', usr_overlay, '/.blend-overlays/future-usr')
|
exec('mv', usr_overlay, '/.blend-overlays/future-usr')
|
||||||
exec('mv', varlibpacman_overlay, '/.blend-overlays/future-varlibpacman')
|
exec('mv', varlibpacman_overlay, '/.blend-overlays/future-varlibpacman')
|
||||||
exec('rm', '-rf', usr_overlay_workdir, varlibpacman_overlay_workdir)
|
exec('rm', '-rf', usr_overlay_workdir, varlibpacman_overlay_workdir)
|
||||||
|
info('reboot to apply changes')
|
||||||
else:
|
else:
|
||||||
info("you are requested to review the operation's output")
|
info("you are requested to review the operation's output")
|
||||||
info("press ENTER to proceed with making overlay permanent, or ^C to abort")
|
info("press ENTER to proceed with making overlay permanent, or ^C to abort")
|
||||||
|
@ -299,6 +306,7 @@ def handle_system_packages(install):
|
||||||
exec('mv', usr_overlay, '/.blend-overlays/future-usr')
|
exec('mv', usr_overlay, '/.blend-overlays/future-usr')
|
||||||
exec('mv', varlibpacman_overlay, '/.blend-overlays/future-varlibpacman')
|
exec('mv', varlibpacman_overlay, '/.blend-overlays/future-varlibpacman')
|
||||||
exec('rm', '-rf', usr_overlay_workdir, varlibpacman_overlay_workdir)
|
exec('rm', '-rf', usr_overlay_workdir, varlibpacman_overlay_workdir)
|
||||||
|
info('reboot to apply changes')
|
||||||
|
|
||||||
|
|
||||||
def daemon():
|
def daemon():
|
||||||
|
|
Loading…
Reference in a new issue