r0b0 / debian-installer

Opinionated Debian Installer - alternative debian installer for laptops and desktop PCs
GNU General Public License v3.0
32 stars 3 forks source link

Latest server installer doesn't work #70

Closed QBANIN closed 2 months ago

QBANIN commented 2 months ago

Hi,

The server installer doesn't work for me... at early installer boot I'm gettin error overlayfs: failed to resolve /mnt/overlay_low: -2 mount : /sysroot: specjal device does not exist

then when installer.sh starts there's another error installer.sh: line 176: mkfs.vfat: command not found

and somewhere in the middle if the installer efi partition mount error.

please see attached log

generate uuid for efi partition
generate uuid for luks partition
generate uuid for swap partition
generate uuid for btrfs filesystem
create 3 partitions on /dev/sda
Checking that no-one is using this disk right now ... OK

Partition #2 contains a crypto_LUKS signature.
Disk /dev/sda: 119.24 GiB, 128035676160 bytes, 250069680 sectors
Disk model: SPCC M.2 SSD    
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 7754D241-764E-FC49-AA46-015C46B476C5

Old situation:

Device       Start       End   Sectors   Size Type
/dev/sda1     2048   2099199   2097152     1G EFI System
/dev/sda2  2099200   4196351   2097152     1G Linux swap
/dev/sda3  4196352 250069646 245873295 117.2G Linux root (x86-64)

>>> Script header accepted.
>>> Script header accepted.
>>> Script header accepted.
>>> Created a new GPT disklabel (GUID: 13A50504-10C0-5B47-B7CC-E5978FCD3319).
/dev/sda1: Created a new partition 1 of type 'EFI System' and of size 1 GiB.
/dev/sda2: Created a new partition 2 of type 'Linux swap' and of size 1 GiB.
/dev/sda3: Created a new partition 3 of type 'Linux root (x86-64)' and of size 2 GiB.
Partition #3 contains a crypto_LUKS signature.
/dev/sda4: Done.

New situation:
Disklabel type: gpt
Disk identifier: 13A50504-10C0-5B47-B7CC-E5978FCD3319

Device       Start     End Sectors Size Type
/dev/sda1     2048 2099199 2097152   1G EFI System
/dev/sda2  2099200 4196351 2097152   1G Linux swap
/dev/sda3  4196352 8292351 4096000   2G Linux root (x86-64)

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
resize the root partition on /dev/sda to fill available space
Checking that no-one is using this disk right now ... OK

Disk /dev/sda: 119.24 GiB, 128035676160 bytes, 250069680 sectors
Disk model: SPCC M.2 SSD    
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 13A50504-10C0-5B47-B7CC-E5978FCD3319

Old situation:

Device       Start     End Sectors Size Type
/dev/sda1     2048 2099199 2097152   1G EFI System
/dev/sda2  2099200 4196351 2097152   1G Linux swap
/dev/sda3  4196352 8292351 4096000   2G Linux root (x86-64)

/dev/sda3: 
New situation:
Disklabel type: gpt
Disk identifier: 13A50504-10C0-5B47-B7CC-E5978FCD3319

Device       Start       End   Sectors   Size Type
/dev/sda1     2048   2099199   2097152     1G EFI System
/dev/sda2  2099200   4196351   2097152     1G Linux swap
/dev/sda3  4196352 250069646 245873295 117.2G Linux root (x86-64)

The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
waiting for /dev/disk/by-partuuid/96e04e4a-d652-414f-84f4-b7ad99bc556e to be created
generate key file for luks
1+0 records in
1+0 records out
remove any old luks on /dev/disk/by-partuuid/96e04e4a-d652-414f-84f4-b7ad99bc556e (root)
512 bytes copied, 9.9783e-05 s, 5.1 MB/s
/dev/disk/by-partuuid/96e04e4a-d652-414f-84f4-b7ad99bc556e: 6 bytes were erased at offset 0x00000000 (crypto_LUKS): 4c 55 4b 53 ba be
/dev/disk/by-partuuid/96e04e4a-d652-414f-84f4-b7ad99bc556e: 6 bytes were erased at offset 0x00004000 (crypto_LUKS): 53 4b 55 4c ba be
remove any old luks on /dev/disk/by-partuuid/1caeb11c-1f27-4988-b548-092b40757224 (swap)
/dev/disk/by-partuuid/1caeb11c-1f27-4988-b548-092b40757224: 6 bytes were erased at offset 0x00000000 (crypto_LUKS): 4c 55 4b 53 ba be
/dev/disk/by-partuuid/1caeb11c-1f27-4988-b548-092b40757224: 6 bytes were erased at offset 0x00004000 (crypto_LUKS): 53 4b 55 4c ba be
setup luks on /dev/disk/by-partuuid/96e04e4a-d652-414f-84f4-b7ad99bc556e
setup luks password on /dev/disk/by-partuuid/96e04e4a-d652-414f-84f4-b7ad99bc556e
open luks on root
copy base image to /dev/mapper/root

