Skip to content
Snippets Groups Projects
Commit c22f3643 authored by Christopher Spinrath's avatar Christopher Spinrath
Browse files

remaster_rootfs: fix copy/paste error

parent 845b8c15
No related branches found
No related tags found
No related merge requests found
...@@ -82,9 +82,10 @@ function install_packages() ...@@ -82,9 +82,10 @@ function install_packages()
KERNEL_PKG=$(dpkg -S "$(readlink -f /vmlinuz)" | cut -d ":" -f1) KERNEL_PKG=$(dpkg -S "$(readlink -f /vmlinuz)" | cut -d ":" -f1)
if [ -z "$KERNEL_PKG" ]; then if [ -z "$KERNEL_PKG" ]; then
echo "LIPCK: remaster_rootfs: unable to determine installed kernel version; giving up..." echo "LIPCK: remaster_rootfs: unable to determine installed kernel version; giving up..."
exit 1
fi fi
#[ "$(uname -m)" == "x86_64" ] || KERNEL_PKG=linux-image-generic-lts-trusty #[ "$(uname -m)" == "x86_64" ] || KERNEL_PKG=linux-image-generic-lts-trusty
if [ ! -e "$(readlink -f /initrd.img)" ]; then if [ ! -e "$(readlink -f /vmlinuz)" ]; then
echo "LIPCK: No kernel in place; try to reinstall kernel image package:" echo "LIPCK: No kernel in place; try to reinstall kernel image package:"
echo " $KERNEL_PKG" echo " $KERNEL_PKG"
apt-get --reinstall -y install $KERNEL_PKG apt-get --reinstall -y install $KERNEL_PKG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment