/srv/irclogs.ubuntu.com/2016/12/02/#ubuntu-installer.txt

bergkattenHi, I'm customizing the ubuntu livecd and need to be able to 1: run a post installation script to pull some files after the installer is done, 2: would be nice to have the hd encryption as default setting if the user does not have other preferences.13:10
xnoxi am getting installer hangs.14:56
CarlFKbergkatten: you know about  the preeseed file?  I don't know where a good place for you to start is, but I found this: https://help.ubuntu.com/community/LiveCDCustomizationFromScratch14:57
xnoxi'm not sure we can do without swap partition in ubiquity. or i'm doing it wrong.14:57
bergkatten<xnox>: thanks i'm looking at the link15:49
bergkatteni've found this one:  https://help.ubuntu.com/community/LiveCDCustomization , not so far :)15:51
* xnox was talking to myself really =)15:54
* xnox is deep into fixing things15:55
CarlFKxnox: append  file=/cdrom/preseed/ubuntu.seed  https://help.ubuntu.com/lts/installation-guide/example-preseed.txt  #d-i preseed/late_command string apt-install zsh; in-target chsh -s /bin/zsh15:57
CarlFKthat is your post installation script15:57
xnoxFrom https://wiki.ubuntu.com/UbiquityAutomation16:01
xnoxyou may also use: ubiquity/success_command: similar to preseed/late_command. Specify a command to be run when the install completes successfully (runs outside of /target, but /target is mounted when the command is invoked).16:01
bergkatten <CarlFK>: i'll a basic preseed now to see if it's being triggered even when starting the installer from the desktop in a "try ubuntu" session, bbl17:35
CarlFK"post installation script to pull some files after the installer is done"  Ummm... that does not sound like "try ubuntu" session17:43
=== ahoneybun_ is now known as ahoneybun
xnoxCarlFK, if you want to customize live-session -> without affecting installed system, you need to apply tweaks at casper level (this is what differentiates live-session vs installed system)22:10
xnoxif you want to affect both, you need to respin the livecd rootfs / rebuild squashfs.22:10
CarlFKxnox: keep in mind I don22:12
CarlFKer22:12
CarlFKxnox: keep in mind I don't want any of this.  bergkatten want's something, but i am not really sure what now.22:12
CarlFKI use pxe to boot the installer + preseed22:13
xnoxhehe.22:15
xnoxsorry, lost track of who requested what =)22:15
bergkatteni'd like to be able to  allow the installer run ready after the user started a "try ubuntu" session and when the installer is successfully done a postinstall script should be run in /target.22:15
bergkattenbasically i read it here: https://wiki.ubuntu.com/UbiquityAutomation  that: "ubiquity/success_command:  " would do what i want but not in chroot /target22:19
bergkatteni which to join a puppet server in that script22:19
superm1xnox: this swapfile by default, any ideas what scenarios it doesn't play friendly with?  i seem to recall there was a big enough list a few years back that it didn't happen22:30
superm1maybe hibernate was one?22:31
xnoxsuperm1, we do not support hibernate out of the box since trusty22:35
xnox(disabled by default)22:35
superm1oh, i see22:36
xnox(or maybe even before that)22:36
superm1but so if someone tried to enable hibernate that probably does also break when using a swapfile22:36
xnoxsuperm1, in practice swap is not used by default, but we want to have /some/ swap available when things balloon.22:36
superm1right22:37
xnoxsuperm1, why not? hybernating to swapfile should work if one (a) resizes swapfile to be larger (b) adjusts resume line22:37
xnoxsuperm1, i have a workitem open to check how easy/hard hibernation to swapfile is.22:37
xnoxsuperm1, note that with lvm or fulldisk encryption (uses LVM on LUKS) swap is still an LVM volume.22:38
superm1xnox: ah okay good.  i guess you can make the swapfile on demand, which actually makes it more flexible too22:38
superm1in that you can create the right size file immediately22:38
superm1and if you change RAM in teh system, you aren't screwed by making swap the wrong size at installation22:38
xnoxthere is a small minority that advocates allocating swapfile upon initiating hibernation.....22:38
xnoxthe biggest driver is that swap is not longer useful, and default installation sizes are wrong too.22:39
superm1the most important thing in my mind is that the file is contiguous for hibernation22:39
superm1especially if you're on a spindle22:39
xnoxe.g. 32GB swap partition on NVMe drive with 16GB of RAM is a waste of NVMe disk space22:39
superm1yeah22:39
superm1the reason i'm bringing up hibernation, is that it becomes extra interesting as machines start to use suspend-to-idle instead of s3 by default22:40
xnoxhence swapfile is limited to 5% of rootfs free disk space, or 1 GB, whatever is largest (tweakable)22:40
superm1you really do want to start having suspend-to-idle + hibernate on a timer22:40
superm1like how hybrid-s3 works22:40
xnoxi don't know what suspend-to-idle means. My understanding is that "suspend" has become the thing to do, and it has become ever more power efficient thing to do.22:41
superm1suspend to idle is the linux equivalent of "disconnected standby"22:42
superm1rather than turning everything but RAM off, the CPU goes into a super low power state22:43
superm1the kernel freezes all tasks22:43
superm1and the kernel puts all the devices into D3cold22:43
superm1on new hardware it's as good or better than S322:43
superm1once this is merged, it will become more commonly used by default: http://www.spinics.net/lists/linux-acpi/msg70357.html22:44

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!