88080384 bytes (88 MB, 84 MiB) copied, 1 s, 87.9 MB/s
180355072 bytes (180 MB, 172 MiB) copied, 2 s, 88.4 MB/s
268435456 bytes (268 MB, 256 MiB) copied, 3 s, 88.5 MB/s
356515840 bytes (357 MB, 340 MiB) copied, 4 s, 88.8 MB/s
436207616 bytes (436 MB, 416 MiB) copied, 5 s, 86.1 MB/s
494927872 bytes (495 MB, 472 MiB) copied, 6 s, 82.0 MB/s
583008256 bytes (583 MB, 556 MiB) copied, 7 s, 83.2 MB/s
671088640 bytes (671 MB, 640 MiB) copied, 8 s, 83.9 MB/s
763363328 bytes (763 MB, 728 MiB) copied, 9 s, 84.5 MB/s
855638016 bytes (856 MB, 816 MiB) copied, 10 s, 85.4 MB/s
939524096 bytes (940 MB, 896 MiB) copied, 11 s, 85.1 MB/s
1031798784 bytes (1.0 GB, 984 MiB) copied, 12 s, 85.8 MB/s
1128267776 bytes (1.1 GB, 1.1 GiB) copied, 13 s, 86.6 MB/s
1224736768 bytes (1.2 GB, 1.1 GiB) copied, 14 s, 87.4 MB/s
1321205760 bytes (1.3 GB, 1.2 GiB) copied, 15 s, 88.0 MB/s
319+1 records in
320+0 records out
1342177280 bytes (1.3 GB, 1.2 GiB) copied, 18.0375 s, 74.4 MB/s
check the filesystem on root
[1/7] checking root items
[2/7] checking extents
[3/7] checking free space tree
[4/7] checking fs roots
[5/7] checking only csums items (without verifying data)
[6/7] checking root refs
[7/7] checking quota groups skipped (not enabled on this FS)
Opening filesystem to check...
Checking filesystem on /dev/mapper/root
UUID: c18dc621-60e1-49b7-aa1b-14a830f23e22
found 725721088 bytes used, no error found
total csum bytes: 687112
total tree bytes: 22118400
total fs tree bytes: 19628032
total extent tree bytes: 1523712
btree space waste bytes: 4059689
file data blocks allocated: 703606784
 referenced 1361813504
change the filesystem uuid on root
Current fsid: c18dc621-60e1-49b7-aa1b-14a830f23e22
New fsid: f3ec59ce-f22b-469a-aa80-630abdf620f9
Set superblock flag CHANGING_FSID
Change fsid in extent tree
Change fsid in chunk tree
Clear superblock flag CHANGING_FSID
Fsid change finished
create esp filesystem on /dev/disk/by-partuuid/8de93a9a-1334-4e7f-9149-ae95ac15c46c
/installer.sh: line 197: mkfs.vfat: command not found
setup luks on /dev/disk/by-partuuid/1caeb11c-1f27-4988-b548-092b40757224
setup luks password on /dev/disk/by-partuuid/1caeb11c-1f27-4988-b548-092b40757224
open luks swap
making swap
Setting up swapspace version 1, size = 1008 MiB (1056960512 bytes)
no label, UUID=1469cc33-5dba-4528-9cf6-677674102b9a
mount top-level subvolume on /mnt/top_level_mount and resize to fit the whole partition
Resize device id 1 (/dev/mapper/root) from 1.25GiB to max
mount root and home subvolume on /target
bind mount dev, proc, sys, run on /target
mount efi esp partition /dev/disk/by-partuuid/8de93a9a-1334-4e7f-9149-ae95ac15c46c on /target/boot/efi
mount: /target/boot/efi: wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or helper program, or other error.
       dmesg(1) may have more information after failed mount system call.
