| Summary: | User group replaced by live after system installation from 7beta2 Live isos | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Len Lawrence <tarazed25> |
| Component: | RPM Packages | Assignee: | Mageia tools maintainers <mageiatools> |
| Status: | NEW --- | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Normal | CC: | davidwhodgins, isobuild, mageia, marja11 |
| Version: | Cauldron | Keywords: | 7beta2 |
| Target Milestone: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | draklive-install (?) | CVE: | |
| Status comment: | |||
| Attachments: | Journal file from Xf86 Live installation | ||
|
Description
Len Lawrence
2019-02-17 10:02:22 CET
As root in a terminal, please run journalctl -b 2 > journal.log and attach the resulting log file. CC:
(none) =>
mageia Created attachment 10753 [details]
Journal file from Xf86 Live installation
# journalctl -b 2
Not sure how far back we need to go. -3 and -4 are available.
That's the one I needed. "-b 2" is the second boot from the start of the journal, which is the first boot after the install. Looking in the log, the problem appears to be: Feb 16 22:26:16 localhost drakx-installer-xsetup[1800]: usermod: directory /home/lcl exists Did you by any chance create that directory before running the install? Yes, lcl is me, on my home partition, which is usually a separate disk. Have never tried creating a new user during these test installations. So, we can infer that when installing from Live media we should either accept that some manipulation may be required at first login or else create an entirely new user? In which case this is not a bug at all, but a feature. Case closed? On a later installation of Plasma Live the journal shows: Feb 17 15:41:10 markab usermod[2529]: change user name 'live' to 'lcl' Feb 17 15:41:10 markab usermod[2529]: change user 'lcl' home from '/home/live' to '/home/lcl' Feb 17 15:41:10 markab finish-install[1922]: symlinked file /home/lcl to /home/live Feb 17 15:41:10 markab finish-install[1922]: running: grep -D skip -rl /home/live /home/lcl/.??* | while read f; do perl -pi -e 's,/home/live,/home/lcl,g' "$f"; done And I suppose it does make sense to create a new user during testing to put the system throgh its paces. The live system starts with a single user, named "live". When you install the live system, on reboot it attempts to rename that user to the name you provide, thus preserving any changes you may have made when running the live system. Of course, to people who use the classical installer, this behaviour isn't what they are used to... Open to suggestions as to what we should do here. Maybe, if a home directory for the given name exists, just add that user and leave the old "live" user as is? Yes, maybe, but creating users, apart from 'live', should be part of the testing process. That obviously does not apply to non-testers. By 'add that user' do you mean offering the name as a default in the 'user' field so that he/she is recreated in /etc/passwd and /etc/group? Sounds OK to me. 'live' user would not be touched. On second thoughts - what if there are several existing users - then you would need multiple choice. Getting too complicated. You don't want to mess with existing dialogues. Simplest would be to add a stanza to ask "New or existing user?", maybe. No, your original idea would fit the bill. Check the name entered against existing home directories. Leave 'live' as is and proceed as with classical install. Muddy thinking again (mea culpa). No need to distinguish between "new user" and "live"; basically the same thing. (In reply to Martin Whitaker from comment #7) > The live system starts with a single user, named "live". When you install > the live system, on reboot it attempts to rename that user to the name you > provide, thus preserving any changes you may have made when running the live > system. Of course, to people who use the classical installer, this behaviour > isn't what they are used to... So it's draklive-install that's the culprit, right? > > Open to suggestions as to what we should do here. Maybe, if a home directory > for the given name exists, just add that user and leave the old "live" user > as is? Sounds good to me. CC:
sysadmin-bugs =>
isobuild, marja11 The live iso images are intended for clean installs only. This is stated at https://wiki.mageia.org/en/Installation_Media#Live_mode It would be nice, as an enhancement to the installer, adding a warning the that overwriting existing files will occur, if /home is not empty, that would be for Mageia 8. Changing the severity to enhancement. Severity:
major =>
enhancement |