当前位置: 首页 > news >正文

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

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

yangzhimingg


相关文章:

  • python 基础 9.2 mysql 事务
  • RAC同单实例物理备库的switchover
  • SmoothWall的小企业应用
  • AWS简介与历史
  • FOSCommentBundle功能包:设置Doctrine ORM映射(投票)
  • 一个16年毕业生所经历的php面试
  • svn1.5+TortoiseSVN1.5+VisualSVN1.5
  • sed常用
  • sublime配置文件
  • 性能测试之手机号码python生成方式
  • centos7 安装 keepalived
  • nginx访问http80端口跳转https443端口
  • 10.6 监控io性能;10.7 free;10.8 ps;10.9 查看网络状态;10.10 抓包
  • shell $$ 的详解
  • Struts1.x 跨站脚本(XSS)漏洞的解决
  • hexo+github搭建个人博客
  • 【Redis学习笔记】2018-06-28 redis命令源码学习1
  • codis proxy处理流程
  • download使用浅析
  • Dubbo 整合 Pinpoint 做分布式服务请求跟踪
  • HashMap ConcurrentHashMap
  • IDEA常用插件整理
  • Javascript基础之Array数组API
  • JAVA并发编程--1.基础概念
  • npx命令介绍
  • Python十分钟制作属于你自己的个性logo
  • Storybook 5.0正式发布:有史以来变化最大的版本\n
  • ucore操作系统实验笔记 - 重新理解中断
  • Vim Clutch | 面向脚踏板编程……
  • 初识MongoDB分片
  • 道格拉斯-普克 抽稀算法 附javascript实现
  • 高度不固定时垂直居中
  • 给github项目添加CI badge
  • 利用阿里云 OSS 搭建私有 Docker 仓库
  • 手写双向链表LinkedList的几个常用功能
  • 微信端页面使用-webkit-box和绝对定位时,元素上移的问题
  • 我与Jetbrains的这些年
  • 中国人寿如何基于容器搭建金融PaaS云平台
  • No resource identifier found for attribute,RxJava之zip操作符
  • mysql面试题分组并合并列
  • 树莓派用上kodexplorer也能玩成私有网盘
  • ​LeetCode解法汇总2670. 找出不同元素数目差数组
  • ​力扣解法汇总946-验证栈序列
  • ​你们这样子,耽误我的工作进度怎么办?
  • (003)SlickEdit Unity的补全
  • (Redis使用系列) Springboot 使用Redis+Session实现Session共享 ,简单的单点登录 五
  • (附源码)python旅游推荐系统 毕业设计 250623
  • (附源码)springboot宠物医疗服务网站 毕业设计688413
  • (附源码)ssm失物招领系统 毕业设计 182317
  • (介绍与使用)物联网NodeMCUESP8266(ESP-12F)连接新版onenet mqtt协议实现上传数据(温湿度)和下发指令(控制LED灯)
  • (六)Hibernate的二级缓存
  • (六)什么是Vite——热更新时vite、webpack做了什么
  • (免费领源码)Python#MySQL图书馆管理系统071718-计算机毕业设计项目选题推荐
  • (亲测)设​置​m​y​e​c​l​i​p​s​e​打​开​默​认​工​作​空​间...
  • (十一)c52学习之旅-动态数码管