add warnings

This commit is contained in:
Rudra Saraswat 2023-05-08 23:16:04 +05:30
parent 083a1e29d5
commit a276c0020e

View file

@ -216,6 +216,12 @@ def handle_system_packages(install):
error('already running')
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')
while exec('umount', '-l', '/.blendrw/usr', stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL) == 0:
pass
@ -282,6 +288,7 @@ def handle_system_packages(install):
exec('mv', usr_overlay, '/.blend-overlays/future-usr')
exec('mv', varlibpacman_overlay, '/.blend-overlays/future-varlibpacman')
exec('rm', '-rf', usr_overlay_workdir, varlibpacman_overlay_workdir)
info('reboot to apply changes')
else:
info("you are requested to review the operation's output")
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', varlibpacman_overlay, '/.blend-overlays/future-varlibpacman')
exec('rm', '-rf', usr_overlay_workdir, varlibpacman_overlay_workdir)
info('reboot to apply changes')
def daemon():