Skip to content

Commit 73f67fd

Browse files
committed
Work around issue with comparing PartitionModification types
1 parent 7707613 commit 73f67fd

2 files changed

Lines changed: 67 additions & 2 deletions

File tree

archinstall/lib/installer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ def _add_systemd_bootloader(
10631063
# And in which case we should do some clean up.
10641064
bootctl_options = []
10651065

1066-
if efi_partition and boot_partition != efi_partition:
1066+
if efi_partition and boot_partition.mountpoint != efi_partition.mountpoint:
10671067
bootctl_options.append(f'--esp-path={efi_partition.mountpoint}')
10681068
bootctl_options.append(f'--boot-path={boot_partition.mountpoint}')
10691069

@@ -1307,7 +1307,7 @@ def _add_limine_bootloader(
13071307
config_contents = 'timeout: 5\n'
13081308

13091309
path_root = 'boot()'
1310-
if efi_partition and boot_partition != efi_partition:
1310+
if efi_partition and boot_partition.mountpoint != efi_partition.mountpoint:
13111311
path_root = f'uuid({boot_partition.partuuid})'
13121312

13131313
for kernel in self.kernels:

build_iso.sh

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
set -e
44

5+
rm -f archvm/efivars.fd
6+
57
packages_file="/tmp/archlive/packages.x86_64"
68

79
# Packages to add to the archiso profile packages
@@ -21,15 +23,78 @@ mkdir -p /tmp/archlive/airootfs/root/archinstall-git
2123
cp -r . /tmp/archlive/airootfs/root/archinstall-git
2224

2325
cat <<- _EOF_ | tee /tmp/archlive/airootfs/root/.zprofile
26+
systemctl stop sshd
27+
2428
cd archinstall-git
2529
rm -rf dist
2630
31+
git config --global user.name aaa
32+
git config --global user.email aaa
33+
34+
git checkout limine-update
35+
git checkout limine-update2
36+
git checkout limine-update3
37+
git checkout limine-update4
38+
39+
git checkout merged-prs
40+
git reset --hard master
41+
git merge --no-edit --no-ff limine-update
42+
git merge --no-edit --no-ff limine-update2
43+
git merge --no-edit --no-ff limine-update3
44+
git merge --no-edit --no-ff limine-update4
45+
2746
python -m build --wheel --no-isolation
2847
pip install dist/archinstall*.whl --break-system-packages
2948
49+
mkfs.fat /dev/sda1
50+
mkfs.fat /dev/sda2
51+
mkfs.ext4 -F /dev/sda3
52+
53+
mount /dev/sda3 /mnt
54+
mkdir /mnt/boot
55+
mount /dev/sda2 /mnt/boot
56+
mkdir /mnt/boot/efi
57+
mount /dev/sda1 /mnt/boot/efi
58+
59+
cat >archinstall.conf <<'EOF'
60+
{
61+
"archinstall-language": "English",
62+
"audio_config": null,
63+
"bootloader": "Limine",
64+
"custom_commands": [],
65+
"disk_config": {
66+
"config_type": "pre_mounted_config",
67+
"mountpoint": "/mnt"
68+
},
69+
"hostname": "archlinux",
70+
"kernels": [
71+
"linux"
72+
],
73+
"locale_config": {
74+
"kb_layout": "us",
75+
"sys_enc": "UTF-8",
76+
"sys_lang": "en_US"
77+
},
78+
"network_config": {
79+
"type": "iso"
80+
},
81+
"ntp": false,
82+
"packages": [
83+
"dhcpcd"
84+
],
85+
"parallel_downloads": 0,
86+
"services": [],
87+
"swap": true,
88+
"timezone": "Europe/Rome",
89+
"version": null
90+
}
91+
EOF
92+
3093
echo "This is an unofficial ISO for development and testing of archinstall. No support will be provided."
3194
echo "This ISO was built from Git SHA $GITHUB_SHA"
3295
echo "Type archinstall to launch the installer."
96+
97+
archinstall --silent --config archinstall.conf
3398
_EOF_
3499

35100
pacman --noconfirm -S archiso

0 commit comments

Comments
 (0)