Add a hook for setting up device drivers
This commit is contained in:
parent
df2a735ac0
commit
a9108dd12c
|
@ -1,7 +1,9 @@
|
||||||
#!/bin/env fish
|
#!/bin/env fish
|
||||||
|
function installDrivers -S
|
||||||
|
pacstrap -K "$ARCH_MOUNT_ROOT" linux-firmware-marvell;
|
||||||
|
end
|
||||||
|
|
||||||
CONFIG_MODULE="$(status dirname)/config.nix" \
|
CONFIG_MODULE="$(status dirname)/config.nix" \
|
||||||
ARCH_HOSTNAME="manu-surface" \
|
ARCH_HOSTNAME="manu-surface" \
|
||||||
USER_DISPLAYNAME="Manuel Thalmann" \
|
USER_DISPLAYNAME="Manuel Thalmann" \
|
||||||
. "$(status dirname)/../../../scripts/Arch/OS/setup.fish";
|
. "$(status dirname)/../../../scripts/Arch/OS/setup.fish";
|
||||||
|
|
||||||
pacstrap -K "/mnt" linux-firmware-marvell;
|
|
||||||
|
|
|
@ -35,8 +35,14 @@ begin
|
||||||
networkmanager \
|
networkmanager \
|
||||||
man-db \
|
man-db \
|
||||||
man-pages \
|
man-pages \
|
||||||
texinfo \
|
texinfo
|
||||||
;
|
|
||||||
|
and if type -q installDrivers
|
||||||
|
echo "Installing drivers…"
|
||||||
|
installDrivers
|
||||||
|
else
|
||||||
|
true
|
||||||
|
end
|
||||||
|
|
||||||
and "$dir/../../copy-repo.fish" "$ARCH_MOUNT_ROOT$tempRoot"
|
and "$dir/../../copy-repo.fish" "$ARCH_MOUNT_ROOT$tempRoot"
|
||||||
and genfstab -U "$ARCH_MOUNT_ROOT" >> "$ARCH_MOUNT_ROOT/etc/fstab"
|
and genfstab -U "$ARCH_MOUNT_ROOT" >> "$ARCH_MOUNT_ROOT/etc/fstab"
|
||||||
|
|
Loading…
Reference in a new issue