[13:10] <bergkatten> Hi, 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.
[14:56] <xnox> i am getting installer hangs.
[14:57] <CarlFK> bergkatten: 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/LiveCDCustomizationFromScratch
[14:57] <xnox> i'm not sure we can do without swap partition in ubiquity. or i'm doing it wrong.
 thanks i'm looking at the link
[15:51] <bergkatten> i've found this one:  https://help.ubuntu.com/community/LiveCDCustomization , not so far :)
[15:54]  * xnox was talking to myself really =)
[15:55]  * xnox is deep into fixing things
[15:57] <CarlFK> xnox: 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/zsh
[15:57] <CarlFK> that is your post installation script
[16:01] <xnox> From https://wiki.ubuntu.com/UbiquityAutomation
[16:01] <xnox> you 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).
[17:35] <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, bbl
[17:43] <CarlFK> "post installation script to pull some files after the installer is done"  Ummm... that does not sound like "try ubuntu" session
[22:10] <xnox> CarlFK, 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] <xnox> if you want to affect both, you need to respin the livecd rootfs / rebuild squashfs.
[22:12] <CarlFK> xnox: keep in mind I don
[22:12] <CarlFK> er
[22:12] <CarlFK> xnox: keep in mind I don't want any of this.  bergkatten want's something, but i am not really sure what now.
[22:13] <CarlFK> I use pxe to boot the installer + preseed
[22:15] <xnox> hehe.
[22:15] <xnox> sorry, lost track of who requested what =)
[22:15] <bergkatten> i'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:19] <bergkatten> basically i read it here: https://wiki.ubuntu.com/UbiquityAutomation  that: "ubiquity/success_command:  " would do what i want but not in chroot /target
[22:19] <bergkatten> i which to join a puppet server in that script
[22:30] <superm1> xnox: 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 happen
[22:31] <superm1> maybe hibernate was one?
[22:35] <xnox> superm1, we do not support hibernate out of the box since trusty
[22:35] <xnox> (disabled by default)
[22:36] <superm1> oh, i see
[22:36] <xnox> (or maybe even before that)
[22:36] <superm1> but so if someone tried to enable hibernate that probably does also break when using a swapfile
[22:36] <xnox> superm1, in practice swap is not used by default, but we want to have /some/ swap available when things balloon.
[22:37] <superm1> right
[22:37] <xnox> superm1, why not? hybernating to swapfile should work if one (a) resizes swapfile to be larger (b) adjusts resume line
[22:37] <xnox> superm1, i have a workitem open to check how easy/hard hibernation to swapfile is.
[22:38] <xnox> superm1, note that with lvm or fulldisk encryption (uses LVM on LUKS) swap is still an LVM volume.
[22:38] <superm1> xnox: ah okay good.  i guess you can make the swapfile on demand, which actually makes it more flexible too
[22:38] <superm1> in that you can create the right size file immediately
[22:38] <superm1> and if you change RAM in teh system, you aren't screwed by making swap the wrong size at installation
[22:38] <xnox> there is a small minority that advocates allocating swapfile upon initiating hibernation.....
[22:39] <xnox> the biggest driver is that swap is not longer useful, and default installation sizes are wrong too.
[22:39] <superm1> the most important thing in my mind is that the file is contiguous for hibernation
[22:39] <superm1> especially if you're on a spindle
[22:39] <xnox> e.g. 32GB swap partition on NVMe drive with 16GB of RAM is a waste of NVMe disk space
[22:39] <superm1> yeah
[22:40] <superm1> the reason i'm bringing up hibernation, is that it becomes extra interesting as machines start to use suspend-to-idle instead of s3 by default
[22:40] <xnox> hence swapfile is limited to 5% of rootfs free disk space, or 1 GB, whatever is largest (tweakable)
[22:40] <superm1> you really do want to start having suspend-to-idle + hibernate on a timer
[22:40] <superm1> like how hybrid-s3 works
[22:41] <xnox> i 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:42] <superm1> suspend to idle is the linux equivalent of "disconnected standby"
[22:43] <superm1> rather than turning everything but RAM off, the CPU goes into a super low power state
[22:43] <superm1> the kernel freezes all tasks
[22:43] <superm1> and the kernel puts all the devices into D3cold
[22:43] <superm1> on new hardware it's as good or better than S3
[22:44] <superm1> once this is merged, it will become more commonly used by default: http://www.spinics.net/lists/linux-acpi/msg70357.html