Falha ao criar / montar swap durante a instalação automatizada do Debian Jessie usando o arquivo preseed

2

Eu tento criar o instalador Debian Jessie, que será totalmente automatizado. Eu uso para este fim arquivo prensado personalizado. Para testar, eu uso o VirtualBox . Tudo está bem, exceto um erro no estágio de particionamento. Quando o instalador cria uma tabela de partições, ocorre um erro:% The attempt to mount a filesystem with type swap ... at none failed

Estouprocurandoumasoluçãoalternativaparaevitaresseerro.

Meuambiente:

cat/etc/issueDebianGNU/Linux8\n\luname-aLinuxlocalhost3.16.0-4-amd64#1SMPDebian3.16.7-ckt9-3~deb8u1(2015-04-24)x86_64GNU/Linux'

Meupreseed.cfgpersonalizadotemoseguinteconteúdo:

#Localeconfiguration.d-idebian-installer/languagestringend-idebian-installer/countrystringUSd-idebian-installer/localestringen_US.UTF-8#Keyboardconfiguration.d-iconsole-tools/archsselectatd-iconsole-keymaps-at/keymapselectusd-ikeyboard-configuration/xkb-keymapselectus#Networkconfiguration.d-inetcfg/choose_interfaceselectautod-inetcfg/dhcp_failednoted-inetcfg/dhcp_optionsselectDonotconfigurethenetworkatthistimed-inetcfg/use_dhcpbooleantrued-inetcfg/disable_dhcpbooleanfalsed-inetcfg/dhcp_timeoutstring0d-inetcfg/get_hostnamestringlocalhostd-inetcfg/get_domainstring#Mirrorconfiguration.apt-mirror-setupapt-setup/use_mirrorbooleanfalseapt-mirror-setupapt-setup/mirror/errorselectIgnoreapt-mirror-setupapt-setup/no_mirrorbooleantrue#Timeconfiguration.d-iclock-setup/utcbooleantrued-itime/zonestringZulud-iclock-setup/ntpbooleanfalse#Userconfiguration.d-ipasswd/root-passwordpasswordr00td-ipasswd/root-password-againpasswordr00td-ipasswd/make-userbooleantrued-ipasswd/user-fullnamestringlocaluserd-ipasswd/usernamestringlocaluserd-ipasswd/user-passwordpasswordn0nr00td-ipasswd/user-password-againpasswordn0nr00tpopularity-contestpopularity-contest/participatebooleanfalse#Partitionconfiguration.d-ipartman-auto/methodstringregulard-ipartman-auto/diskstring/dev/sdad-ipartman-auto/choose_recipeselecthomed-ipartman-auto/expert_recipestring\localhost::\2048409640960ext4\$primary{}$bootable{}\method{format}format{}\use_filesystem{}filesystem{ext4}\label{root}\mountpoint{/}\.\12825610240ext4\method{format}format{}\label{home}\use_filesystem{}filesystem{ext4}\label{home}\mountpoint{/home}\.\128256100%linux-swap\method{swap}forman{}\.d-ipartman-partitioning/confirm_write_new_label\booleantrued-ipartman/choose_partitionselectfinishd-ipartman/confirmbooleantrued-ipartman/confirm_nooverwritebooleantrue#GRUBconfiguration.d-igrub-installer/only_debianbooleantrued-igrub-installer/with_other_osbooleantrued-igrub-installer/bootdevstringdefault#Finish.d-ifinish-install/reboot_in_progressnote

Nãoéimportante,masparaserexplícito,deve-senotarqueeucrioimagensusando live-build da seguinte maneira:

#!/bin/bash

echo -e "Remove old artefacts ($(date +%H-%M-%S))."
rm -rf installer

echo -e "Prepare for generate new image ($(date +%H-%M-%S))."
mkdir installer && cd installer

echo -e "Configure Live Builder ($(date +%H-%M-%S))."
lb config \
--apt-indices false \
--ignore-system-defaults \
--architectures amd64 \
--linux-flavours "amd64" \
--binary-images iso-hybrid \
--mode debian \
--source false \
--distribution jessie \
--win32-loader false \
--debian-installer true \
--bootloader syslinux \
--memtest none \
--archive-areas "main contrib non-free" \
--debootstrap-options "--variant=minbase"

echo -e "Inject custom content ($(date +%H-%M-%S))."
mkdir -p config/includes.installer
cp -v ../preseed.cfg config/includes.installer

echo -e "Build image ($(date +%H-%M-%S))."
lb build
cd ..

if [ -f installer/live-image-amd64.hybrid.iso ]; then
    echo -e "Create image successfully complite ($(date +%H-%M-%S))."
    echo -e "Have a nice day!"
else
    echo -e "Perhaps something bad is happing ($(date +%H-%M-%S))..."
fi
    
por Gluttton 05.05.2015 / 22:13

1 resposta

1
method{ swap } forman{ }                \

Erro de digitação, forman deve ser format .

Apenas no caso, pesquise swap em um exemplo preseed .

    
por 09.05.2015 / 15:17