Sunday, April 28, 2024
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 1421  / 1 Year ago, tue, march 14, 2023, 11:01:26

I'm working on my first preseed file, and to avoid having to re-burn a DVD every time I make a change, I'm hosting it on a webserver and loading it with preseed/url=...



To load the preseed, I'm booting a virtual machine from an edubuntu 12.04 LTS DVD, selecting the Install Edubuntu option, pressing F6, and replacing the file=... with auto url=...



According to the logs on my webserver, the preseed file is getting downloaded by the installer, but then... as far as I can tell, it isn't being used. For example, I get prompted to select a language even though d-i debian-installer/locale string en_US is right there at the top of the preseed. I also tried this "100% automated" preseed with the same results.



So, apparently something is going wrong between the installer retrieving my preseed and the contents thereof actually getting used, and I'm at a loss for how to troubleshoot this further.



If I do a Ctrl+Alt+F2 while the installer starts, I can see a bunch of stuff happening, including several "Authentication Failed" messages that may or may not mean anything, but if that output gets saved in any way that lets me do a meaningful examination of it I haven't found it.



I'm sure I can't be the first person to have this problem, but I didn't find much when I searched for "preseed troubleshooting" here or on the Ubuntu forums, so perhaps this would be a good thread to start. Any advice would be greatly appreciated!


More From » software-installation

 Answers
2

Found the solution.



Short version: Live ISOs use a different installer (Ubiquity) than the one on the "alternate" ISO (d-i), which ignores many of the standard d-i preseed keywords.



I'd seen docs that recommended using the alt ISO for custom installers, but nothing explaining why, or saying what to do if you want to customize a live environment from which you can install.



I'd been thrown off by the fact that installing from a live environment undoes changes to certain config files by default, which led me to conclude that I had less control over the install than I did. It's actually pretty simple, just very, very different from a d-i install.



The best documentation I've found for this is actually not on the Internet, it's right on your system if you have the ubiquity package installed. Just do:



zcat /usr/share/doc/ubiquity/README.gz | less


And you're off.



You can also find it online in some source code repositories.


[#26537] Wednesday, March 15, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
rofity

Total Points: 182
Total Questions: 98
Total Answers: 115

Location: Albania
Member since Sat, Jan 7, 2023
1 Year ago
;