Quantcast
Channel: Debian User Forums
Viewing all articles
Browse latest Browse all 3395

Partman modifies USB drive from which debian is being installed in UEFI mode

$
0
0
Hello dear debian community,

i know there is an old topic with, probably, matches with my problem but this topic was marked as "closed" so i start a new on.

The Problem:

I´ve created a preseed config for the full-automated installtion of my debian, based on the netinstall-iso. When the Installation comes to the step in which "partman" shoul partitionate my NVMe-SSD it hngs with the following Message:
"Partition(s) 1 on /dev/sda have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes. "
/dev/sda is my USB-drive and should not be edited.

In another post https://forums.debian.net/viewtopic.php?t=158680 the solution was to add --mac option for isohybrid - unfortunately, this does not work (anymore?), because i receive this errormessage from isohybrid an the iso was not created:
genisoimage -V debian-netinstall-custom-amd64 \
-r -J -b isolinux/isolinux.bin -c isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-eltorito-alt-boot \
-e debian_iso_xpand boot/grub/efi.img \
-no-emul-boot \
-o debian-netinstall-custom-amd64.iso debian_iso_xpand

isohybrid --uefi --mac debian-netinstall-custom-amd64.iso
isohybrid: debian-netinstall-custom-amd64.iso: unable to find mac efi image
also
genisoimage -V debian-netinstall-custom-amd64 \
-r -J -b isolinux/isolinux.bin -c isolinux/boot.cat \
-no-emul-boot -boot-load-size 4 -boot-info-table \
-eltorito-alt-boot \
-e debian_iso_xpand boot/grub/efi.img \
-no-emul-boot \
-o debian-netinstall-custom-amd64.iso debian_iso_xpand

isohybrid --mac debian-netinstall-custom-amd64.iso
isohybrid: debian-netinstall-custom-amd64.iso: unable to find mac efi image
ends up with the error message.
I´ve tried this with isohybrid 0.12 (current in "stable and "testing").

Also the part
debconf-set partman/ignore_device /dev/sda
in the preseed-file has no effect.

All other areas of the preseed-file are working only this error comes up and stops the automated install, has anyone an idea or a solution please ?

Thanks in advence for your help

my preseed-config:

Code:

### Locale and Keyboard Settings ###d-i debian-installer/locale string en_US.UTF-8d-i debian-installer/language string end-i debian-installer/country string DE# Tastaturlayoutd-i console-setup/ask_detect boolean falsed-i console-setup/layoutcode string ded-i console-setup/modelcode string pc105d-i console-keymaps-at/keymap select ded-i keyboard-configuration/xkb-keymap select de### Timezone ###d-i clock-setup/utc boolean trued-i time/zone string Europe/Berlin### Network Setup ###d-i netcfg/choose_interface select autod-i netcfg/get_hostname string B6T-EPSd-i netcfg/get_domain string ### Firmware Loading ###d-i hw-detect/load_firmware boolean trued-i preseed/early_command string anna-install network-consoled-i network-console/start select continued-i network-console/password password XXXXd-i network-console/password-again password XXXX### User Setup ###d-i passwd/root-password-crypted password XXXXd-i passwd/user-fullname string XXXXd-i passwd/username string XXXXd-i passwd/user-password-crypted password XXXX### APT Setup ###d-i apt-setup/non-free boolean trued-i apt-setup/contrib boolean trued-i apt-setup/non-free-firmware boolean trued-i apt-setup/cdrom/set-first boolean falsed-i apt-setup/disable-cdrom-entries boolean trued-i apt-setup/use_mirror boolean false### Ignore USB Stick for Partitioning ###debconf-set partman/ignore_device /dev/sda### Disk Partitioning ###d-i partman-auto/disk string /dev/nvme0n1d-i partman-auto/method string regular# Delete existing partitionsd-i partman/confirm boolean trued-i partman/confirm_nooverwrite boolean trued-i partman-auto/initialize_disk_label boolean true# Partition Layoutd-i partman-auto/expert_recipe string custom-partitioning :: \      100 100 100 fat32 \          $primary{ } $bootable{ } method{ efi } format{ } use_filesystem{ } filesystem{ vfat } mountpoint{ /boot/efi } \      . \      50000 50000 50000 ext4 \          $primary{ } method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ / } \      . \      40000 40000 40000 ext4 \          method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ /home } \      . \      5000 5000 5000 linux-swap \          method{ swap } format{ } \      . \      160000 160000 -1 ext4 \          method{ format } format{ } use_filesystem{ } filesystem{ ext4 } mountpoint{ /var } \      .d-i partman-partitioning/confirm_write_new_label boolean trued-i partman/choose_partition select finishd-i partman/confirm_nooverwrite boolean trued-i partman/confirm boolean true### Package Installation ###tasksel tasksel/first multiselect standard, ssh-serverd-i pkgsel/include string openssh-server### Late Command ###d-i preseed/late_command string \    mkdir -p /target/root/post_install; \cp -R /target/media/cdrom/post_install/. /target/root/post_install/### Popularity Contest ###popularity-contest popularity-contest/participate boolean false### GRUB Installation (UEFI) ###d-i grub-installer/only_debian boolean trued-i grub-installer/with_other_os boolean falsed-i grub-installer/bootdev string /dev/nvme0n1### Finish Installation ###d-i finish-install/reboot_in_progress noted-i debian-installer/exit/poweroff boolean true

Statistics: Posted by torque_wrench — 2024-09-28 07:53 — Replies 1 — Views 29



Viewing all articles
Browse latest Browse all 3395

Trending Articles