Dieter Plaetinck wrote:
can you maybe do an ls -alh, stat, and file on $1 as the first thing in process_filesystem? *SNIP* that's really odd. so basically you are saying when the dm_crypt is created -b on it returns true, but a bit later -b on the same thing does not. please doublecheck that $fs_label is cryptoroot here. do a ls -alh, stat and file here also. so we can compare.
Ok, I added file, ls -al, and stat at both points. It worked like a charm, even when aif is invoked as aif -p interactive. That log is the first attachment. Next, I removed the file and ls -al calls, so we were left with only the two stats. I wanted to make it fail again, but it didn't oblige. That log is the second attachment, partlog2.txt. The stat following cryptsetup is different than the stat at the start of process_filesystem. In the first stat, you'll see that /dev/mapper/cryptoroot is a block device. It is at inode 7872. The second stat shows that /dev/mapper/cryptoroot is a symlink, and it is at inode 7949. -- Chris