Re: [ALFS Trac] #1739: Reorder or remove deleting the lfs user
| Newsgroups | gmane.linux.lfs.automated |
|---|---|
| Message-ID | <[email protected]> |
#1739: Reorder or remove deleting the lfs user
--------------------+------------------------------
Reporter: xry111 | Owner: Pierre Labastie
Type: defect | Status: accepted
Priority: normal | Milestone:
Component: jhalfs | Version: GIT
Severity: normal | Resolution:
Keywords: |
--------------------+------------------------------
Comment (by Pierre Labastie):
Ok, so several strategy discussed, both on mail and here:
- renodr: agrees with comment:3
- xry111: proposes to modify the LFS book so that it is easy to replace
"lfs" with another name. Has to be agreed on the LFS side, though.
- bdubbs: proposes to remove the lfs user before entering jhalfs, and to
always remove it when it is not needed anymore (before entering chroot).
- Jeremy wiig: agrees with bdubbs, but had rather be able to create and
use a random lfs user (lfs$RANDOM or so).
So I'd propose two possible approaches here:
- if the LFS book is modified: let the user define the name and group of
the temporary user (default lfs:lfs, but could also be cosette:miserables
or whatever). This user and group shouldn't exist on the machine and would
be removed before entering chroot (as bdubbs said, there is no need to
keep it further on an automated build)
- if the LFS book isn't modified: roughly keep the present state of trunk,
except if an lfs user already exists, it is moved to another name before
creating a temporary one. The temporary one would be deleted before
entering jhalfs, and the moved one would be left as is (possibly with a
warning at the end of the jhalfs run).
Note that bdubbs made the a good point telling that the temporary user is
only needed to stay in a manual build, to be able to fix errors in chap. 5
and 6, but not in an automated build...
--
Ticket URL: <https://wiki.linuxfromscratch.org/alfs /ticket/1739#comment:11>
ALFS Trac <https://wiki.linuxfromscratch.org/alfs/>
Automated Linux From Scratch
--
http://lists.linuxfromscratch.org/sympa/info/alfs-discuss
Unsubscribe: See the above information page