]> Frank Brehm's Git Trees - profitbricks/jenkins-build-scripts.git/commit
extract_storage: fix a bug on selecting modules directory name
authorDongsu Park <dongsu.park@profitbricks.com>
Thu, 22 Aug 2013 11:43:43 +0000 (13:43 +0200)
committerDongsu Park <dongsu.park@profitbricks.com>
Thu, 22 Aug 2013 11:48:32 +0000 (13:48 +0200)
commitb9ff504139fe18f01048cbac1f18f59d778bb97a
treeb38b0eff6b9fd17903e4553a2a87e14c5f4adc36
parent6b7ce4c37f3a9609d5aa9cd24d7765d5814e8c5c
extract_storage: fix a bug on selecting modules directory name

In the sub-script, which is externally invoked by this script,
there was a little bug like "cd /lib/modules/*storage/".
This has been working if there's only 1 directory under /lib/modules.
But after upgrading kernel 3.4.23 to 3.4.51, there could be 2 different
directories, because ANDBD package could be possibly depending on
the older version.

To avoid such situations, set the kernel modules directory just the
same as its kernel version.
extract_storage_kernel+modules.sh