https://bugzilla.novell.com/show_bug.cgi?id=805732 https://bugzilla.novell.com/show_bug.cgi?id=805732#c24 Jan Kara <jack@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |duwe@suse.com --- Comment #24 from Jan Kara <jack@suse.com> 2013-03-13 10:46:19 UTC --- (In reply to comment #23)
(In reply to comment #21)
* Torsten, why is the postinstall needed this way?
Because someone insisted to support booting Linux from xfs, which was never designed for that purpose. Grub does not use bmap(), but its own FS code on the raw disk. I see, that's why grub cannot work in osc chroot. BTW, why does osc even pull in grub Andreas?
* Linux xfs is extremely lazy writing back dirty data I think you meant metadata (for data, sync should be really enough). I wonder how come you didn't see similar problems with ext3/4 - likely because they have all metadata exposed in buffer cache while xfs does not.
* Linux buffer caches are not coherent (/dev/sda does not include /dev/sda1) True - but sync(1) plus flushing the caches on the device you want to use (BLKFLSBUF ioctl) solves this problem.
The whole magic was needed to get stage2 onto the disk, so it can get modified in-place. Seems like someone broke the detection logic. This bug needs to be reassigned accordingly, or boot from XFS declared unsupported. No, your postinstall logic is not broken. Just kernel got more strict about writing to frozen filesystem and in osc chroot /dev/null is on filesystem grub postinstall freezes so shell gets blocked when opening /dev/null.
Anyway the simplest solution seem to be to change postinstall to do: (xfs_freeze -f /; xfs_freeze -f /boot; xfs_freeze -u /; xfs_freeze -u /boot ) > /dev/null 2>&1 That way /dev/null will be opened on still unfrozen filesystem (subsequent writing to it doesn't block because device null as such isn't frozen) and things will work (tested that). Thorsten, can you change postinstall like that please? Thanks! -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.