Skip to content

Commit

Permalink
Fix initrd kernel module update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jean-Marie Verdun committed Jan 15, 2018
1 parent 3790315 commit 9b21108
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
14 changes: 14 additions & 0 deletions ubuntu/xenial/geniso
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,20 @@ rm /usr/src/linux-source-4.4.0/debian.master/d-i/modules/sata-modules
fakeroot debian/rules clean
fakeroot debian/rules binary-headers binary-generic binary-perarch
fakeroot debian/rules binary-udebs
# we must install the O/S package as to get the right kernel module
cd /usr/src
new_image=`ls linux-image-*-generic* | grep -v extra`
version=`echo $new_image | awk --field-separator "_" '{print $1}'`
is_installed=`dpkg -l | grep $version`
echo $version
echo $is_installed
if [ "$is_installed" != "" ]
then
echo "Removing old install"
dpkg -r $version
fi
dpkg -i $new_image
new_modules=`ls /lib/modules | head -1`
cd $current_pwd
rm ubuntu-16.04.3-server-amd64.iso
wget http://releases.ubuntu.com/16.04/ubuntu-16.04.3-server-amd64.iso
Expand Down
3 changes: 1 addition & 2 deletions ubuntu/xenial/update_initrd/update_initrd
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ cat initrd.std | cpio -idmv
rm initrd.std


kernel_version=`uname -r`
kernel_version="4.4.0-21-generic"
kernel_version=$1
module_path=/lib/modules/$kernel_version

current_version=`ls lib/modules/`
Expand Down

0 comments on commit 9b21108

Please sign in to comment.