Skip to content

Instantly share code, notes, and snippets.

@steelcowboy
steelcowboy / systemd-oomd-memory-pressure.txt
Created March 25, 2021 00:08
systemd oomd worked, but also killed GNOME
Mar 24 16:59:44 steelcowboy-fedora systemd[7842]: org.gnome.Shell@wayland.service: systemd-oomd killed 7 process(es) in this unit.
Mar 24 16:59:44 steelcowboy-fedora systemd-oomd[1294]: Memory pressure for /user.slice/user-1000.slice/user@1000.service is greater than 10 for more than 10 seconds and there was reclaim activity
Mar 24 16:59:37 steelcowboy-fedora audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='unit=realmd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? re>
Mar 24 16:59:37 steelcowboy-fedora systemd[1]: realmd.service: Deactivated successfully.
Mar 24 16:59:37 steelcowboy-fedora realmd[7735]: stopping service
Mar 24 16:59:37 steelcowboy-fedora realmd[7735]: quitting realmd service after timeout
Mar 24 16:59:33 steelcowboy-fedora systemd[7842]: run-r36475b20a67c46a79451f67d7045e302.scope: Consumed 1min 49.772s CPU time.
Mar 24 16:59:33 steelcowboy-fedora systemd[7842]: run-r36475b20a67c46a79451f67d7045e302.scope: Dea
@steelcowboy
steelcowboy / centos-stream-uek.ks
Last active January 31, 2021 01:05
A simple kickstart to configure btrfs on CentOS utilizing the Oracle Unbreakable Kernel
# System setup
cmdline
keyboard --vckeymap=us --xlayouts='us'
lang en_US.UTF-8
timezone America/Los_Angeles --utc --ntpservers 0.pool.ntp.org,1.pool.ntp.org,2.pool.ntp.org,3.pool.ntp.org
network --activate
# Disk setup
bootloader --location=mbr
zerombr
@steelcowboy
steelcowboy / rdsosreport.txt
Created September 20, 2020 20:52
OpenSUSE MicroOS: umount /sysroot/home: invalid arument
[ 23.621043] localhost ignition[723]: INFO : Ignition 2.6.0
[ 23.621043] localhost ignition[723]: INFO : Stage: umount
[ 23.621043] localhost ignition[723]: INFO : reading system config file "/usr/lib/ignition/base.ign"
[ 23.621043] localhost ignition[723]: INFO : no config at "/usr/lib/ignition/base.ign"
[ 23.621627] localhost ignition[723]: INFO : umount: op(1): [started] umounting "/sysroot/home"
[ 23.621663] localhost ignition[723]: CRITICAL : umount: op(1): [failed] umounting "/sysroot/home": invalid argument
[ 23.621763] localhost ignition[723]: umount failedFull config:
[ 23.621763] localhost ignition[723]: {
[ 23.621763] localhost ignition[723]: "ignition": {
[ 23.621763] localhost ignition[723]: "config": {
@steelcowboy
steelcowboy / config.json
Created September 20, 2020 20:43
OpenSUSE MicroOS Ignition
{
"ignition": { "version": "3.1.0" },
"storage": {
"filesystems": [
{
"path": "/home",
"device": "/dev/disk/by-label/ROOT",
"format": "btrfs",
"wipeFilesystem": false,
"mountOptions": [
@steelcowboy
steelcowboy / fstab-vs-mount.md
Created September 15, 2020 01:59
What's in my fstab versus mount options after a reboot

Disk Mounts after Reboot

steelcowboy@my-hostname:~> mount | grep nvme
/dev/nvme0n1p2 on / type btrfs (ro,relatime,ssd,space_cache,subvolid=358,subvol=/@/.snapshots/58/snapshot)
/dev/nvme0n1p2 on /root type btrfs (rw,noatime,ssd,space_cache,subvolid=260,subvol=/@/root)
/dev/nvme0n1p3 on /var type btrfs (rw,noatime,compress=zstd:1,ssd,discard=async,space_cache=v2,subvolid=5,subvol=/)
/dev/nvme0n1p2 on /.snapshots type btrfs (rw,noatime,ssd,space_cache,subvolid=266,subvol=/@/.snapshots)
/dev/nvme0n1p2 on /boot/grub2/i386-pc type btrfs (rw,noatime,ssd,space_cache,subvolid=265,subvol=/@/boot/grub2/i386-pc)
/dev/nvme0n1p2 on /boot/grub2/x86_64-efi type btrfs (rw,noatime,ssd,space_cache,subvolid=264,subvol=/@/boot/grub2/x86_64-efi)
/dev/nvme0n1p2 on /boot/writable type btrfs (rw,noatime,ssd,space_cache,subvolid=263,subvol=/@/boot/writable)
@steelcowboy
steelcowboy / microos-rpi4-rdsosreport.txt
Created September 7, 2020 00:08
rdsosreport from trying to install MicroOS on a Raspberry Pi 4 with an external SSD
+ cat /lib/dracut/dracut-050+suse.75.g266a76d9-1.1
dracut-050+suse.75.g266a76d9-1.1
+ cat /proc/cmdline
+ sed -e 's/\(ftp:\/\/.*\):.*@/\1:*******@/g;s/\(cifs:\/\/.*\):.*@/\1:*******@/g;s/cifspass=[^ ]*/cifspass=*******/g;s/iscsi:.*@/iscsi:******@/g;s/rd.iscsi.password=[^ ]*/rd.iscsi.password=******/g;s/rd.iscsi.in.password=[^ ]*/rd.iscsi.in.password=******/g'
BOOT_IMAGE=/boot/Image-5.8.4-1-default root=UUID=928fe5dd-3410-4f2a-95fe-079f682bb677 rw rd.timeout=60 console=ttyS0,115200n8 console=tty0 quiet net.ifnames=0 ignition.firstboot rd.neednet=1 ip=dhcp ignition.platform.id=metal rd.neednet=0
+ '[' -f /etc/cmdline ']'
+ for _i in /etc/cmdline.d/*.conf
+ '[' -f /etc/cmdline.d/20-force_drivers.conf ']'
+ echo /etc/cmdline.d/20-force_drivers.conf
/etc/cmdline.d/20-force_drivers.conf
@steelcowboy
steelcowboy / nvm-ksh
Created August 9, 2020 01:15
Demo nvm install in ksh
~ [2]$ echo $SHELL
/bin/sh
~ [3]$ ls -a
. .. .bash_logout .bashrc .kshrc .profile .sh_history install.sh
~ [4]$ ./install.sh
=> Downloading nvm from git to '/home/testuser/.nvm'
=> Cloning into '/home/testuser/.nvm'...
remote: Enumerating objects: 290, done.
remote: Counting objects: 100% (290/290), done.
remote: Compressing objects: 100% (257/257), done.
@steelcowboy
steelcowboy / nvm-mksh
Created August 9, 2020 01:08
Demo nvm install mksh
testuser@fbd5d5ceabfa:~ $ echo $SHELL
/usr/bin/mksh
testuser@fbd5d5ceabfa:~ $ ls -a
. .. .bash_logout .bashrc .mkshrc .profile install.sh
testuser@fbd5d5ceabfa:~ $ ./install.sh
=> Downloading nvm from git to '/home/testuser/.nvm'
=> Cloning into '/home/testuser/.nvm'...
remote: Enumerating objects: 290, done.
remote: Counting objects: 100% (290/290), done.
remote: Compressing objects: 100% (257/257), done.
@steelcowboy
steelcowboy / nvm-dash
Created August 9, 2020 00:01
Demo nvm install in dash
$ echo $SHELL
$ ls -a
. .. .bash_logout .bashrc .mkshrc .profile install.sh
$ ./install.sh
=> Downloading nvm from git to '/home/testuser/.nvm'
=> Cloning into '/home/testuser/.nvm'...
remote: Enumerating objects: 290, done.
remote: Counting objects: 100% (290/290), done.
remote: Compressing objects: 100% (257/257), done.
@steelcowboy
steelcowboy / nvm-zsh
Created August 9, 2020 00:00
Demo nvm install in zsh
8d8ded2e30b4% echo $SHELL
8d8ded2e30b4% ls -a
. .. .bash_logout .bashrc .mkshrc .profile .zcompdump .zshrc install.sh
8d8ded2e30b4% ./install.sh
=> Downloading nvm from git to '/home/testuser/.nvm'
=> Cloning into '/home/testuser/.nvm'...
remote: Enumerating objects: 290, done.
remote: Counting objects: 100% (290/290), done.
remote: Compressing objects: 100% (257/257), done.