Created
August 24, 2018 16:27
-
-
Save Anachron/a04a09398f295e2481f1eb3e2e9bbb25 to your computer and use it in GitHub Desktop.
LUKS configs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
==> 10-crypt.conf <== | |
install_items+="/etc/crypttab" | |
==> crypttab <== | |
# crypttab: mappings for encrypted partitions | |
# | |
# Each mapped device will be created in /dev/mapper, so your /etc/fstab | |
# should use the /dev/mapper/<name> paths for encrypted devices. | |
# | |
# NOTE: Do not list your root (/) partition here. | |
# <name> <device> <password> <options> | |
# home /dev/hda4 /etc/mypassword1 | |
# data1 /dev/hda3 /etc/mypassword2 | |
# data2 /dev/hda5 /etc/cryptfs.key | |
# swap /dev/hdx4 /dev/urandom swap,cipher=aes-cbc-essiv:sha256,size=256 | |
# vol /dev/hdb7 none | |
luks-1e05ddda-736a-408e-8cf0-ee37c9c8d3ee /dev/sda2 luks | |
==> dracut.conf <== | |
# PUT YOUR CONFIG IN separate files | |
# in /etc/dracut.conf.d named "<name>.conf" | |
# SEE man dracut.conf(5) for options | |
==> fstab <== | |
# | |
# See fstab(5). | |
# | |
# <file system> <dir> <type> <options> <dump> <pass> | |
tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0 | |
/dev/sda1 /boot ext4 defaults,discard,noatime 0 0 | |
/dev/mapper/luks-1e05ddda-736a-408e-8cf0-ee37c9c8d3ee / ext4 defaults,discard,noatime 0 0 | |
/dev/mapper/lvm-copy /copy ext4 defaults,discard,noatime 0 0 | |
/dev/mapper/lvm-data /data ext4 defaults,discard,noatime 0 0 | |
/dev/mapper/lvm-swap none swap defaults,discard,noatime 0 0 | |
/data/users /home none bind 0 0 | |
==> grub <== | |
# | |
# Configuration file for GRUB. | |
# | |
GRUB_DEFAULT=0 | |
#GRUB_HIDDEN_TIMEOUT=0 | |
#GRUB_HIDDEN_TIMEOUT_QUIET=false | |
GRUB_TIMEOUT=5 | |
GRUB_DISTRIBUTOR="Void" | |
GRUB_CMDLINE_LINUX_DEFAULT="loglevel=4 slub_debug=P page_poison=1" | |
# Uncomment to use basic console | |
#GRUB_TERMINAL_INPUT="console" | |
# Uncomment to disable graphical terminal | |
#GRUB_TERMINAL_OUTPUT=console | |
GRUB_BACKGROUND=/usr/share/void-artwork/splash.png | |
#GRUB_GFXMODE=1920x1080x32 | |
#GRUB_DISABLE_LINUX_UUID=true | |
#GRUB_DISABLE_RECOVERY=true | |
GRUB_DISABLE_SUBMENU=true | |
GRUB_DISABLE_OS_PROBER=true | |
GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2 rd.luks=1 rd.luks.uuid=1e05ddda-736a-408e-8cf0-ee37c9c8d3ee rd.luks.crypttab=1 rd.lvm=1 rd.dm=0 lang=de locale=de_DE.UTF-8 pci=nomsi ipv6.disable=1 elevator=deadline" | |
==> lsblk.txt <== | |
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT | |
sda 8:0 0 465,8G 0 disk | |
├─sda1 8:1 0 1G 0 part /boot | |
└─sda2 8:2 0 464,8G 0 part | |
└─luks-1e05ddda-736a-408e-8cf0-ee37c9c8d3ee 254:0 0 464,8G 0 crypt | |
├─lvm-void 254:1 0 10G 0 lvm / | |
├─lvm-copy 254:2 0 10G 0 lvm /copy | |
├─lvm-swap 254:3 0 4G 0 lvm [SWAP] | |
└─lvm-data 254:4 0 440,8G 0 lvm /data | |
sr0 11:0 1 7,5G 0 rom |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment