-
Notifications
You must be signed in to change notification settings - Fork 158
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
templates.d/99-generic/live: Enable automatic persistence for live media #1360
base: master
Are you sure you want to change the base?
Conversation
This change alters the live environment operating mode to default to operating with full root system persistence using the functionality recently added to Dracut. It also adds menu entries so that it is possible to reset the persistence or start without persistence at all. This re-applies the change after it was reverted in Fedora Linux 38. Reference: https://fedoraproject.org/wiki/Changes/ModernizeLiveMedia Co-authored-by: Matt Coleman <[email protected]>
Pull Request Test Coverage Report for Build 7316367067
💛 - Coveralls |
So I tested this in openQA, and it seems there's a problem. It doesn't run the right mode of gnome-initial-setup on startup. Currently in Rawhide, when booting a Workstation live, it should run a specific mode of g-i-s which just shows the language and input method questions, then shows a "Try or Install?" screen which lets you continue to a live desktop or launch the installer. However, with this patch applied, a live image seems to run a different mode of g-i-s: after the input method question, it continues to the "create a user" part of the flow, which should not happen. |
Hum, so now I had a bit more time to look at this, g-i-s may be doing the right thing after all. See the upstream MR for g-i-s. It's quite clever, because it folds in a similar feature that Endless has, and Endless already use persistence, so they already decided that in live+persistent mode, showing the "create a user" steps makes sense (which it does). So I think I was wrong in diagnosing that g-i-s is in the wrong mode; it might be in exactly the right mode, running the live workflow but showing the user creation pages because persistence is enabled. It does look like this is what's intended to happen. This is the check to force live user mode:
so we should still be hitting that, because with this patch,
That is, we automatically create a 'liveuser' account and skip the account page - but only if we're in live mode and I'll test the live image locally to see exactly how it works, and if it seems sane, I'll update the openQA tests to handle this new path and run them again. |
Hum, okay, so I tested some more, and I think this has issues. Booting with an actual USB stick on a bare metal host, I see these errors during boot:
g-i-s shows the 'enter a username' screen, but once I enter a username, it does not prompt me to enter a password. In the logs, I see this:
When I reach the end of g-i-s, if I choose to go to a live desktop, it never successfully reaches one. If I choose to run the installer, that does work OK. If I reboot and boot again 'with persistence enabled', there's no trace of anything I did on the previous boot - the home directory of the user I tried to create is not there, and If you want to try this out for yourself, the image is available at https://adamwill.fedorapeople.org/03861950-Fedora-Workstation-Live-x86_64-117403736.iso . |
I also think there's a case here we might not have considered: what about booting from an optical disc? Yes, you can still write the ISO to a shiny coaster and boot it, it (probably) works. More realistically, you can boot a virtual machine with the ISO attached as a virtual optical medium. In this case we still show all the "boot with persistence" options, but obviously persistence will not work. (But g-i-s will probably still try to create a user account). I'm not sure what we can do to make this path better, but it seems like an issue. |
This change alters the live environment operating mode to default to operating with full root system persistence using the functionality recently added to Dracut.
It also adds menu entries so that it is possible to reset the persistence or start without persistence at all.
This re-applies the change after it was reverted in Fedora Linux 38.
Reference: https://fedoraproject.org/wiki/Changes/ModernizeLiveMedia