In your fstab, crypttab, and mkinit command line, you can specify the disk by UUID of the partition instead of /dev/sdXX.
(I find the UUID's with the blkid command. Use yours instead of blah-blah-blah.)
In fstab, replace the /dev/blah with UUID=blah-blah-blah
In the mkinit command line, replace the "-C /dev/blah" part with "-C /dev/disk/by-uuid/blah-blah-blah"
In crypttab, you can replace the /dev/blah with /dev/disk/by-uuid/blah-blah-blah too.
(Interestingly, "cryptsetup luksOpen" command will also recognize the device parameter as UUID=blah-blah-blah, but "cryptsetup isLuks" does not, so rc.0 does not open the device.)
Additionally, if your slackware boots and loads the existing initrd + kernel, you shouldn't have to adjust your initrd.
If it's just that your encrypted /home (or whatever you mount it as) isn't loading, then yes you can simply change your crypttab.
Last edited by Hangaber; 07-03-2014 at 01:28 PM.
Reason: Added last paragraph.
|