Page tree
Skip to end of metadata
Go to start of metadata
# REF : https://www.debian.org/releases/stretch/example-preseed.txt
# Enable extras.ubuntu.com.
d-i apt-setup/extras boolean true

## early_command
d-i preseed/early_command string umount -l -r -f /isodevice

## Korean enviroment for HamoniKR
d-i debian-installer/locale string en_US
d-i debian-installer/language string en
d-i debian-installer/country string EN
d-i debian-installer/locale string en_US.UTF-8
d-i keyboard-configuration/layoutcode string en
d-i keyboard-configuration/variantcode string kr104
d-i time/zone string Asia/Seoul
# Wait for two seconds in grub
# d-i grub-installer/timeout string 5

## Including openssh in the installation.And choosing on how and when to upgrade.
# d-i pkgsel/include string openssh-server gparted build-essential
# d-i pkgsel/update-policy select unattended-upgrades 
# d-i pkgsel/upgrade select full-upgrade

# network
d-i netcfg/enable boolean false
#d-i netcfg/choose_interface select auto
#d-i netcfg/get_hostname string unassigned-hostname
#d-i netcfg/get_domain string unassigned-domain
d-i netcfg/hostname string hamonikr

# Individual additional packages to install
d-i pkgsel/include string htop figlet openssh-server build-essential

## add hamonikr user
d-i passwd/user-fullname string HamoniKR User
d-i passwd/username string hamonikr
# $ printf "mypassword" | mkpasswd -s -m sha-512
d-i passwd/user-password-crypted password $6$yIIPsLhXC2xXwaPE$41VVINH4iA8I/Bw8KJTxASLj6PDoJeU0nRAGw7IUW4n3OfsLLnaympmNuvXGlsbUD3xGB1SPTSMq5TpuNqv0F1
d-i passwd/user-uid string 1000
d-i passwd/user-default-groups string adm admin audio cdrom video sudo vboxsf wireshark docker sambashare
# d-i user-setup/encrypt-home boolean false
d-i user-setup/allow-password-weak boolean true
d-i passwd/auto-login boolean true

### Simple GPT configuration 
d-i partman/early_command string debconf-set partman-auto/disk "$(list-devices disk | head -n1)"
#d-i partman-auto/disk string /dev/sda
d-i partman/alignment string cylinder
d-i partman/confirm_write_new_label boolean true
d-i partman-basicfilesystems/choose_label string gpt
d-i partman-basicfilesystems/default_label string gpt
d-i partman-basicfilesystems/no_swap boolean true
d-i partman-partitioning/choose_label string gpt
d-i partman-partitioning/default_label string gpt
d-i partman/choose_label string gpt
d-i partman/default_label string gpt

d-i partman-auto/method string regular

# You can choose one of the three predefined partitioning recipes:
# - atomic: all files in one partition
# - home: separate /home partition
# - multi: separate /home, /var, and /tmp partitions
d-i partman-auto/choose_recipe select atomic

# CUSTOM Partition
#d-i partman-auto/choose_recipe select gpt-boot-root
d-i partman-auto/expert_recipe string \
gpt-boot-root :: \
100 100 100 fat32 \
$primary{ } \
method{ efi } format{ } . \
10000 10000 10000 ext4 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ /rescue } . \
300 300 -1 ext4 \
$primary{ } $bootable{ } \
method{ format } format{ } \
use_filesystem{ } filesystem{ ext4 } \
mountpoint{ / } .

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

# late_command
d-i preseed/late_command string sudo gnome-terminal -- /bin/sh -c '/cdrom/preseed/postinst.sh && cdrom/preseed/rescue/bin/hamonikr_rescue_install.sh'

# Same as above, but for ubiquity.
d-i ubiquity/success_command string sudo gnome-terminal -- /bin/sh -c '/cdrom/preseed/postinst.sh && /cdrom/preseed/rescue/bin/hamonikr_rescue_install.sh'


  • No labels