The officially official Devuan Forum!

You are not logged in.

#26 2019-05-06 18:14:50

duck
Member
Registered: 2019-03-20
Posts: 9  

Re: Installing devuan to lvm partitions within dm-crypt container

Head_on_a_Stick wrote:

^ Copy the patch to a file at /tmp/cryptdisks.patch, remove the .orig bit in the first line and then run this command as root:

cd /lib/cryptsetup && patch -p1 < /tmp/cryptdisks.patch

Probably wise to backup the file first though:

# cp /lib/cryptsetup/cryptdisks.functions{,.bak}

EDIT: ninja'd by rolfie...

Will this work for Ceres? I'm not thinking it will. I glanced over it and they seem a bit different.

cryptdisks.functions

is also now named

cryptdisks-functions

.

Offline

#27 2019-05-06 19:18:44

rolfie
Member
Registered: 2017-11-25
Posts: 512  

Re: Installing devuan to lvm partitions within dm-crypt container

For Beowulf/Ceres:
https://dev1galaxy.org/viewtopic.php?id=2690, entry #7.

rolfie

Offline

#28 2019-05-06 20:00:33

duck
Member
Registered: 2019-03-20
Posts: 9  

Re: Installing devuan to lvm partitions within dm-crypt container

rolfie wrote:

For Beowulf/Ceres:
https://dev1galaxy.org/viewtopic.php?id=2690, entry #7.

rolfie

Is entry  #7 quoted script the only required modification?

EDIT: I replaced

do_stop()

with the one supplied in entry #7 and shutdown was quick.

I notice others are talking about this possibly isn't a solution due to errors? I didn't see any but not sure where to check logs at.

Last edited by duck (2019-05-06 20:13:48)

Offline

#29 2019-05-06 20:21:28

rolfie
Member
Registered: 2017-11-25
Posts: 512  

Re: Installing devuan to lvm partitions within dm-crypt container

What remains is:

[ ok ] Unmounting local filesystems ... done
* ERROR: cryptdisks failed to stop
* ERROR: cryptdisks-early failed to stop

I have got that in my 3 Beowulf installations (and ASCII too). I would expect that you see that too.

Rolf

Last edited by rolfie (2019-05-06 20:21:54)

Offline

#30 2019-05-07 08:56:53

rolfie
Member
Registered: 2017-11-25
Posts: 512  

Re: Installing devuan to lvm partitions within dm-crypt container

BTW: this patch is not yet in the repos. The last cryptsetup update shipped yesterday? removed the patch again.

Rolf

Offline

#31 2019-05-09 13:44:11

fsmithred
Administrator
Registered: 2016-11-25
Posts: 1,886  

Re: Installing devuan to lvm partitions within dm-crypt container

rolfie wrote:

BTW: this patch is not yet in the repos. The last cryptsetup update shipped yesterday? removed the patch again.

Rolf

Thanks for the warning. I kept a copy of my modified cryptdisks-functions before upgrading, and the only differences between that and the latest version are my edits, so I only need to copy the modified file into place again.

Nobody has volunteered to adopt this package in devuan, and I believe this is a 'wontfix' bug upstream. Keep a copy of your edits handy.

Offline

Board footer