diff options
Diffstat (limited to 'rog/etc')
-rw-r--r-- | rog/etc/crypttab | 1 | ||||
-rw-r--r-- | rog/etc/default/grub | 34 | ||||
-rw-r--r-- | rog/etc/fstab | 29 | ||||
-rw-r--r-- | rog/etc/modprobe.d/my.conf | 2 | ||||
-rw-r--r-- | rog/etc/systemd/system/local.service | 14 |
5 files changed, 80 insertions, 0 deletions
diff --git a/rog/etc/crypttab b/rog/etc/crypttab new file mode 100644 index 0000000..fbc52a4 --- /dev/null +++ b/rog/etc/crypttab @@ -0,0 +1 @@ +CRYPTED UUID=f63ff1bc-cdab-4a85-8a35-af82541b559f none luks,discard,initramfs diff --git a/rog/etc/default/grub b/rog/etc/default/grub new file mode 100644 index 0000000..4a381cd --- /dev/null +++ b/rog/etc/default/grub @@ -0,0 +1,34 @@ +# If you change this file, run 'update-grub' afterwards to update +# /boot/grub/grub.cfg. +# For full documentation of the options in this file, see: +# info -f grub -n 'Simple configuration' + +GRUB_DEFAULT=0 +GRUB_TIMEOUT_STYLE=hidden +GRUB_TIMEOUT=10 +GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian` +GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=UUID=f63ff1bc-cdab-4a85-8a35-af82541b559f:CRYPTED modprobe.blacklist=nouveau fsck.mode=skip" +#GRUB_CMDLINE_LINUX_DEFAULT="cryptdevice=UUID=f63ff1bc-cdab-4a85-8a35-af82541b559f:CRYPTED" +GRUB_CMDLINE_LINUX="" + +# Uncomment to enable BadRAM filtering, modify to suit your needs +# This works with Linux (no patch required) and with any kernel that obtains +# the memory map information from GRUB (GNU Mach, kernel of FreeBSD ...) +#GRUB_BADRAM="0x01234567,0xfefefefe,0x89abcdef,0xefefefef" + +# Uncomment to disable graphical terminal (grub-pc only) +#GRUB_TERMINAL=console + +# The resolution used on graphical terminal +# note that you can use only modes which your graphic card supports via VBE +# you can see them in real GRUB with the command `vbeinfo' +#GRUB_GFXMODE=640x480 + +# Uncomment if you don't want GRUB to pass "root=UUID=xxx" parameter to Linux +#GRUB_DISABLE_LINUX_UUID=true + +# Uncomment to disable generation of recovery mode menu entries +#GRUB_DISABLE_RECOVERY="true" + +# Uncomment to get a beep at grub start +#GRUB_INIT_TUNE="480 440 1" diff --git a/rog/etc/fstab b/rog/etc/fstab new file mode 100644 index 0000000..b162749 --- /dev/null +++ b/rog/etc/fstab @@ -0,0 +1,29 @@ +#/dev/mapper/CRYPTED / ext4 errors=remount-ro 0 1 +/dev/mapper/CRYPTED / ext4 errors=remount-ro 0 0 + +#UUID=0cfa534f-3f59-4adb-908a-4bbdf69fe8ce /boot ext3 defaults 0 2 +UUID=0cfa534f-3f59-4adb-908a-4bbdf69fe8ce /boot ext3 defaults,nofail,x-systemd.automount,x-systemd.device-timeout=3 0 0 + +#UUID=74B7-09FF /boot/efi vfat umask=0077 0 1 +UUID=74B7-09FF /boot/efi vfat umask=0077 0 0 +/swapfile none swap sw 0 0 + +# /mnt/d (z97 rog) +#/dev/md126p2 /mnt/d ntfs-3g defaults,uid=1000,gid=users,dmask=0022,fmask=133 0 2 + +# 10TB RAID0 (z97 rog) +#UUID=3A5AFA965AFA4E5F /mnt/e ntfs-3g defaults,rw,uid=1000,gid=1000,nofail,x-systemd.device-timeout=5 0 0 + +# the 14TB is getting unlocked with dislocker at /usr/local/bin/local.sh, mounted as RO of course, can't risk it... + +tiny:/srv/dump/public /mnt/nfs nfs4 defaults,_netdev,nofail,x-systemd.automount,x-systemd.device-timeout=10 0 0 + +//192.168.1.13/jpop /mnt/jpop cifs user=kyle,password=foo,uid=1000,gid=1000,ro,_netdev,nofail,x-systemd.automount,x-systemd.device-timeout=10,vers=2.1 0 0 +//192.168.1.13/jpop2017 /mnt/jpop2017 cifs user=kyle,password=foo,uid=1000,gid=1000,ro,_netdev,nofail,x-systemd.automount,x-systemd.device-timeout=10,vers=2.1 0 0 +//192.168.1.13/jpop2018 /mnt/jpop2018 cifs user=kyle,password=foo,uid=1000,gid=1000,ro,_netdev,nofail,x-systemd.automount,x-systemd.device-timeout=10,vers=2.1 0 0 +//192.168.1.13/jpop2019 /mnt/jpop2019 cifs user=kyle,password=foo,uid=1000,gid=1000,ro,_netdev,nofail,x-systemd.automount,x-systemd.device-timeout=10,vers=2.1 0 0 +//192.168.1.13/jpop2020 /mnt/jpop2020 cifs user=kyle,password=foo,uid=1000,gid=1000,ro,_netdev,nofail,x-systemd.automount,x-systemd.device-timeout=10,vers=2.1 0 0 + +# changelog +# +# disable fsck bit (last column was set to 0) for both /boot and /boot/efi filesystems as systemd is fucking up diff --git a/rog/etc/modprobe.d/my.conf b/rog/etc/modprobe.d/my.conf new file mode 100644 index 0000000..0223101 --- /dev/null +++ b/rog/etc/modprobe.d/my.conf @@ -0,0 +1,2 @@ +# triggers bug in gdm3 lmao, so use it only with startx or something +options nvidia_drm modeset=1 diff --git a/rog/etc/systemd/system/local.service b/rog/etc/systemd/system/local.service new file mode 100644 index 0000000..204c9d0 --- /dev/null +++ b/rog/etc/systemd/system/local.service @@ -0,0 +1,14 @@ +[Unit] +Description=Run local commands after boot +ConditionFileIsExecutable=/usr/local/bin/local.sh +After=multi-user.target + +[Service] +Type=oneshot +# below is needed otherwise ExecStop would execute right after start and unmount +RemainAfterExit=Yes +ExecStart=/usr/local/bin/local.sh +ExecStop=/usr/local/bin/local-cleanup.sh + +[Install] +WantedBy=multi-user.target |