-
Notifications
You must be signed in to change notification settings - Fork 26
/
Copy pathfstab
26 lines (20 loc) · 1.29 KB
/
fstab
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# This file is part of https://github.com/random-archer/mkinitcpio-systemd-tool
# REQUIRED READING:
# * https://github.com/random-archer/mkinitcpio-systemd-tool/wiki/Root-vs-Fstab
# * https://github.com/random-archer/mkinitcpio-systemd-tool/wiki/System-Recovery
# fstab: mappings for direct partitions in initramfs:
# * file location in initramfs: /etc/fstab
# * file location in real-root: /etc/mkinitcpio-systemd-tool/config/fstab
# fstab format:
# https://wiki.archlinux.org/index.php/Fstab
# how fstab is used by systemd:
# https://www.freedesktop.org/software/systemd/man/systemd-fstab-generator.html
# https://github.com/systemd/systemd/blob/master/src/fstab-generator/fstab-generator.c
# note:
# * remove "root=/dev/mapper/root" stanza from kernel command line
# * provide here root partition mapping (instead of kernel command line)
# * ensure that mapper-path in fstab corresponds to mapper-name in crypttab
# * for x-mount options see: https://www.freedesktop.org/software/systemd/man/systemd.mount.html
# <block-device> <mount-point> <fs-type> <mount-options> <dump> <fsck>
# /dev/mapper/root /sysroot auto x-systemd.device-timeout=9999h 0 1
# /dev/mapper/swap none swap x-systemd.device-timeout=9999h 0 0