necessary network drivers.
--persistent-policy [POLICY]
Use [POLICY] to address disks and partitions.
- POLICY can be any directory name found in /dev/disk.
- E.g. "by-uuid", "by-label"
+ POLICY can be any directory name found in /dev/disk
+ (e.g. "by-uuid", "by-label"), or "mapper" to use
+ /dev/mapper device names (default).
--fstab Use /etc/fstab to determine the root device.
--add-fstab [FILE] Add file to the initramfs fstab.
--mount "[DEV] [MP] [FSTYPE] [FSOPTS]"
exit 1
fi
+if [[ $persistent_policy == "mapper" ]]; then
+ unset persistent_policy
+elif [[ -n $persistent_policy && ! -d "/dev/disk/${persistent_policy}" ]]; then
+ dwarn "Invalid persistent policy, your system does not have a /dev/disk/${persistent_policy} directory."
+ unset persistent_policy
+fi
+
if [[ $enhanced_cpio == "yes" ]]; then
enhanced_cpio="$dracutbasedir/dracut-cpio"
if [[ -x $enhanced_cpio ]]; then
**--persistent-policy** _<policy>_::
Use _<policy>_ to address disks and partitions.
- _<policy>_ can be any directory name found in /dev/disk.
- E.g. "by-uuid", "by-label"
+ _<policy>_ can be any directory name found in /dev/disk (e.g. "by-uuid",
+ "by-label"), or "mapper" to use /dev/mapper device names (default).
**--fstab**::
Use _/etc/fstab_ instead of _/proc/self/mountinfo_.
*persistent_policy=*"__<policy>__"::
Use _<policy>_ to address disks and partitions.
- _<policy>_ can be any directory name found in /dev/disk.
- E.g. "by-uuid", "by-label"
+ _<policy>_ can be any directory name found in /dev/disk (e.g. "by-uuid",
+ "by-label"), or "mapper" to use /dev/mapper device names (default=mapper).
*tmpdir=*"__<temporary directory>__"::
Specify temporary directory to use.