setup hostname
setup timezone
setup fstab
setup sources.list
set up root password
set up aaa user
Adding user `aaa' ...
Adding new group `aaa' (1000) ...
Adding new user `aaa' (1000) with group `aaa (1000)' ...
Creating home directory `/home/aaa' ...
Copying files from `/etc/skel' ...
Adding new user `aaa' to supplemental / extra groups `users' ...
Adding user `aaa' to group `users' ...
Adding user `aaa' to group `sudo' ...
Done.
configuring dracut and kernel command line
install required packages on /target
Reading package lists...
Building dependency tree...
Reading state information...
locales is already the newest version (2.36-9+deb12u4).
systemd is already the newest version (254.5-1~bpo12+3).
btrfs-progs is already the newest version (6.2-1).
tasksel is already the newest version (3.73).
network-manager is already the newest version (1.42.4-1).
cryptsetup is already the newest version (2:2.6.1-4~deb12u2).
sudo is already the newest version (1.9.13p3-1+deb12u1).
tpm2-tools is already the newest version (5.4-1).
tpm-udev is already the newest version (0.6).
The following packages were automatically installed and are no longer required:
  busybox initramfs-tools-core klibc-utils libklibc linux-base zstd
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  dracut-core efibootmgr libefiboot1 libefivar1 systemd-boot-efi
Suggested packages:
  dracut-network
The following packages will be REMOVED:
  initramfs-tools
The following NEW packages will be installed:
  dracut dracut-core efibootmgr libefiboot1 libefivar1 systemd-boot
  systemd-boot-efi
0 upgraded, 7 newly installed, 1 to remove and 2 not upgraded.
Need to get 0 B/660 kB of archives.
After this operation, 2252 kB of additional disk space will be used.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18255 files and directories currently installed.)
Removing initramfs-tools (0.142) ...
Selecting previously unselected package dracut-core.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18243 files and directories currently installed.)
Preparing to unpack .../0-dracut-core_059-4_amd64.deb ...
Unpacking dracut-core (059-4) ...
Selecting previously unselected package dracut.
Preparing to unpack .../1-dracut_059-4_all.deb ...
Unpacking dracut (059-4) ...
Selecting previously unselected package libefivar1:amd64.
Preparing to unpack .../2-libefivar1_37-6_amd64.deb ...
Unpacking libefivar1:amd64 (37-6) ...
Selecting previously unselected package libefiboot1:amd64.
Preparing to unpack .../3-libefiboot1_37-6_amd64.deb ...
Unpacking libefiboot1:amd64 (37-6) ...
Selecting previously unselected package efibootmgr.
Preparing to unpack .../4-efibootmgr_17-2_amd64.deb ...
Unpacking efibootmgr (17-2) ...
Selecting previously unselected package systemd-boot-efi:amd64.
Preparing to unpack .../5-systemd-boot-efi_254.5-1~bpo12+3_amd64.deb ...
Unpacking systemd-boot-efi:amd64 (254.5-1~bpo12+3) ...
Selecting previously unselected package systemd-boot.
Preparing to unpack .../6-systemd-boot_254.5-1~bpo12+3_amd64.deb ...
Unpacking systemd-boot (254.5-1~bpo12+3) ...
Setting up systemd-boot-efi:amd64 (254.5-1~bpo12+3) ...
Setting up systemd-boot (254.5-1~bpo12+3) ...
Setting up dracut-core (059-4) ...
Setting up dracut (059-4) ...
update-initramfs: deferring update (trigger activated)
Setting up libefivar1:amd64 (37-6) ...
Setting up libefiboot1:amd64 (37-6) ...
Setting up efibootmgr (17-2) ...
Processing triggers for libc-bin (2.36-9+deb12u4) ...
Processing triggers for dracut (059-4) ...
Couldn't find EFI system partition. It is recommended to mount it to /boot or /efi.
Alternatively, use --esp-path= to specify path to mount point.
checking for tpm
tpm available, enrolling
... on root
New TPM2 token enrolled as key slot 2.
... on swap
New TPM2 token enrolled as key slot 2.
install kernel and firmware on /target
Reading package lists...
Building dependency tree...
Reading state information...
dracut is already the newest version (059-4).
firmware-linux is already the newest version (20230210-5).
bluez-firmware is already the newest version (1.2-9).
dahdi-firmware-nonfree is already the newest version (2.11.1.0.20170917-2).
firmware-amd-graphics is already the newest version (20230210-5).
firmware-ath9k-htc is already the newest version (1.4.0-108-gd856466+dfsg1-1.3+deb12u1).
firmware-atheros is already the newest version (20230210-5).
firmware-bnx2 is already the newest version (20230210-5).
firmware-bnx2x is already the newest version (20230210-5).
firmware-brcm80211 is already the newest version (20230210-5).
firmware-cavium is already the newest version (20230210-5).
firmware-intel-sound is already the newest version (20230210-5).
firmware-iwlwifi is already the newest version (20230210-5).
firmware-libertas is already the newest version (20230210-5).
firmware-misc-nonfree is already the newest version (20230210-5).
firmware-myricom is already the newest version (20230210-5).
firmware-netronome is already the newest version (20230210-5).
firmware-netxen is already the newest version (20230210-5).
firmware-qcom-media is already the newest version (20230210-5).
firmware-qcom-soc is already the newest version (20230210-5).
firmware-qlogic is already the newest version (20230210-5).
firmware-realtek is already the newest version (20230210-5).
firmware-samsung is already the newest version (20230210-5).
firmware-siano is already the newest version (20230210-5).
firmware-ti-connectivity is already the newest version (20230210-5).
firmware-tomu is already the newest version (2.0~rc7-2).
firmware-zd1211 is already the newest version (1:1.5-10).
hdmi2usb-fx2-firmware is already the newest version (0.0.0~git20151225-3).
midisport-firmware is already the newest version (1.2-4).
sigrok-firmware-fx2lafw is already the newest version (0.1.7-1).
The following packages were automatically installed and are no longer required:
  busybox initramfs-tools-core klibc-utils libklibc zstd
