mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-04-15 13:11:22 +00:00
Install linux-virtual to restore the stripped headers
In a minimized image, the linux headers are stripped, so when unminimizing it, we should restore those stripped headers by installing the linux-virtual package.
This commit is contained in:
parent
4400dd37c6
commit
940df6e060
@ -302,6 +302,11 @@ EOF
|
||||
# to ensure all the Recommends of dependencies of ubuntu-server are installed, which aids in transforming
|
||||
# this minimized image to an equivalent base image.
|
||||
DEBIAN_FRONTEND=noninteractive apt-get --reinstall --fix-policy --install-recommends install -y ubuntu-server
|
||||
|
||||
if dpkg-query --show --showformat='${db:Status-Status}\n' linux-image-virtual 2> /dev/null | grep -q '^installed$'; then
|
||||
echo "Installing linux-virtual for installing the headers which were stripped in a minimized image"
|
||||
DEBIAN_FRONTEND=noninteractive apt-get install -y linux-virtual
|
||||
fi
|
||||
EOF
|
||||
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user