IKARASHI, Seiichi wrote:
> Stefan Smietanowski wrote:
>
>>>> I noticed as much. And guess what - it worked!
>>>
>>>
>
> Good news!
>
>>>
>>> maybe hack the installer to check the fs-type then perhaps and do thr
>>> freeze only if it's xfs using the ioctl's rather than calling out to
>>> an external program
>>
>>
>>
>> Checking the FS type - yes, it involves some hackery pokery but it is
>> doable. Right now all it does is check if xfs_freeze is installed and
>> calls it twice each for both / and /boot (one freeze and one unfreeze).
>
>
> Checking the filesystem type can be done in
> bootloaderInfo.py of booty as follows:
>
> import fsset
> if fsset.isValidXFS(bootDev):
> // execute xfs_freeze -f for bootDev
> // execute xfs_freeze -u for bootDev
Excellent. I take it "if fsset.isValidXFS(bootDev)" is code and not
pseudo-code. I'll have to try that. I know the "execute xfs_freeze..."
is pseudo-code.
Hmmm. Wait, I just thought of something actually.
Regardless of if I have that if there or not I only need to do
xfs_freese -[fu] /boot actually since it just dawned on me what Chris W
said. Doing xfs_freeze -f /boot will freeze the partition where /boot
is located if /boot is a dir on /.
I'll try that if you wrote there and get back to you tomorrow.
Right now it's pretty late .. 0320. ouch... Yup, definately tomorrow.
// Stefan
|