Use 'apt autoremove' to remove them.
The following additional packages will be installed:
  apparmor linux-image-6.6.13+bpo-amd64
Suggested packages:
  apparmor-profiles-extra apparmor-utils linux-doc-6.6 debian-kernel-handbook
  grub-pc | grub-efi-amd64 | extlinux
The following NEW packages will be installed:
  apparmor linux-image-6.6.13+bpo-amd64 linux-image-amd64
Preconfiguring packages ...
0 upgraded, 3 newly installed, 0 to remove and 2 not upgraded.
Need to get 0 B/97.3 MB of archives.
After this operation, 102 MB of additional disk space will be used.
Selecting previously unselected package apparmor.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 18752 files and directories currently installed.)
Preparing to unpack .../apparmor_3.0.8-3_amd64.deb ...
Unpacking apparmor (3.0.8-3) ...
Selecting previously unselected package linux-image-6.6.13+bpo-amd64.
Preparing to unpack .../linux-image-6.6.13+bpo-amd64_6.6.13-1~bpo12+1_amd64.deb ...
Unpacking linux-image-6.6.13+bpo-amd64 (6.6.13-1~bpo12+1) ...
Selecting previously unselected package linux-image-amd64.
Preparing to unpack .../linux-image-amd64_6.6.13-1~bpo12+1_amd64.deb ...
Unpacking linux-image-amd64 (6.6.13-1~bpo12+1) ...
Setting up apparmor (3.0.8-3) ...
Running in chroot, ignoring command 'daemon-reload'
Created symlink /etc/systemd/system/sysinit.target.wants/apparmor.service → /lib/systemd/system/apparmor.service.
Reloading AppArmor profiles 
Setting up linux-image-6.6.13+bpo-amd64 (6.6.13-1~bpo12+1) ...
I: /vmlinuz.old is now a symlink to boot/vmlinuz-6.6.13+bpo-amd64
I: /initrd.img.old is now a symlink to boot/initrd.img-6.6.13+bpo-amd64
I: /vmlinuz is now a symlink to boot/vmlinuz-6.6.13+bpo-amd64
I: /initrd.img is now a symlink to boot/initrd.img-6.6.13+bpo-amd64
/etc/kernel/postinst.d/dracut:
dracut: Generating /boot/initrd.img-6.6.13+bpo-amd64
dracut: Disabling early microcode, because kernel does not support it. CONFIG_MICROCODE_[AMD|INTEL]!=y
/etc/kernel/postinst.d/zz-systemd-boot:
Couldn't find EFI system partition. It is recommended to mount it to /boot or /efi.
Alternatively, use --esp-path= to specify path to mount point.
Setting up linux-image-amd64 (6.6.13-1~bpo12+1) ...
reverting backports apt-pin
umounting all filesystems
closing luks
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
device-mapper: remove ioctl on root  failed: Device or resource busy
Device root is still in use.
INSTALLATION FINISHED
r0b0 commented 2 months ago

Hi,

Thanks for the report.

The messages at early installer boot are harmless - it takes time to assemble the overlayfs structure and it will keep retrying until it succeeds.

I have fixed the issue with creating the EFI partition - the package with mkfs.vfat was missing from the installer image. Please retest with the new image.

Robert