Eu tenho uma imagem ISO que está sendo inicializada a partir de uma partição no meu SSD que foi criada pelo UNetbootin e inicia automaticamente a instalação. Este é o mesmo SSD que estou tentando instalar no qual eu sei que é estranho. Ele executa meu ubiquity/early_command
& partman/early_command
como esperado, então eu sei que está pegando o arquivo preseed corretamente.
Se eu Ctrl-Alt-f2
chegar a uma janela de console, tudo que eu obtenho é uma tela de texto em branco com o cursor no canto superior esquerdo.
Na janela de instalação, recebo o erro "Ubuntu partman: Nenhum volume físico correspondente encontrado".
Verificando a configuração da instalação
Eu entendo que normalmente ninguém usaria a mesma unidade para a mídia de instalação e o destino, mas essa não é uma situação normal. Temos vários milhares dessas unidades no campo com o Windows 7 já instalado e em execução. Estamos tentando criar um processo que possa substituir a instalação existente do Windows pelo Linux e fazer isso de uma maneira que não requeira interação ou intervenção do usuário, e nós realmente não queremos que eles sejam devolvidos fábrica para nova imagem. Eu já sou capaz de criar a nova partição para o ISO, copiar os arquivos ISO para a nova partição, depois reiniciar no instalador do Linux e remover as partições NTFS existentes usando o partman/early_command
com um simples script bash.
Se eu não conseguir que o partman crie as partições de que preciso, seria possível criá-las sozinho no meu script bash usando fdisk
ou parted
?
Minha linha de comando do grub é: kernel /casper/vmlinuz.efi file=/cdrom/preseed/my.seed boot=casper auto=true priority=critical BOOT_DEBUG=3 log_host=172.25.7.148 log_port=514 automatic-ubiquity noprompt quiet splash ---
aqui está o meu arquivo de sementes:
### Localization --- Preseeding only locale sets language, country and locale.
d-i debian-installer/locale string en_US
ubiquity languagechooser/language-name select English
ubiquity countrychooser/shortlist select US
ubiquity time/zone select America/Chicago
ubiquity debian-installer/locale select en_US.UTF-8
ubiquity localechooser/supported-locales multiselect en_US.UTF-8
ubiquity console-setup/ask_detect boolean false
ubiquity console-setup/layoutcode string us
ubiquity console-setup/modelcode string SKIP
ubiquity keyboard-configuration/variant select English (US)
ubiquity keyboard-configuration/layout select English (US)
ubiquity keyboard-configuration/model select Generic 105-key (Intl) PC
ubiquity console-keymaps-at/keymap select us
ubiquity keyboard-configuration/xkb-keymap select us
ubiquity ubiquity/reboot boolean true
ubiquity ubiquity/early_command string /cdrom/presee/early-install.sh
console-setup console-setup/layoutcode string us
console-setup console-setup/layout select U.S. English
console-setup console-setup/variantcode select U.S. English
ubiquity ubiquity/success_command string [ -x /cdrom/preseed/finish-install.sh ] && /cdrom/preseed/finish-install.sh
ubiquity ubiquity/failure_command string [ -x /cdrom/preseed/failed-install.sh ] && /cdrom/preseed/failed-install.sh
# Install the Ubuntu desktop.
tasksel tasksel/first multiselect ubuntu-desktop
# Verbose output and no boot splash screen
d-i debian-installer/quiet boolean false
d-i debian-installer/splash boolean false
### Network configuration #########################################################################
# netcfg will choose an interface that has link if possible. This makes it skip displaying a list if there is more than one interface.
d-i netcfg/choose_interface select auto
# If you have a slow dhcp server and the installer times out waiting for it, this might be useful.
d-i netcfg/dhcp_timeout string 60
d-i netcfg/dhcpv6_timeout string 60
# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname string pc-name
d-i netcfg/get_domain string unassigned-domain
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
# The wacky dhcp hostname that some ISPs use as a password of sorts.
#d-i netcfg/dhcp_hostname string radish
# If non-free firmware is needed for the network or other hardware, you can
# configure the installer to always try to load it, without prompting. Or
# change to false to disable asking.
#d-i hw-detect/load_firmware boolean true
### User sccounts #################################################################################
# Root password, either in clear text
d-i passwd/root-password password Chang3M3
d-i passwd/root-password-again password Chang3M3
# To create a normal user account.
d-i passwd/user-fullname string Maestro Player
d-i passwd/username string someusername
# Normal user's password, either in clear text
d-i passwd/user-password password Chang3M3
d-i passwd/user-password-again password Chang3M3
### Clocks / Time Zone ############################################################################
# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true
# You may set this to any valid setting for $TZ; see the contents of
# /usr/share/zoneinfo/ for valid values.
d-i time/zone string US/Central
# Controls whether to use NTP to set the clock during the install
d-i clock-setup/ntp boolean true
### Partitioning ##################################################################################
# remove existing NTFS partitions.
d-i partman/early_command string /bin/bash /cdrom/preseed/removeNtfs.sh
ubiquity partman-auto/method string regular
#ubiquity partman/alignment select optimal
#ubiquity partman-auto/disk string /dev/sda
ubiquity partman-lvm/device_remove_lvm boolean true
ubiquity partman-lvm/confirm string boolean true
ubiquity partman-md/device_remove_md boolean true
# You can choose one of the three predefined partitioning recipes:
# - atomic: all files in one partition
# - home: separate /home partition
# - multi: separate /home, /usr, /var, and /tmp partitions
d-i partman-auto/choose_recipe select atomic
ubiquity partman/confirm_write_new_label string boolean true
ubiquity partman/choose_partition select finish
ubiquity partman/confirm string boolean true
ubiquity partman/confirm_nooverwrite string boolean true
d-i partman-partitioning/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
# Set to true if you want to encrypt the first user's home directory.
d-i user-setup/encrypt-home boolean false
d-i partman-auto/expert_recipe string boot-root :: \
45000 90000 500000 ext4 method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ / } . \
50% 4096 80% linux-swap method{ swap } format{ } .
#d-i partman-auto/choose_recipe select boot-root
ubiquity partman-auto/choose_recipe select boot-root
### Package selection ##################################################################################
tasksel tasksel/first multiselect ubuntu-desktop
d-i pkgsel/update-policy select none
# By default, the system's locate database will be updated after the
# installer has finished installing most packages. This may take a while, so
# if you don't want it, you can set this to "false" to turn it off.
#d-i pkgsel/updatedb boolean true
d-i apt-setup/multiarch string i386
# This is fairly safe to set, it makes grub install automatically to the MBR
# if no other operating system is detected on the machine.
d-i grub-installer/only_debian boolean true
# This one makes grub-installer install to the MBR if it also finds some other
# OS, which is less safe as it might not be able to boot that other OS.
d-i grub-installer/with_other_os boolean true
# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note
Atualização: agora posso acessar o syslog enquanto o instalador está em execução.
Aqui está o que eu acredito ser a seção relevante do log. A mensagem "Não há parções NTFS encontradas cara!" é do meu script partman / early_command que procura e remove quaisquer partições NTFS existentes, por isso sei que está pelo menos em execução.
Também atualizei o arquivo de pré-configuração acima para corresponder ao que estou trabalhando atualmente.
%pr_e%