Harald Hoyer
7ed1de2f1d
mount-root.sh: fixed fsck and "-a" only for "ext*"
2011-05-31 14:56:30 +02:00
Michal Soltys
0216d1cda3
95rootfs-block/mount-root.sh: Rely on det_fs and wrap_fsck
...
Use common fsck and det_fs code. Verify filesystem type more
aggressively, which has a chance to be more resistant to
accidental mistakes.
Also, there's no need to generate custom fstab for the sake of fsck
anymore.
Signed-off-by: Michal Soltys <soltys@ziu.info>
2011-05-20 17:16:51 +02:00
Harald Hoyer
3b403b32fc
removed trailing whitespaces
2011-05-10 11:56:09 +02:00
Harald Hoyer
c9f1e3d1f4
check for getarg() function before sourcing dracut-lib.sh
...
make use of "type getarg" to check, if we really need to source
dracut-lib.sh
2011-03-25 16:10:46 +01:00
Harald Hoyer
19f3a804e7
s#/dev/.run#/run#g
...
Move things where they really belong to.
2011-03-18 18:23:44 +01:00
Harald Hoyer
1e2a167fe6
rootfs-block/mount-root.sh: rename flag file for fsck
...
/dev/.run/initramfs/fsck -> /dev/.run/initramfs/root-fsck
2011-03-10 19:17:23 +01:00
Harald Hoyer
b177e9133e
move all /dev/.initramfs to /dev/.run/initramfs
...
We want all "/var/run" information to live in /dev/.run, until the real
root is mounted.
Therefore we mount a tmpfs on /dev/.run, which can/will be bind/move mounted
on /var/run later on.
2011-03-10 12:40:47 +01:00
Harald Hoyer
e53fdd1c35
rootfs-block/mount-root.sh: remove $NEWROOT/.autofsck if possible
2010-11-10 22:10:54 +01:00
Harald Hoyer
d884af8077
rootfs-block/mount-root.sh: remove $NEWROOT/{.autofsck,forcefsck} if possible
2010-11-10 20:47:15 +01:00
Harald Hoyer
a4f88b8a49
rootfs-block/mount-root.sh: set prompt in emergency shell
2010-11-10 20:45:02 +01:00
Harald Hoyer
3d7c58ca1e
rootfs-block/mount-root.sh: echo fsck return code to
...
/dev/.initramfs/fsck
2010-11-10 20:43:22 +01:00
Harald Hoyer
ce51f3be11
rootfs-block/mount-root.sh: fixed filesystem type udev parsing
2010-11-10 20:12:05 +01:00
Harald Hoyer
4cba811f6c
rootfs-block/mount-root.sh: correctly printf to fstab
2010-11-10 20:11:31 +01:00
Harald Hoyer
85de3d281a
rootfs-block/mount-root.sh: only warn if fsck returned != 0
2010-11-10 20:06:34 +01:00
Harald Hoyer
3817c2f138
rootfs-block/mount-root.sh: default rootfs to auto, even without fstab
2010-11-10 20:01:30 +01:00
Harald Hoyer
13af399f65
rootfs-block/mount-root.sh: clear fsckoptions
2010-11-10 19:58:15 +01:00
Andrey Borzenkov
0e08f1de8d
95rootfs-block: fix missing root when label contains slash
...
It is not clearly documented, but apparently fsck
(or, probably, getmntent) is using backslash as
escape character.
Label containing slash is converted to \x2f but '\'
is eaten by fsck later. Escape '\' before writing
into fstab.
v2:
- fix sed expression
- use printf instead of echo because echo eats '\' as well
Signed-off-by: Andrey Borzenkov <arvidjaar@gmail.com>
2010-11-10 16:03:14 +01:00
Harald Hoyer
c56e44a63a
rootfs-block/mount-root.sh: fixed fsck "-a" option
2010-11-03 13:40:42 -04:00
Harald Hoyer
3871942d13
rootfs-block:mount-root.sh add fsck
2010-10-29 19:00:35 +02:00
Harald Hoyer
fa7ada31d0
new parameter option names with "rd.*" namespace
...
Renamed Options
Here is a list of options, which were used in dracut prior to
version 008, and their new replacement.
rdbreak
rd.break
rd_CCW
rd.ccw
rdcopystate
rd.copystate
rd_DASD_MOD
rd.dasd_mod.dasd
rd_DASD
rd.dasd
rdinitdebug rdnetdebug
rd.debug
rd_NO_DM
rd.dm=0
rd_DM_UUID
rd.dm.uuid
rdblacklist
rd.driver.blacklist
rdinsmodpost
rd.driver.post
rdloaddriver
rd.driver.pre
rd_NO_FSTAB
rd.fstab=0
rdinfo
rd.info
check
rd.live.check
rdlivedebug
rd.live.debug
live_dir
rd.live.dir
liveimg
rd.live.image
overlay
rd.live.overlay
readonly_overlay
rd.live.overlay.readonly
reset_overlay
rd.live.overlay.reset
live_ram
rd.live.ram
rd_NO_CRYPTTAB
rd.luks.crypttab=0
rd_LUKS_KEYDEV_UUID
rd.luks.keydev.uuid
rd_LUKS_KEYPATH
rd.luks.keypath
rd_NO_LUKS
rd.luks=0
rd_LUKS_UUID
rd.luks.uuid
rd_LUKS_UUID
rd.luks.uuid
rd_NO_LVMCONF
rd.lvm.conf
rd_LVM_LV
rd.lvm.lv
rd_NO_LVM
rd.lvm=0
rd_LVM_SNAPSHOT
rd.lvm.snapshot
rd_LVM_SNAPSIZE
rd.lvm.snapsize
rd_LVM_VG
rd.lvm.vg
rd_NO_MDADMCONF
rd.md.conf=0
rd_NO_MDIMSM
rd.md.imsm=0
rd_NO_MD
rd.md=0
rd_MD_UUID
rd.md.uuid
rd_NFS_DOMAIN
rd.nfs.domain
rd_NO_PLYMOUTH
rd.plymouth=0
rd_retry
rd.retry
rdshell
rd.shell
rd_NO_SPLASH
rd.splash
rdudevdebug
rd.udev.debug
rdudevinfo
rd.udev.info
rd_NO_ZFCPCONF
rd.zfcp.conf=0
rd_ZFCP
rd.zfcp
2010-10-28 17:11:27 +02:00
Harald Hoyer
cc02093d69
reformat source code
...
removed tabs and set indention to 4 spaces
added emacs and vi format headers
2010-09-10 15:34:36 +02:00
Harald Hoyer
0ec519f8a4
mount-root: also filter "defaults" from mount options
2010-02-18 18:05:51 +01:00
Harald Hoyer
d793fc2e8b
mount-root: skip comments
2010-02-18 17:46:01 +01:00
Harald Hoyer
9232cab470
fix IFS restoring
2010-02-18 09:46:19 +01:00
Harald Hoyer
11ce36d78e
mount-root: do not pollute init arguments
...
and do not remount if no new rootopts set in /etc/fstab
2010-02-17 20:18:10 +01:00
Harald Hoyer
d43036ffeb
rootfs-block: strip "ro|rw" options from fstab options
...
https://bugzilla.redhat.com/show_bug.cgi?id=560424
2010-02-03 17:24:51 +01:00
Harald Hoyer
57c6b805ce
rootfs-block/mount-root: remount root with /etc/fstab filesystem options
2009-11-26 19:12:10 +01:00
Harald Hoyer
e8cf498dcc
95rootfs-block/mount-root.sh: ignore /.resume
2009-09-15 11:17:28 +02:00
Harald Hoyer
cff3457e32
fixed fstype mount options
2009-06-02 09:25:24 +02:00
David Dillow
ebd5615489
strip block: off root= when using the mount hooks
...
I'm not sure they are still used, but if so they need to
trim the prefix.
2009-06-01 21:43:07 -04:00
Andreas Thienemann
fc791a7fde
fix -t auto for fstype=""
2009-05-20 16:51:50 +02:00
Harald Hoyer
9c6f43f0e7
set "-t auto" as default if fstype is emtpy
2009-05-20 14:01:03 +02:00
Victor Lowther
35f90aafd2
Move finding and mounting root on block devices into its own hook.
2009-03-20 03:08:40 -05:00