debian 설치 프로그램이 initrd.gz의 preseed.cfg를 가리키도록 하려면 어떻게 해야 하나요?

debian 설치 프로그램이 initrd.gz의 preseed.cfg를 가리키도록 하려면 어떻게 해야 하나요?

우선 포스팅이 너무 길어서 죄송합니다.

글쎄요, 저는 데비안 설치를 프로비전하기 위해 데비안 웹사이트의 가이드를 따랐고, 그것을 작성한 다음 그들이 설명하는 대로 preseed.cfg추가했습니다 .initrd.gz

내가 따르는 지침

ISO를 미리 설정하는 스크립트입니다.

#!/bin/bash 

COMMON_PATH=$HOME/test
ISO_NAME=debian11-net
RAW_DEBIAN_ISO=$COMMON_PATH/$ISO_NAME.iso
WORKDIR=$COMMON_PATH/DEBIAN_ISO_WORKDIR
PRESEED_FILE=$COMMON_PATH/preseed.cfg
PRESEED_ISO=$COMMON_PATH/$ISO_NAME-preseeded.iso

function preseed(){
  ##### Scrub workdir
  sudo rm -rf $WORKDIR/*

  #### Mount image
  mkdir -p $WORKDIR/loopdir
  sudo mount -o loop $RAW_DEBIAN_ISO $WORKDIR/loopdir/

  #### Copy extracted/mounted image
  mkdir -p $WORKDIR/isodir
  cp -rT $WORKDIR/loopdir $WORKDIR/isodir

  # delete the temp loop dir
  sudo umount $WORKDIR/loopdir
  sudo rm -rf $WORKDIR/loopdir/

  #### unzip initrd
  sudo chmod +w -R $WORKDIR/isodir/install.amd/
  gunzip $WORKDIR/isodir/install.amd/initrd.gz

  #### add preseed file to initrd
  echo $PRESEED_FILE | cpio -H newc -o -A -F $WORKDIR/isodir/install.amd/initrd

  #### zip back initrd
  gzip $WORKDIR/isodir/install.amd/initrd
  sudo chmod -w -R $WORKDIR/isodir/install.amd/

  #### Fix md5sum
  cd $WORKDIR/isodir 
  sudo chmod +w md5sum.txt
  find -follow -type f ! -name md5sum.txt -print0 | xargs -0 md5sum > md5sum.txt
  sudo chmod -w md5sum.txt
  cd ..

  ##### Create ISO
  sudo chmod +w $WORKDIR/isodir/isolinux/isolinux.bin
  genisoimage -r -J -b isolinux/isolinux.bin -c isolinux/boot.cat \
            -no-emul-boot -boot-load-size 4 -boot-info-table \
            -o $PRESEED_ISO $WORKDIR/isodir/
  sudo chmod -w $WORKDIR/isodir/isolinux/isolinux.bin

  # commented out for checking the output image files
  # sudo rm -rf $WORKDIR/isodir/

}
preseed;

exit 0

실제 프로비저닝 파일입니다.

#_preseed_V1

### Localization
d-i debian-installer/locale string en_US
### Keyboard selection.
d-i keyboard-configuration/xkb-keymap select us
### Network configuration
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string someHostName
d-i netcfg/get_domain string someDomainname
d-i netcfg/wireless_wep string
### Mirror settings
d-i mirror/country string manual
d-i mirror/http/hostname string http.es.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
# Suite to install.
d-i mirror/suite string testing
### Account setup
d-i passwd/root-password-crypted password $2b$10$/YuZPntPhCZfjEi3LNWXZer3W1HYiy25rgtoBged4nf026RNXfGzC
d-i passwd/user-fullname string firstName lastName
d-i passwd/username string myUsername
d-i passwd/user-password-crypted password $2b$10$/ly237ccHCsTATdtVGpP3eRs65Oe7BWdi58G1z.jfEoFw0./TfH1m
d-i passwd/user-default-groups string sudo audio video plugdev netdev
### Clock and time zone setup
d-i clock-setup/utc boolean true
d-i time/zone string America/New_York
d-i clock-setup/ntp boolean true
### Partitioning
# choosing the smallest partition first
d-i partman/early_command \
  string PRIMARYDISK=/dev/$(lsblk -o name sort \
  size --include 8 \
  | head -n 1) \
  debconf-set partman-auto/disk "$PRIMARYDISK";

d-i partman-auto/method string regular
d-i partman-auto/expert_recipe string        \
    boot-root ::                             \
        30000 30000 30000 ext4               \
        \$primary{ } \$bootable{ }           \
        method{ format } format{ }           \
        use_filesystem{ } filesystem{ ext4 } \
        mountpoint{ / } .                    \
                                             \
        219000 220000 220000 ext4            \
        method{ format } format{ }           \
        use_filesystem{ } filesystem{ ext4 } \
        mountpoint{ /home } .                

### Apt setup
d-i apt-setup/cdrom/set-first boolean false
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
### Package selection
tasksel tasksel/first multiselect standard
d-i pkgsel/include string build-essential
popularity-contest popularity-contest/participate boolean true
### Boot loader installation
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean false
### Finishing up the installation
d-i finish-install/reboot_in_progress note

내가 무슨 일이 일어나길 기대하는지

사전 설정을 사용할 수 있어야 합니다.가지고 다닐 수 있는어떤 컴퓨터에서든 ISO를 사용하면 아무 것도 클릭하지 않고도 Debian 설치 프로그램이 preseed.cfg자동으로 운영 체제를 읽고 구성하기 시작합니다.

initrd 메소드를 사용할 수 있다는 것을 읽었습니다.

실제로 무슨 일이 일어났는가

프로비저닝 파일이 없는 것처럼 설치가 계속되었으며 일반 설치 메뉴를 사용하라는 메시지가 표시되었습니다. 일반적인 수동 설치 프로세스.

내가 시도한 것

디버그 방법:auto installation"initrd가 아직 압축된 것 같아서 링크할 수 없습니다." 옵션을 선택했습니다 .

설치 메뉴 제거를 제안하는 또 다른 기사를 찾았습니다. 시도해 보았지만 다른 메뉴 버전으로 돌아가는 것 같습니다.

graphical install클릭하면 자동으로 사전 설정을 찾도록 지시하는 등 특정 하위 메뉴를 수정하는 방법이 있다는 다른 기사가 기억나지 않습니다.

또한 가상 머신이 이 작업을 자동으로 수행하도록 할 수 있다는 내용도 읽었습니다.

그러나 그것은 내가 정말로 원하는 것이 아닙니다.

관련 정보