In the boot method there is also some housekeeping needed.
This commit is contained in:
parent
83c3752582
commit
3f90849d8a
1 changed files with 8 additions and 0 deletions
|
@ -1271,6 +1271,7 @@ cat << EOF
|
|||
|
||||
all: ck_UID mk_SETUP mk_CROSS mk_SUDO
|
||||
@sudo make restore-luser-env
|
||||
@sudo make do-housekeeping
|
||||
@\$(call echo_boot_finished,$VERSION)
|
||||
|
||||
makesys: mk_FINAL
|
||||
|
@ -1319,6 +1320,13 @@ AS_LUSER: $cross_tools $temptools ${chroottools}${boottools}
|
|||
SUDO: $orphan_scripts
|
||||
AS_ROOT: $testsuitetools $basicsystem $bootscripttools $bootabletools
|
||||
|
||||
do-housekeeping:
|
||||
@-rm /tools /cross-tools
|
||||
@-if [ ! -f luser-exist ]; then \\
|
||||
userdel \$(LUSER); \\
|
||||
rm -rf /home/\$(LUSER); \\
|
||||
fi;
|
||||
|
||||
EOF
|
||||
) >> $MKFILE
|
||||
fi
|
||||
|
|
Reference in a new issue