Страница 1 из 1

Не срабатывает файл preseed.

Добавлено: 18 окт 2019, 07:16
zulus
Добрый день. Linuxmint 19.2 64x Cinnamon. Делаю флешку с автоматической установкой, должна работать на системах и с UEFI и с BIOS. Загрузка для bios работает, preseed-файл из папки preseed подхватывается, установка идёт автоматом. Для UEFI не выходит. Что пробовал: упаковал в initrd.lz preseed-файл (делал так для debian, получилось) - нет результата; прописал в grub.conf путь к preseed-файлу - нет результата. Каждый раз загружаюсь на машине с UEFI, вижу меню GRUB, по таймеру (прописан grub.conf) запускается установка, но грузится live-система, хотя при загрузке вижу "Loading preseed ... done" и после загрузки в логах ошибок вроде нет. Кто нибудь сталкивался с таким? Спасибо!

Не срабатывает файл preseed.

Добавлено: 21 окт 2019, 14:15
zulus
Сам спросил - сам отвечаю:
сработало, когда файл grub.cfg сделал таким:

Код: Выделить всё

if loadfont /boot/grub/font.pf2 ; then
	set gfxmode=auto
    set timeout=3		
    insmod efi_gop
	insmod efi_uga
	insmod gfxterm
	terminal_output gfxterm
fi

set menu_color_normal=white/black
set menu_color_highlight=black/light-gray

menuentry "Linux Mint 19.2 custom" {
	set gfxpayload=keep
	linux	/casper/vmlinuz  file=/cdrom/preseed/linuxmint.seed automatic-ubiquity console-setup/ask_detect=false boot=casper priority=critical iso-scan/filename=${iso_path} auto=true priority=critical ubiquity/reboot=true quiet splash noprompt noshell --
	initrd	/casper/initrd.lz
На всякий случай preseed-файл, который работает:

Код: Выделить всё

### Unattended Installation
#### Contents of the preconfiguration file
# Localization
d-i debian-installer/locale string ru_RU
d-i time/zone string Asia/Krasnoyarsk
d-i console-setup/layoutcode string ru

# Keyboard selection.
# Disable automatic (interactive) keymap detection.
d-i console-setup/ask_detect boolean false
d-i keyboard-configuration/layoutcode string ru


# Partitioning
d-i partman-auto/disk string /dev/sda
d-i partman-auto/method string regular
partman-auto partman-auto/init_automatically_partition select Guided - use entire disk
partman-auto partman-auto/automatically_partition select
d-i partman-auto/purge_lvm_from_device 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


# Account setup
# A person installing would normally put in their fullname (obviously).
# but since this will be installed on multiple machines, 
# it'll say username so that on login it will show username then the actual username 
# I hope that's not confusing. If it looks bad for any reason then change the fullname.
d-i passwd/user-fullname string username
d-i passwd/username string user
d-i passwd/user-password password 1
d-i passwd/user-password-again password 1
d-i user-setup/allow-password-weak boolean true
d-i netcfg/get_hostname string mint-64bit
d-i passwd/auto-login boolean false

# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true

# I tried adding commands in the place of 'string' (2 lines below) with no luck.
# if you want to start commands after the installation
ubiquity ubiquity/success_command string 
ubiquity ubiquity/success_command string mkdir /target/install/; cp -R /cdrom/extra/* /target/install/; chroot /target chmod +x /install/postinstall.sh; chroot /target bash /install/postinstall.sh

ubiquity ubiquity/summary note
ubiquity ubiquity/reboot boolean true