微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Ubuntu <2TB sdb preseed示例

Ubuntu <2TB sdb preseed示例:

注:借助sh脚本对sdb硬盘分区进行格式化

cat sdb.sh(脚本内容):

#!/bin/bash echo ';' | sfdisk /dev/sdb mkfs.ext4 /dev/sdb1 echo "/dev/sdb1 /home ext4 defaults 0 0" >> /etc/fstab

cat ubt14043_sdb.seed(文件内容

d-i live-installer/net-image string http://10.0.0.2/cobbler/links/UBT14043-x86_64/install/filesystem.squashfs d-i debian-installer/locale string en_US.UTF-8 d-i debian-installer/splash boolean false d-i console-setup/ask_detect boolean false d-i console-setup/layoutcode string us d-i console-setup/variantcode string d-i netcfg/choose_interface select auto d-i clock-setup/utc boolean true d-i partman-auto/method string regular d-i partman-auto/disk string /dev/sda d-i partman-auto/expert_recipe select boot-root :: 50000 80 100000 ext4 $bootable{ } $primary{ } method{ format } format{ } device{ /dev/sda } use_filesystem{ } filesystem{ ext4 } mountpoint{ / } . 102 60 1000 linux-swap $primary{ } device{ /dev/sda } method{ swap } format{ } . d-i partman-auto/choose_recipe boot-root d-i partman/confirm_write_new_label boolean true d-i partman/choose_partition select Finish partitioning and write changes to disk d-i partman/confirm boolean true d-i partman/confirm_nooverwrite boolean true d-i partman/default_filesystem string ext4 d-i clock-setup/utc boolean true d-i clock-setup/ntp boolean true d-i clock-setup/ntp-server string 10.0.0.3 d-i base-installer/kernel/image string linux-server d-i passwd/root-login boolean false d-i passwd/make-user boolean true d-i passwd/user-fullname string super d-i passwd/username string super d-i passwd/user-password password xxxxxx d-i passwd/user-password-again password xxxxx d-i user-setup/allow-password-weak boolean true d-i user-setup/encrypt-home boolean false d-i passwd/user-default-groups string sudo d-i mirror/country string manual d-i mirror/protocol string http d-i mirror/http/hostname string 10.0.0.2 d-i mirror/http/directory string /cobbler/ks_mirror/UBT14043-x86_64 d-i apt-setup/services-select multiselect security d-i apt-setup/security_host string 10.0.0.2 d-i apt-setup/security_path string /cobbler/ks_mirror/UBT14043-x86_64 d-i debian-installer/allow_unauthenticated string false d-i pkgsel/upgrade select none d-i pkgsel/language-packs multiselect d-i pkgsel/update-policy select none d-i pkgsel/updatedb boolean true d-i grub-installer/skip boolean false d-i lilo-installer/skip boolean false d-i grub-installer/only_debian boolean true d-i grub-installer/with_other_os boolean true d-i finish-install/keep-consoles boolean false d-i finish-install/reboot_in_progress note d-i cdrom-detect/eject boolean true d-i debian-installer/exit/halt boolean false d-i debian-installer/exit/poweroff boolean false d-i pkgsel/include string openssh-server d-i preseed/late_command string in-target wget -O /root/sdb.sh http://10.0.0.2/cobbler/ks_mirror/UBT14043-x86_64/sh/sdb.sh;in-target sh /root/sdb.sh

原文地址:https://www.jb51.cc/ubuntu/350222.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