Bug 170127

Summary: Work round fix for booty/anaconda when installing grub on XFS file systems
Product: [Fedora] Fedora Reporter: James Pearson <james-p>
Component: bootyAssignee: Peter Jones <pjones>
Status: CLOSED NOTABUG QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4CC: esandeen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-03-09 07:25:36 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Patch (against booty CVS) to work round grub installer hangs with XFS
none
Revised patch to work round grub installer hangs with XFS none

Description James Pearson 2005-10-07 16:00:56 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040524

Description of problem:
The current code in bootloaderInfo.py uses xfs_freeze to freeze/thaw the XFS file system containing /boot to make sure the data is sync'd to disk before the grub install command is run - this fails to work (a lot) more often than not.

A work round that does work is to remount the file system read-only and then read-write.

Patch to follow ...


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Install using XFS as the file system containing /boot

  

Actual Results:  Installer/anaconda will hang at the installing boot loader stage

grub 'spins' at this point

Expected Results:  Grub install should complete and installation continue

Additional info:

Comment 1 James Pearson 2005-10-07 16:04:11 UTC
Created attachment 119712 [details]
Patch (against booty CVS) to work round grub installer hangs with XFS

Comment 2 James Pearson 2005-11-04 17:05:22 UTC
Created attachment 120732 [details]
Revised patch to work round grub installer hangs with XFS

New patch that does something sensible if it can't remount /boot
read-only/read-write

Comment 3 Eric Sandeen 2006-11-16 04:02:08 UTC
I recently found that the latest grub install from anaconda is actually writing
directly to /boot's block device -while- /boot is mounted.  Not at all good.

invoking grub> install with the "--stage2=/boot/grub/stage2" option prevents
this, and may alleviate some of xfs's woes.

Anaconda disallows boot on xfs now anyway I think, so maybe this is a moot point....

Comment 4 Christian Iseli 2007-01-22 11:12:51 UTC
This report targets the FC3 or FC4 products, which have now been EOL'd.

Could you please check that it still applies to a current Fedora release, and
either update the target product or close it ?

Thanks.

Comment 5 James Pearson 2007-02-04 12:47:40 UTC
I guess this can be closed, as RedHat doesn't support XFS anyway ...