本文共 2663 字,大约阅读时间需要 8 分钟。
刀片(sda)Ubuntu preseed配置文件示例:
d-i live-installer/net-image string
d-i debian-installer/locale string en_US.UTF-8d-i debian-installer/splash boolean falsed-i console-setup/ask_detect boolean falsed-i console-setup/layoutcode string usd-i console-setup/variantcode string d-i netcfg/choose_interface select autod-i clock-setup/utc boolean trued-i partman-auto/disk string /dev/sdad-i partman-auto/method string regulard-i partman-auto/expert_recipe select \boot-root :: \50000 80 50000 ext4 \$bootable{ } \$primary{ } \method{ format } format{ } \use_filesystem{ } filesystem{ ext4 } \mountpoint{ / } \. \20000 80 20000 linux-swap \$primary{ } \method{ swap } format{ } \. \50000 100% 500000 ext4 \$primary{ } \method{ format } format{ } \use_filesystem{ } filesystem{ ext4 } \mountpoint{ /home } \. d-i partman-auto/choose_recipe boot-rootd-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select Finish partitioning and write changes to diskd-i partman/confirm boolean trued-i partman/confirm_nooverwrite boolean trued-i partman/default_filesystem string ext4d-i clock-setup/utc boolean trued-i clock-setup/ntp boolean trued-i clock-setup/ntp-server string 10.0.0.3d-i base-installer/kernel/image string linux-serverd-i passwd/root-login boolean falsed-i passwd/make-user boolean trued-i passwd/user-fullname string superd-i passwd/username string superd-i passwd/user-password password xxxxxxd-i passwd/user-password-again password xxxxxd-i user-setup/allow-password-weak boolean trued-i user-setup/encrypt-home boolean falsed-i passwd/user-default-groups string sudod-i mirror/country string manuald-i mirror/protocol string httpd-i mirror/http/hostname string 10.0.0.2d-i mirror/http/directory string /cobbler/ks_mirror/ubuntuserver14043-x86_64d-i apt-setup/services-select multiselect securityd-i apt-setup/security_host string 10.0.0.2d-i apt-setup/security_path string /cobbler/ks_mirror/ubuntuserver14043-x86_64d-i debian-installer/allow_unauthenticated string falsed-i pkgsel/upgrade select noned-i pkgsel/language-packs multiselect d-i pkgsel/update-policy select noned-i pkgsel/updatedb boolean trued-i grub-installer/skip boolean falsed-i lilo-installer/skip boolean falsed-i grub-installer/only_debian boolean trued-i grub-installer/with_other_os boolean trued-i finish-install/keep-consoles boolean falsed-i finish-install/reboot_in_progress note d-i cdrom-detect/eject boolean trued-i debian-installer/exit/halt boolean falsed-i debian-installer/exit/poweroff boolean falsed-i pkgsel/include string openssh-server转载于:https://blog.51cto.com/yangzhiming/2052596