Comment 3 for bug 68481

Revision history for this message
Ralf Gross (ubuntu-ralfgross) wrote : Re: change of /bin/sh to dash in edgy breaks drbd0.7-module-source build

I did the following (might not be the most elegant way..)

apt-get install drbd0.7-module-source
m-a a-i drbd0.7-module-source

Now you have the source under /usr/src/modules/drbd. Just editing the two Makefiles /usr/src/modules/drbd/Makefile and /usr/src/modules/drbd/drbd/Makefile does not work, because the m-a unpacks the tar file again.

Thus I edited the two Makefiles and added a SHELL=/bin/bash line somewhere at the top, removed the /usr/src/drbd0.7.tar.gz file, created a new drbd0.7.tar.gz with the changed Makefiles 'tar cvzf drbd0.7.tar.gz /usr/src/modules/drbd/'

After that 'm-a a-i drbd0.7-module-source' works as expected.

I'm not very familiar with the module-assist command, I'm sure there is a more elegant way to do this.