From: "Darrick J. Wong" <darrick.wong@oracle.com>
To: Eric Sandeen <sandeen@sandeen.net>
Cc: Eric Sandeen <sandeen@redhat.com>, xfs <linux-xfs@vger.kernel.org>
Subject: Re: [PATCH] xfs: add debian initramfs hook to package
Date: Sat, 28 Jul 2018 11:35:44 -0700 (PDT) [thread overview]
Message-ID: <20180728183544.GR30972@magnolia> (raw)
In-Reply-To: <ea774c75-8401-e672-c8cf-43d2879753d4@sandeen.net>
On Sat, Jul 28, 2018 at 08:47:49AM -0700, Eric Sandeen wrote:
>
>
> On 7/28/18 12:44 AM, Darrick J. Wong wrote:
> >> Actually... this sort of fstqab poses a problem for your function and mine:
> >>
> >> #/dev/mapper/vg-lv_root / xfs defaults 1 1
> >> /dev/mapper/vg-lv_root / ext4 defaults 1 1
> >>
> >> because it'll happily pick xfs. Need to exclude comment lines, so exclude
> >> MNT_FSNAME starting with # -
> >>
> >> test ${MNT_FSNAME::1} == "#" && continue
> >>
> >> or in my fancy world could do:
> >>
> >> awk '(!/^#/) && ($2 == "/") {print $3}' $(fstab_files)
> >>
> >> tho I guess mine assumes only one matching line... | head -n 1 ;)
> > Might have to add awk as a Depends: dependency in debian/control if you
> > do that. I think it's cleaner....
> >
>
> Ok, up to you. If this is all just boilerplate from other debian
> scripts and it's good enough for them I guess I can just merge as
> is. The only thing that seemed to matter was not ignoring comment lines,
> which would be trivial to fix.
Ok, I'll do that.
--D
> -Eric
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2018-07-28 20:04 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-26 21:51 [PATCH] xfs: add debian initramfs hook to package Darrick J. Wong
2018-07-27 14:28 ` Bill O'Donnell
2018-07-28 0:13 ` Eric Sandeen
2018-07-28 0:22 ` Eric Sandeen
2018-07-28 7:44 ` Darrick J. Wong
2018-07-28 15:47 ` Eric Sandeen
2018-07-28 18:35 ` Darrick J. Wong [this message]
2018-07-28 18:36 ` [PATCH v2] " Darrick J. Wong
2018-07-30 16:04 ` Eric Sandeen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180728183544.GR30972@magnolia \
--to=darrick.wong@oracle.com \
--cc=linux-xfs@vger.kernel.org \
--cc=sandeen@redhat.com \
--cc=sandeen@sandeen.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).