Merge "Allow debootstrap to cleanup without a kernel"
This commit is contained in:
commit
07d263de0b
@ -1,2 +1,4 @@
|
||||
dpkg
|
||||
modprobe
|
||||
pkg-map
|
||||
|
||||
|
@ -22,4 +22,3 @@ set -eu
|
||||
set -o pipefail
|
||||
|
||||
install -d -m 0755 -o root -g root /etc/sudoers.d
|
||||
echo 'blacklist pcspkr' > /etc/modprobe.d/blacklist.conf
|
||||
|
@ -6,6 +6,17 @@ fi
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
# This would only not be here if there was no kmod package installed,
|
||||
# which can happen in some container situations. Obviously
|
||||
# blacklisting a kernel module is not really useful; however allowing
|
||||
# this to work can allow modules that do other things that *are*
|
||||
# useful for a container to "just work" without a whole bunch of
|
||||
# refactoring.
|
||||
if [ ! -d /etc/modprobe.d ]; then
|
||||
# ^ so we can see in the logs if we took this path ...
|
||||
mkdir -p /etc/modprobe.d
|
||||
fi
|
||||
|
||||
# copy all modprobe.d snippets to /etc/modprobe.d
|
||||
|
||||
eval declare -A image_elements=($(get_image_element_array))
|
||||
|
Loading…
Reference in New Issue
Block a user