瀏覽代碼

07-河北承德定制

杨振 4 年之前
父節點
當前提交
8be5141f53
共有 5 個文件被更改,包括 129 次插入9 次删除
  1. 40 0
      07-河北承德定制/auto.cfg
  2. 3 3
      liaoning/liaoning.cfg
  3. 79 0
      pressed/ubuntu.seed
  4. 7 6
      rebuild-iso.sh
  5. 0 0
      ubiquity/kylin.cfg

+ 40 - 0
07-河北承德定制/auto.cfg

@@ -0,0 +1,40 @@
+# locale
+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
+
+## whether use data or backup
+
+## partman
+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 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/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
+
+## user
+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
+
+## factory mode
+
+## ubiquity
+ubiquity ubiquity/summary note
+ubiquity ubiquity/reboot boolean true

+ 3 - 3
ubiquity/liaoning.cfg → liaoning/liaoning.cfg

@@ -7,9 +7,9 @@
 #time zone
 # d-i time/zone string Asia/Shanghai
 
-## whether use data or backup 
+## whether use data or backup
 
-## partman 
+## partman
 # 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`)"
 
@@ -35,6 +35,6 @@ d-i netcfg/get_hostname		string lnsjcy
 
 ## factory mode
 
-## ubiquity 
+## ubiquity
 # ubiquity ubiquity/summary note
 # ubiquity ubiquity/reboot boolean true

+ 79 - 0
pressed/ubuntu.seed

@@ -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

+ 7 - 6
rebuild-iso.sh

@@ -110,7 +110,8 @@ while true; do
         shift
         ;;
     --mkiso)
-        timestamp=$(date '+%Y-%m-%d_%H-%M-%S')
+        # timestamp=$(date '+%Y-%m-%d_%H-%M-%S')
+        timestamp=$(date '+%Y-%m-%d')
         NEW_ISO_FILE="new-${timestamp}.iso"
 
         echo -e "\n---> 制作 ${NEW_ISO_FILE}"
@@ -120,11 +121,11 @@ while true; do
         find -type f -print0 | xargs -0 md5sum | grep -v isolinux/boot.cat | tee md5sum.txt
         mkisofs -D -r -V "${NEW_ISO_FILE%.*}" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ../"${NEW_ISO_FILE}" .
         cd ..
-        ln -sf "${NEW_ISO_FILE}" new.iso
+        # ln -sf "${NEW_ISO_FILE}" new.iso
         shift
         ;;
     --mkiso-skip)
-        timestamp=$(date '+%Y-%m-%d_%H-%M-%S')
+        timestamp=$(date '+%Y-%m-%d')
         NEW_ISO_FILE="new-${timestamp}.iso"
 
         echo -e "\n---> 制作 ${NEW_ISO_FILE},不重新计算 filesystem.size"
@@ -133,11 +134,11 @@ while true; do
         find -type f -print0 | xargs -0 md5sum | grep -v isolinux/boot.cat | tee md5sum.txt
         mkisofs -D -r -V "${NEW_ISO_FILE%.*}" -cache-inodes -J -l -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -o ../"${NEW_ISO_FILE}" .
         cd ..
-        ln -sf "${NEW_ISO_FILE}" new.iso
+        # ln -sf "${NEW_ISO_FILE}" new.iso
         shift
         ;;
     --mkiso-arm64)
-        timestamp=$(date '+%Y-%m-%d_%H-%M-%S')
+        timestamp=$(date '+%Y-%m-%d')
         NEW_ISO_FILE="arm64-${timestamp}.iso"
 
         echo -e "\n---> 制作 ${NEW_ISO_FILE}"
@@ -148,7 +149,7 @@ while true; do
         mkisofs -J -r -V "${NEW_ISO_FILE%.*}" -eltorito-alt-boot -e boot/grub/efi.img -no-emul-boot -o ../"${NEW_ISO_FILE}" .
         # I: -input-charset not specified, using utf-8 (detected in locale settings)
         cd ..
-        ln -sf "${NEW_ISO_FILE}" new.iso
+        # ln -sf "${NEW_ISO_FILE}" new.iso
         shift
         ;;
     --)

+ 0 - 0
ubiquity/kylin.seed → ubiquity/kylin.cfg