This website works better with JavaScript.
Explore
Register
Sign In
kernel
/
dracut
mirror of
https://git.kernel.org/pub/scm/boot/dracut/dracut.git/
Watch
1
Star
0
Fork
You've already forked dracut
0
Code
Issues
Projects
Releases
Wiki
Activity
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1534
Commits
1
Branch
68
Tags
6.7 MiB
Tree:
c2c3108882
master
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
001
002
003
004
005
006
007
008
009
010
011
012
013
014
015
016
017
018
019
020
021
022
023
024
025
026
027
028
029
030
031
032
033
033-502
034
035
036
037
038
039
040
041
042
043
044
045
046
047
048
049
050
051
052
053
054
055
056
RHEL-7.1
RHEL-7.2
Branches
Tags
${ item.name }
Create tag
${ searchTerm }
Create branch
${ searchTerm }
from 'c2c3108882'
${ noResults }
dracut
/
modules.d
/
95fstab-sys
/
install
4 lines
86 B
Raw
Normal View
History
Unescape
Escape
95fstab-sys: mount all /etc/fstab.sys volumes before switch_root A new dracut module to implement fstab.sys handling This module implements fstab.sys handling. This has to happen after the root mount and before the nfsroot-cleanup pre-pivot at least. I've made to happen at the beginning of the pre-pivot scripts, although it should maybe be at the end of the mount scripts. This latter would be harder to do because the actual mount is currently done by 99mount-root.sh and there is no 2 digit integer higher than 99 :-( There are perhaps other ways of achieving this end, such as having the nfsroot-cleanup trawl through the newroot's /etc/fstab and auto-magically figure out if there are any mounts which are pre-requisites for the /var/lib/nfs/rpc_pipefs mount and do them first. Likewise post pivot, /etc/rc.sysinit could figure out of there are any pre-requisite mounts for /var/lib/stateless/{writeable,state} before doing those mounts. In short, make it the responsibility of anything doing a mount to check if there are any pre-requisites in /etc/fstab and mount them first. However, this spreads the changes needed over more places, so I favour the fstab.sys approach. Also, who knows what other uses administartors may have put fstab.sys to? and this undoes a regression caused by the move from mkinitrd to dracut.
15 years ago
#!/bin/sh
dracut_install /etc/fstab.sys
inst_hook pre-pivot 00 "$moddir/mount-sys.sh"