mirror of
https://gitlab.archlinux.org/tpowa/archboot.git
synced 2024-10-06 20:33:09 +02:00
fix containers running depmod for 6.11 kernels
This commit is contained in:
parent
41ebc8f6d5
commit
a29ae71e47
1 changed files with 6 additions and 4 deletions
|
@ -107,8 +107,8 @@ _create_pacman_conf() {
|
||||||
# CDN on aarch64 is broken sometimes
|
# CDN on aarch64 is broken sometimes
|
||||||
sd '^Server = http://mirror.archlinuxarm.org/$arch/$repo' \
|
sd '^Server = http://mirror.archlinuxarm.org/$arch/$repo' \
|
||||||
'# Server = http://mirror.archlinuxarm.org/$arch/$repo' ${1}/etc/pacman.d/mirrorlist
|
'# Server = http://mirror.archlinuxarm.org/$arch/$repo' ${1}/etc/pacman.d/mirrorlist
|
||||||
sd '# Server = http://de.mirror.archlinuxarm.org/$arch/$repo' \
|
sd '# Server = http://de3.mirror.archlinuxarm.org/$arch/$repo' \
|
||||||
'Server = http://de.mirror.archlinuxarm.org/$arch/$repo' ${1}/etc/pacman.d/mirrorlist
|
'Server = http://de3.mirror.archlinuxarm.org/$arch/$repo' ${1}/etc/pacman.d/mirrorlist
|
||||||
fi
|
fi
|
||||||
if ! rg -qw "\[archboot\]" "${_PACMAN_CONF}"; then
|
if ! rg -qw "\[archboot\]" "${_PACMAN_CONF}"; then
|
||||||
echo "Adding Archboot repository to ${_PACMAN_CONF}..."
|
echo "Adding Archboot repository to ${_PACMAN_CONF}..."
|
||||||
|
@ -254,9 +254,11 @@ _container_reproducibility() {
|
||||||
_set_hostname() {
|
_set_hostname() {
|
||||||
echo "Setting hostname to archboot..."
|
echo "Setting hostname to archboot..."
|
||||||
echo 'archboot' > "${1}/etc/hostname"
|
echo 'archboot' > "${1}/etc/hostname"
|
||||||
|
}
|
||||||
|
|
||||||
_depmod() {
|
_depmod() {
|
||||||
echo "Running depmod..."
|
echo "Running depmod..."
|
||||||
${_NSPAWN} "${1}" depmod $(kver "${1}/${_KERNEL}")
|
_KERNELVERSION="$(_kver $(basename ${1}/lib/modules/*))"
|
||||||
}
|
${_NSPAWN} "${1}" depmod "${_KERNELVERSION}"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue