oddlama / gentoo-install

A gentoo installer with a TUI interface that supports systemd and OpenRC, EFI and BIOS, as well as variable disk layouts using ext4, zfs, btrfs, luks and mdraid.
MIT License
510 stars 72 forks source link

Netselect fails when not using large files and prevents install script from being rerun #81

Closed clotodex closed 8 months ago

clotodex commented 1 year ago
Using netselect to choose the top4 hosts, in blocks of 10. 20 of 20 blocks complete.te.
Traceback (most recent call last):
  File "/usr/lib/python-exec/python3.11/mirrorselect", line 57, in <module>
    MirrorSelect().main(sys.argv)
  File "/usr/lib/python3.11/site-packages/mirrorselect/main.py", line 386, in main
    self.change_config(fsmirrors + urls, options.output,
  File "/usr/lib/python3.11/site-packages/mirrorselect/main.py", line 107, in change_config
    hosts[i] = hosts[i].decode('utf-8')
               ^^^^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe2 in position 42: invalid continuation byte

After unmounting the disk and restarting the install I get

[+] Applying disk configuration
[+] Creating new gpt partition table (gpt) on /dev/disk/by-id/nvme-xxx
Error: Partition(s) 3 on /dev/nvme0n1 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.
realpath: '/dev/nvme0n1" ptuuid="xxx" partuuid=""'$'\n''name="/dev/nvme0n1p3': No such file or directory
[+] Creating partition (part_efi) with type=ef00, size=512MiB on /dev/nvme0n1" ptuuid="xxx" partuuid=""
name="/dev/nvme0n1p3
Problem opening /dev/nvme0n1" ptuuid="xxx" partuuid=""
name="/dev/nvme0n1p3 for reading! Error is 2.
The specified file does not exist!
error: Could not create new gpt partition (part_efi) on '/dev/nvme0n1" ptuuid="xxx" partuuid=""
name="/dev/nvme0n1p3' (gpt)
oddlama commented 1 year ago

Do you still have the .conf file around that you used? The netselect error looks like an upstream issue with the mirrorselect packet, and should resolve itself with a new stage3.

clotodex commented 1 year ago

Recreating it:

# vim: set ft=sh ts=4 sw=4 sts=-1 noet:
# This file will be interpreted by /bin/bash.

################################################
# Disk configuration

function disk_configuration() {
    create_classic_single_disk_layout swap='8GiB' type='efi' luks='false' root_fs='ext4' '/dev/disk/by-id/nvme-loooong-id' ;
}

################################################
# System configuration

HOSTNAME='myhostname'
TIMEZONE='Europe/Berlin'
KEYMAP='de-latin1-nodeadkeys'
KEYMAP_INITRAMFS='de-latin1-nodeadkeys'

LOCALES='C.UTF-8 UTF-8'
LOCALE='C.utf8'

SYSTEMD_NETWORKD='true'
SYSTEMD_NETWORKD_INTERFACE_NAME='en*'
SYSTEMD_NETWORKD_DHCP='true'
SYSTEMD_NETWORKD_ADDRESSES='192.168.1.100/32'
SYSTEMD_NETWORKD_GATEWAY='192.168.1.1'
SYSTEMD_INITRAMFS_SSHD='false'

################################################
# Gentoo configuration

PORTAGE_SYNC_TYPE='git'
PORTAGE_GIT_FULL_HISTORY='false'
PORTAGE_GIT_MIRROR='https://anongit.gentoo.org/git/repo/sync/gentoo.git'
GENTOO_MIRROR='https://mirror.eu.oneandone.net/linux/distributions/gentoo/gentoo'
GENTOO_ARCH='amd64'
STAGE3_VARIANT='desktop-systemd'
STAGE3_BASENAME="stage3-$GENTOO_ARCH-$STAGE3_VARIANT"
USE_PORTAGE_TESTING='true'
SELECT_MIRRORS='true'
SELECT_MIRRORS_LARGE_FILE='false'
SYSTEMD=$([[ $STAGE3_VARIANT == *systemd* ]] && echo "true" || echo "false")

################################################
# Additional (optional) configuration

ADDITIONAL_PACKAGES=('iwd' 'neovim')
ENABLE_SSHD='false'
ROOT_SSH_AUTHORIZED_KEYS=''

################################################
# Prove that you have read the config

I_HAVE_READ_AND_EDITED_THE_CONFIG_PROPERLY=true
oddlama commented 8 months ago

Was indeed an upstream bug and has been fixed (to my knowledge) in the meantime.