博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Ubuntu <2TB sdb preseed示例
阅读量:7077 次
发布时间:2019-06-28

本文共 2854 字,大约阅读时间需要 9 分钟。

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 

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  sh /root/sdb.sh

本文转自linux博客51CTO博客,原文链接http://blog.51cto.com/yangzhiming/2054511如需转载请自行联系原作者

yangzhimingg

你可能感兴趣的文章
如何看待开发人员转型做产品经理?
查看>>
《智能数据时代:企业大数据战略与实战》一1.2 大数据如何发掘价值
查看>>
Zookeeper的安装部署,zookeeper参数配置说明,集群搭建,查看集群状态
查看>>
《Java多线程编程核心技术》——2.1节synchronized同步方法
查看>>
《Adobe Illustrator CS6中文版经典教程(彩色版)》—第1课1.6节使用面板
查看>>
《深入解析IPv6(第3版)》——2.8 使用Windows PowerShell来查看IPv6配置信息
查看>>
阿里巴巴企业诚信体系 .xin域名解读(阿里之声)
查看>>
利用物联网发动 DDoS 攻击的恶意程序源代码公开
查看>>
《基于ArcGIS的Python编程秘笈(第2版)》——1.2 ArcGIS Python窗口的使用
查看>>
《策略驱动型数据中心——ACI技术详解》一1.3 数据中心设计
查看>>
Raspberry Pi 树莓派获得 OpenGL 支持
查看>>
《AutoCAD 2016中文版室内装潢设计从入门到精通》——1.2 室内设计制图
查看>>
2017GAITC丨朱小燕:人机对话能直接能减少90%人工,极大提升效率
查看>>
《Spring Boot官方指南》翻译邀请
查看>>
在 CentOS 和 RHEL 上安装 Puppet 服务器和客户端
查看>>
《团队软件过程(修订版)》—第1章1.7节小结
查看>>
混合云态势感知安全解决方案
查看>>
《动手搭建智能家居系统》——2.2 传感器和执行器
查看>>
怎么学好php
查看>>
《Raspberry Pi用户指南》——1.2 Windows vs. Linux
查看>>