All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC/PATCH] Expand fstab-sys, simplify rootfs-block
@ 2011-05-20 15:09 Michal Soltys
       [not found] ` <1305904167-14199-1-git-send-email-soltys-R61QfzASbfY@public.gmane.org>
  0 siblings, 1 reply; 14+ messages in thread
From: Michal Soltys @ 2011-05-20 15:09 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

This patch moves code responsible for fsck'ing and determinig filesystem to
dracut-lib.sh, so it can be used by both fstab-sys and rootfs-block.

Adding fsck functionality to fstab-sys provides opportunity to move whole
separate /usr mount outside main initialization scripts - so real udev (with
different rules wanting /usr present) can work fine without any issues - having
/usr checked and mounted. At least that is the motivation behind these few
patches.

See respective commits for more details.

Note - I'm not sure if dracut-lib.sh is actually a proper place for those
functions - they were identical though, so to not repeat the code I stuffed
them there.

Haven't tested too much yet, so it's more RFC than a patch (code changes are
pretty simple though).



Michal Soltys (5):
  dracut-lib.sh: add vwarn() function
  dracut-lib.sh: Add det_fs() and wrap_fsck()
  95fstab-sys: use det_fs and wrap_fsck
  95rootfs-block/mount-root.sh: Rely on det_fs and wrap_fsck
  95rootfs-block/block-genrules.sh: Use > instead of >>

 modules.d/95fstab-sys/module-setup.sh      |    2 +
 modules.d/95fstab-sys/mount-sys.sh         |   23 +++++++++---
 modules.d/95rootfs-block/block-genrules.sh |    2 +-
 modules.d/95rootfs-block/mount-root.sh     |   47 +++++--------------------
 modules.d/99base/dracut-lib.sh             |   53 ++++++++++++++++++++++++++++
 5 files changed, 82 insertions(+), 45 deletions(-)

-- 
1.7.2.1

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2011-05-29  0:38 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-20 15:09 [RFC/PATCH] Expand fstab-sys, simplify rootfs-block Michal Soltys
     [not found] ` <1305904167-14199-1-git-send-email-soltys-R61QfzASbfY@public.gmane.org>
2011-05-20 15:09   ` [PATCH 1/5] dracut-lib.sh: add vwarn() function Michal Soltys
2011-05-20 15:09   ` [PATCH 2/5] dracut-lib.sh: Add det_fs() and wrap_fsck() Michal Soltys
2011-05-20 15:09   ` [PATCH 3/5] 95fstab-sys: use det_fs and wrap_fsck Michal Soltys
     [not found]     ` <1305904167-14199-4-git-send-email-soltys-R61QfzASbfY@public.gmane.org>
2011-05-23 23:05       ` Karel Zak
     [not found]         ` <20110523230507.GC2659-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
2011-05-24 20:50           ` Michal Soltys
     [not found]             ` <4DDC1A05.9030400-R61QfzASbfY@public.gmane.org>
2011-05-24 22:39               ` Karel Zak
     [not found]                 ` <20110524223936.GG2659-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
2011-05-25 13:16                   ` Harald Hoyer
2011-05-25 14:32                   ` Michal Soltys
     [not found]                 ` <4DDD0E48.3060607@rasengan.ppgk.com.pl>
     [not found]                   ` <4DDD0E48.3060607-dAhJnYnFfKxY6LDf3zcCrARSaAK4NQh3@public.gmane.org>
2011-05-25 14:33                     ` Karel Zak
     [not found]                       ` <20110525143311.GA14298-sHeGUpI7y9L/9pzu0YdTqQ@public.gmane.org>
2011-05-29  0:38                         ` [RFC] fstab-sys: concept Michal Soltys
2011-05-25 14:31           ` [PATCH 3/5] 95fstab-sys: use det_fs and wrap_fsck Karel Zak
2011-05-20 15:09   ` [PATCH 4/5] 95rootfs-block/mount-root.sh: Rely on " Michal Soltys
2011-05-20 15:09   ` [PATCH 5/5] 95rootfs-block/block-genrules.sh: Use > instead of >> Michal Soltys

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.