|
@@ -0,0 +1,79 @@
|
|
|
+# Enable extras.ubuntu.com.
|
|
|
+d-i apt-setup/extras boolean true
|
|
|
+# Install the Ubuntu desktop.
|
|
|
+tasksel tasksel/first multiselect ubuntu-desktop
|
|
|
+# On live DVDs, don't spend huge amounts of time removing substantial
|
|
|
+# application packages pulled in by language packs. Given that we clearly
|
|
|
+# have the space to include them on the DVD, they're useful and we might as
|
|
|
+# well keep them installed.
|
|
|
+ubiquity ubiquity/keep-installed string icedtea6-plugin openoffice.org
|
|
|
+
|
|
|
+d-i debian-installer/locale string zh_CN.UTF-8
|
|
|
+d-i console-setup/ask_detect boolean false
|
|
|
+d-i console-setup/layoutcode string cn
|
|
|
+d-i keyboard-configuration/layoutcode string cn
|
|
|
+
|
|
|
+# time zone
|
|
|
+d-i time/zone string Asia/Shanghai
|
|
|
+
|
|
|
+d-i partman/early_command \
|
|
|
+ string debconf-set partman-auto/disk "$(echo /dev/`if [ -b /dev/nvme0n1 ];then echo nvme0n1;elif [ -b /dev/sda ];then echo sda; fi`)"
|
|
|
+
|
|
|
+d-i partman-auto/choose_recipe select yz_custom
|
|
|
+# d-i partman-auto/choose-recipe select atomic
|
|
|
+d-i partman-auto/method string regular
|
|
|
+d-i partman-lvm/device_remove_lvm boolean true
|
|
|
+d-i partman-md/device_remove_md boolean true
|
|
|
+
|
|
|
+d-i partman-auto/expert_recipe string \
|
|
|
+ yz_custom :: \
|
|
|
+ 512 10 1024 fat32 \
|
|
|
+ $iflabel{ gpt } \
|
|
|
+ $reusemethod{ } \
|
|
|
+ method{ efi } \
|
|
|
+ format{ } . \
|
|
|
+ 1024 20 2048 ext4 \
|
|
|
+ $primary{ } $bootable{ } \
|
|
|
+ method{ format } format{ } \
|
|
|
+ use_filesystem{ } filesystem{ ext4 } \
|
|
|
+ mountpoint{ /boot } . \
|
|
|
+ 9000 30 20000 ext4 \
|
|
|
+ method{ format } format{ } \
|
|
|
+ use_filesystem{ } filesystem{ ext4 } \
|
|
|
+ mountpoint{ /opt } . \
|
|
|
+ 200% 40 300% linux-swap \
|
|
|
+ method{ swap } format{ } . \
|
|
|
+ 10000 50 50000 ext4 \
|
|
|
+ method{ format } format{ } \
|
|
|
+ use_filesystem{ } filesystem{ ext4 } \
|
|
|
+ mountpoint{ /data1 } . \
|
|
|
+ 10000 50 50000 ext4 \
|
|
|
+ method{ format } format{ } \
|
|
|
+ use_filesystem{ } filesystem{ ext4 } \
|
|
|
+ mountpoint{ /data2 } . \
|
|
|
+ 50000 60 -1 ext4 \
|
|
|
+ method{ format } format{ } \
|
|
|
+ use_filesystem{ } filesystem{ ext4 } \
|
|
|
+ mountpoint{ / } .
|
|
|
+
|
|
|
+d-i partman/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
|
|
|
+d-i partman/default_filesystem string ext4
|
|
|
+d-i partman/mount_style select uuid
|
|
|
+
|
|
|
+d-i passwd/user-fullname string user
|
|
|
+d-i passwd/username string user
|
|
|
+d-i passwd/user-uid string 1000
|
|
|
+d-i passwd/auto-login boolean true
|
|
|
+d-i passwd/user-password password qwe123
|
|
|
+d-i passwd/user-password-again password qwe123
|
|
|
+d-i netcfg/get_hostname string kylin
|
|
|
+
|
|
|
+d-i partman/late_command \
|
|
|
+ string echo 'fdafsa' >/tmp/aaa.log
|
|
|
+
|
|
|
+## ubiquity
|
|
|
+# ubiquity ubiquity/summary note
|
|
|
+# ubiquity ubiquity/reboot boolean true
|