[PATCH] mkdumprd: try to get mount options from fstab first
Baoquan He
bhe at redhat.com
Thu Sep 4 09:37:11 UTC 2014
On 09/04/14 at 05:26pm, Dave Young wrote:
> > --- a/mkdumprd
> > +++ b/mkdumprd
> > @@ -104,7 +104,12 @@ to_mount() {
> > # mount under /sysroot in 2nd kernel, and we umount -R /sysroot before exit
> > _target="/sysroot$_target"
> > _fstype=$(findmnt -k -f -n -r -o FSTYPE $_dev)
> > - _options=$(findmnt -k -f -n -r -o OPTIONS $_dev)
> > + _options=$(findmnt --fstab -f -n -r -o OPTIONS $_dev)
> > + if [ -z "$_options" ]; then
> > + _options=$(findmnt -k -f -n -r -o OPTIONS $_dev)
> > + elif [ "$_options" = "defaults" ]; then
> > + _options=""
> > + fi
>
> defaults should put into options instead of blank string becuase we are passing
> fstab lines to dracut..
Yes, you are right. Will post v2.
>
More information about the kexec
mailing list