The workaround I applied is to put an initfs image into kernel. The init script there "pre-mounts" the root file system and afterwards switches root. Nothing else. I tested twice by booting the machine and intentionally turning its power off. When stared again xfs recovery starts, finishes, then the switch_root takes place followed by the real init routine. In other words everything seems to work as supposed to. If the problem doesn't appear again after several unclean shutdowns I am going to send a bug report.
So this should hopefully be the last message in this thread. Thanks everyone! -- Best regards, Daniel -- [email protected] mailing list

