genosse-einhorn / dracut-ntfsloop

8 stars 4 forks source link

kpartx -afv lock loop device busy #1

Open insulsa opened 5 years ago

insulsa commented 5 years ago

I have fs image without partition table. When initrd want to perform fsck, /dev/loop0 device is busy error is encountered. Thus fail boot. I replace kpartx -afv with losetup, it work fine. I suspect kpartx -av with -f dropped may also prevent /dev/loop0 lock error. I may dig into this matter when I have more free time.

insulsa commented 5 years ago

I also notice the shutdown script use losetup -D, not use kpartx -d. Is this suppose to complete in a scenario of many dm mapped partitions?