*Partly solved* Strange behaviour using preseed install

Help with issues regarding installation of Debian

*Partly solved* Strange behaviour using preseed install

Postby phloks » 2017-12-10 14:27

I withdraw this question.
It turned out that there still was a typo somewhere in the preseed file that caused the strange partman behaviour.
Now, partitioning and everything else works as expected, except for the fixed ip address part.
It still looks like this section is ignored completely.

Will look into this a little further, and if necessary, I'll post a new question.

Sorry for the trouble !

=====================================================


Tried several preseed configurations to install a Debian 9 machine, but my automated installation always fails with the menu-item 'disk-detect'.

This is the relevant part in my preseed file:

Code: Select all
partman-auto partman-auto/disk string /dev/[sv]da
d-i partman-auto/method string regular
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman-auto/choose_recipe select multi
d-i partman-md/confirm 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
d-i partman/mount_style select traditional


Since I have two devices (one usb attached and one internally on the motherboard) the installation is missing the firmware for these devices, but I have set the following in the preseed file :
Code: Select all
d-i hw-detect/load_firmware boolean false


Now, when I get to the point where the disk should be partitioned, I get the following lines in the syslog (3 times):
Code: Select all
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/fd0 on /media failed: No such file or directory
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/fd0 on /media failed: No such file or directory
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda1 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda2 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda5 on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/fd0 on /media failed: No such file or directory
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/fd0 on /media failed: No such file or directory
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /media failed: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): umount: can't umount /media: Invalid argument
Dec 10 14:25:28 main-menu[215]: (process:6553): mount: mounting /dev/sda on /m


After the third time, these lines appear:
Code: Select all
Dec 10 14:25:52 main-menu[215]: WARNING **: Configuring 'disk-detect' failed with error code 1
Dec 10 14:25:52 main-menu[215]: WARNING **: Menu item 'disk-detect' failed.

and the installation halts with a red screen.
When I manually (from the menu that now appears) start the item Detect disks again, I'm asked if I want to download firmware
for one of the devices I mentioned above, I decline, and now the automated installation succeeds and goes all the way to the end.

I have not been able to find what the reason for this behaviour is. Does anyone here have a clue, please ?

Furthermore, it seems like the setting of a fixed ip address in the preseed file is ignored completely.
I'm trying to set this using the following lines in the preseed file :
Code: Select all
d-i netcfg/choose_interface select eth0
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_nameservers string 8.8.8.8
d-i netcfg/get_ipaddress string 192.168.0.73
d-i netcfg/get_gateway string 192.168.0.1
d-i netcfg/confirm_static boolean true


but the installation merrily just uses DHCP.....

Any help would be greatly appreciated !
Thanks you,
Hans
phloks
 
Posts: 4
Joined: 2013-04-16 12:35

Return to Installation

Who is online

Users browsing this forum: No registered users and 8 guests

fashionable