Skip to content

Commit 4332c72

Browse files
committed
dracut: Fix autoinstaller
1 parent da9626b commit 4332c72

3 files changed

Lines changed: 9 additions & 10 deletions

File tree

dracut/autoinstaller/install.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@ VAI_welcome() {
2222
}
2323

2424
VAI_get_address() {
25-
# Enable the hook for resolv.conf
26-
mkdir -p /usr/lib/dhcpcd/dhcpcd-hooks
27-
ln -sf /usr/libexec/dhcpcd-hooks/20-resolv.conf /usr/lib/dhcpcd/dhcpcd-hooks/
25+
mkdir -p /var/lib/dhclient
2826

29-
# Get an IP address
30-
dhcpcd -w -L --timeout 0
27+
# This will fork, but it means that over a slow link the DHCP
28+
# lease will still be maintained. It also doesn't have a
29+
# hard-coded privsep user in it like dhcpcd.
30+
dhclient
3131
}
3232

3333
VAI_partition_disk() {

dracut/autoinstaller/module-setup.sh

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,22 @@ install() {
1717
inst /usr/bin/clear
1818
inst /usr/bin/cp
1919
inst /usr/bin/chpasswd
20-
inst /usr/bin/dhcpcd
20+
inst /usr/bin/dhclient
21+
inst /usr/bin/dhclient-script
2122
inst /usr/bin/halt
2223
inst /usr/bin/install
2324
inst /usr/bin/lsblk
2425
inst /usr/bin/mkdir
2526
inst /usr/bin/mkfs.ext4
2627
inst /usr/bin/mkswap
2728
inst /usr/bin/mount
29+
inst /usr/bin/resolvconf
2830
inst /usr/bin/sfdisk
2931
inst /usr/bin/sync
3032
inst /usr/bin/xbps-install
3133
inst /usr/bin/xbps-uhelper
3234
inst /usr/bin/xbps-query
3335

34-
inst /usr/libexec/dhcpcd-hooks/20-resolv.conf
35-
inst /usr/libexec/dhcpcd-run-hooks
36-
3736
inst_multiple /var/db/xbps/keys/*
3837
inst_multiple /usr/share/xbps.d/*
3938

mklive.sh.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ trap 'error_out $? $LINENO' INT TERM 0
3030
umask 022
3131

3232
readonly REQUIRED_PKGS="base-files libgcc dash coreutils sed tar gawk syslinux grub-i386-efi grub-x86_64-efi squashfs-tools xorriso"
33-
readonly INITRAMFS_PKGS="binutils xz device-mapper dhclient dracut-network"
33+
readonly INITRAMFS_PKGS="binutils xz device-mapper dhclient dracut-network openresolv"
3434
readonly PROGNAME=$(basename "$0")
3535

3636
info_msg() {

0 commit comments

Comments
 (0)