Fixing post-cmd

Signed-off-by: TuDatTr <tuan-dat.tran@tudattr.dev>
master
TuDatTr 2023-11-09 23:19:37 +01:00
parent bce0af6350
commit 1800ef529b
1 changed files with 4 additions and 23 deletions

View File

@ -28,7 +28,7 @@ d-i netcfg/get_domain string seyshiro.de
# If you select ftp, the mirror/country string does not need to be set.
# Default value for the mirror protocol: http.
d-i mirror/country string manual
d-i mirror/http/hostname string http.de.debian.org
d-i mirror/http/hostname string ftp.de.debian.org
d-i mirror/http/directory string /debian
#d-i mirror/http/proxy string
@ -135,38 +135,19 @@ d-i grub-installer/with_other_os boolean true
# not be determined safely in general, so this needs to be specified:
#d-i grub-installer/bootdev string /dev/sda
# To install to the primary device (assuming it is not a USB stick):
#d-i grub-installer/bootdev string default
# Alternatively, if you want to install to a location other than the UEFI
# parition/boot record, uncomment and edit these lines:
#d-i grub-installer/only_debian boolean false
#d-i grub-installer/with_other_os boolean false
#d-i grub-installer/bootdev string (hd0,1)
# To install grub to multiple disks:
#d-i grub-installer/bootdev string (hd0,1) (hd1,1) (hd2,1)
# Use the following option to add additional boot parameters for the
# installed system (if supported by the bootloader installer).
#d-i debian-installer/add-kernel-opts string nousb
d-i grub-installer/bootdev string default
### Finishing up the installation
# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note
# This is how to make the installer shutdown when finished, but not
# reboot into the installed system.
d-i debian-installer/exit/halt boolean true
# This will power off the machine instead of just halting it.
d-i debian-installer/exit/poweroff boolean true
#### Advanced options
### Running custom commands during the installation
d-i preseed/late_command string \
in-target mkdir -p /home/user/.ssh/; \
in-target echo "sh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKqc9fnzfCz8fQDFzla+D8PBhvaMmFu2aF+TYkkZRxl9 tuan@genesis-2022-01-20" > /home/user/.ssh/authorized_keys; \
mkdir -p /target/home/user/.ssh/; \
echo "sh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKqc9fnzfCz8fQDFzla+D8PBhvaMmFu2aF+TYkkZRxl9 tuan@genesis-2022-01-20" > /target/home/user/.ssh/authorized_keys; \
in-target chown -R user:user /home/user/.ssh/; \
in-target chmod 700 /home/user/.ssh/; \
in-target chmod 600 /home/user/.ssh/authorized_keys