Change default user uid to 10000

This commit is contained in:
NotKit 2018-08-02 20:10:56 +00:00 committed by Oliver Smith
parent e82b7e427d
commit e22ba8caea
22 changed files with 53 additions and 34 deletions

View file

@ -134,6 +134,22 @@ def migrate_work_folder(args):
migrate_success(args, 2)
current = 2
if current == 2:
# Ask for confirmation
logging.info("Changelog:")
logging.info("* Device chroots have a different user UID (#1576)")
logging.info("Migration will do the following:")
logging.info("* Zap your chroots")
if not pmb.helpers.cli.confirm(args):
raise RuntimeError("Aborted.")
# Zap chroots
pmb.chroot.zap(args, False)
# Update version file
migrate_success(args, 3)
current = 3
# Can't migrate, user must delete it
if current != required:
raise RuntimeError("Sorry, we can't migrate that automatically. Please"