## Options for PureOS OEM Installation on first boot d-i netcfg/enable boolean false d-i clock-setup/utc-auto boolean true d-i clock-setup/utc boolean true d-i clock-setup/ntp boolean true d-i apt-setup/cdrom/set-first boolean true d-i apt-setup/cdrom/set-double boolean false d-i apt-setup/cdrom/set-next boolean false d-i apt-setup/cdrom/set-failed boolean false # we won't have an internet connection, so we disable # mirror selection. # A mirror will be set by the late_command preseed at the end d-i apt-setup/use_mirror boolean false d-i mirror/country string manual d-i mirror/http/hostname string repo.puri.sm d-i mirror/http/directory string /pureos d-i mirror/http/proxy string d-i netcfg/get_hostname string librem d-i netcfg/get_hostname seen false d-i pkgsel/install-language-support boolean false d-i pkgsel/update-policy select none d-i partman/default_filesystem string ext4 d-i partman-auto/disk string %TARGET_DISK% d-i partman-lvm/device_remove_lvm boolean true d-i partman-md/device_remove_md boolean true d-i partman-lvm/confirm boolean true d-i partman-lvm/confirm_nooverwrite boolean true d-i partman-auto-lvm/guided_size string max d-i partman-auto/method string crypto d-i partman-auto/choose_recipe select root-pureos d-i partman-auto-lvm/new_vg_name string crypt d-i partman/early_command \ string sed -i.bak 's/-f $id\/skip_erase/-d $id/g' /lib/partman/lib/crypto-base.sh d-i partman-auto/expert_recipe string \ root-pureos :: \ 1000 2000 2100 ext4 \ $primary{ } \ method{ keep } \ use_filesystem{ } filesystem{ ext4 } \ label{ rescue } \ . \ 800 800 800 ext4 \ $primary{ } $bootable{ } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ /boot } \ . \ 2000 2000 2000 linux-swap \ $lvmok{ } lv_name{ swap } \ method{ swap } format{ } \ in_vg { crypt } \ . \ 1000 1000 1000000000 ext4 \ $lvmok{ } lv_name{ root } \ method{ format } format{ } \ use_filesystem{ } filesystem{ ext4 } \ mountpoint{ / } \ in_vg { crypt } \ . d-i partman-basicfilesystems/no_mount_point boolean false d-i partman-partitioning/confirm_write_new_label boolean true d-i partman/choose_partition select finish d-i partman/confirm boolean true d-i partman/confirm_nooverwrite boolean true user-setup-udeb passwd/root-login boolean false user-setup-udeb user-setup/encrypt-home boolean true d-i popularity-contest/participate boolean false d-i hw-detect/load_firmware boolean false d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true d-i grub-installer/choose_bootdev string %TARGET_DISK% d-i finish-install/reboot_in_progress note #grub-pc ucf/changeprompt string install the package maintainer's version d-i preseed/late_command string cp /cdrom/purism/50_custom /target/etc/grub.d/50_custom; \ chmod a+x /target/etc/grub.d/50_custom; \ echo "GRUB_DISABLE_OS_PROBER=true" >> /target/etc/default/grub; \ echo -e "#\n\ndeb https://repo.puri.sm/pureos/ green main" > /target/etc/apt/sources.list; \ in-target update-grub;