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