Skip to content

Instantly share code, notes, and snippets.

View sourcejedi's full-sized avatar

Alan Jenkins sourcejedi

View GitHub Profile
@sourcejedi
sourcejedi / test-fails
Created February 22, 2015 15:01
Attic 0.14 testsuite failures/errors on ARM32
======================================================================
ERROR: test_aes_counter_uniqueness_keyfile (attic.testsuite.archiver.ArchiverTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/alan/src/Attic-0.14/virtualenv-3.4.2/lib/python3.4/site-packages/Attic-0.14-py3.4-linux-armv5tel.egg/attic/testsuite/archiver.py", line 381, in test_aes_counter_uniqueness_keyfile
self.verify_aes_counter_uniqueness('keyfile')
File "/home/alan/src/Attic-0.14/virtualenv-3.4.2/lib/python3.4/site-packages/Attic-0.14-py3.4-linux-armv5tel.egg/attic/testsuite/archiver.py", line 368, in verify_aes_counter_uniqueness
self.create_test_files()
File "/home/alan/src/Attic-0.14/virtualenv-3.4.2/lib/python3.4/site-packages/Attic-0.14-py3.4-linux-armv5tel.egg/attic/testsuite/archiver.py", line 124, in create_test_files
os.utime('input/empty', (19880895600, 19880895600))
@sourcejedi
sourcejedi / gist:49358fb9e754a9cdd200c33f59e820d0
Created October 6, 2016 12:26
systemctl list-dependencies -r system-update.target
system-update.target
● ├─dnf-system-upgrade.service
● ├─fwupd-offline-update.service
● ├─packagekit-offline-update.service
● └─sysinit.target
● ├─dev-hugepages.mount
● ├─dev-mqueue.mount
● ├─dmraid-activation.service
● ├─dracut-shutdown.service
● ├─iscsi.service
@sourcejedi
sourcejedi / udev.info.diff
Created May 8, 2017 13:33
diff of `udevadm info` for /dev/sd* before/after rerunning `udevadm trigger`
--- udev.info 2017-05-08 14:22:51.688682578 +0100
+++ udev.t-sda.info 2017-05-08 14:24:54.567370147 +0100
@@ -1,22 +1,92 @@
P: /devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/block/sda
N: sda
+S: disk/by-id/ata-WDC_WD5000LPLX-75ZNTT0_WX71A958AN1Y
+S: disk/by-id/wwn-0x50014ee606237ece
+S: disk/by-path/pci-0000:00:1f.2-ata-2
+E: DEVLINKS=/dev/disk/by-path/pci-0000:00:1f.2-ata-2 /dev/disk/by-id/ata-WDC_WD5000LPLX-75ZNTT0_WX71A958AN1Y /dev/disk/by-id/wwn-0x50014ee606237ece
E: DEVNAME=/dev/sda
[ 0.000000] Linux version 4.11.11-300.fc26.x86_64 (mockbuild@bkernel01.phx2.fedoraproject.org) (gcc version 7.1.1 20170622 (Red Hat 7.1.1-3) (GCC) ) #1 SMP Mon Jul 17 16:32:11 UTC 2017
[ 0.000000] Command line: BOOT_IMAGE=/vmlinuz-4.11.11-300.fc26.x86_64 root=UUID=1ec6e495-7e31-426b-89cf-2703c59d2807 ro console=ttyS0 systemd.unit=emergency.target systemd.log_level=debug systemd.log_target=console LANG=en_GB.UTF-8
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x004: 'AVX registers'
[ 0.000000] x86/fpu: xstate_offset[2]: 576, xstate_sizes[2]: 256
[ 0.000000] x86/fpu: Enabled xstate features 0x7, context size is 832 bytes, using 'standard' format.
[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x000000000009fbff] usable
[ 0.000000] BIOS-e820: [mem 0x000000000009fc00-0x000000000009f
@sourcejedi
sourcejedi / gist:d481b9f191bdcb2916496d4efd875685
Created September 4, 2017 21:41
Jessie live installer does not install os-prober, despite being recommended by grub-common
Jan 9 12:24:12 main-menu[342]: INFO: Menu item 'grub-installer' selected
Jan 9 12:24:12 grub-installer: info: architecture: amd64/generic
Jan 9 12:24:12 /bin/in-target: warning: /target/etc/mtab won't be updated since it is a symlink.
Jan 9 12:24:12 in-target: Reading package lists...
Jan 9 12:24:12 in-target:
Jan 9 12:24:12 in-target: Building dependency tree...
Jan 9 12:24:12 in-target:
Jan 9 12:24:12 in-target: Reading state information...
Jan 9 12:24:12 in-target:
Jan 9 12:24:12 in-target: Suggested packages:
strace: Process 1 attached
epoll_pwait(4, [{EPOLLIN, {u32=3162728624, u64=94840335591600}}], 39, -1, NULL, 8) = 1
clock_gettime(CLOCK_BOOTTIME, {tv_sec=552, tv_nsec=540910081}) = 0
accept4(14, NULL, NULL, SOCK_CLOEXEC|SOCK_NONBLOCK) = 16
getsockopt(16, SOL_SOCKET, SO_PEERCRED, {pid=632, uid=0, gid=0}, [12]) = 0
getrandom("\xb3\xdc\xe5\x4f\x6f\x68\x05\xfa\xbf\x1a\x87\xb4\xa7\xc2\xf1\x93", 16, GRND_NONBLOCK) = 16
fcntl(16, F_GETFL) = 0x802 (flags O_RDWR|O_NONBLOCK)
fcntl(16, F_GETFD) = 0x1 (flags FD_CLOEXEC)
fstat(16, {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
getsockopt(16, SOL_SOCKET, SO_RCVBUF, [212992], [4]) = 0
@sourcejedi
sourcejedi / dmesg.txt
Created July 19, 2018 20:03
SheevaPlug kernel log messages - "Linux version 4.9.0-6-marvell" "Debian 4.9.88-1+deb9u1 (2018-05-07)"
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.0-6-marvell (debian-kernel@lists.debian.org) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1) ) #1 Debian 4.9.88-1+deb9u1 (2018-05-07)
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] OF: fdt:Machine model: Globalscale Technologies SheevaPlug
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 131072
[ 0.000000] free_area_init_node: node 0, pgdat c0592b48, node_mem_map dfbf8000
[ 0.000000] Normal zone: 1024 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
@sourcejedi
sourcejedi / after-unbind.txt
Last active December 5, 2018 20:26
sysfs attributes of IBM trackpoint device, before and after unbinding the device driver
/sys/bus/serio/devices/serio2
├── bind_mode
├── description
├── drvctl
├── firmware_id
├── id
│   ├── extra
│   ├── id
│   ├── proto
│   └── type
First results are during `dd if=/dev/sda of=/dev/null bs=4M count=10k iflag=direct`
Second results are during `dd if=/dev/sda of=/dev/null bs=4M count=10k`
Results are from `atopsar -d 5`
12:48:41 disk busy read/s KB/read writ/s KB/writ avque avserv _dsk_
12:53:06 sda 26% 306.6 512.1 0.6 4.0 18.7 0.84 ms
12:53:11 sda 25% 310.4 511.9 0.2 4.0 18.8 0.82 ms
12:53:16 sda 25% 310.9 512.0 0.0 0.0 18.9 0.81 ms
@sourcejedi
sourcejedi / log-shutdown-delay.txt
Last active September 12, 2019 10:19
1m30s shutdown delay on Debian 10
-- Logs begin at Wed 2019-08-28 15:28:42 BST, end at Thu 2019-09-05 15:48:36 BST. --
Sep 03 11:34:55 drystone kernel: Linux version 4.19.0-5-amd64 (debian-kernel@lists.debian.org) (gcc version 8.3.0 (Debian 8.3.0-6)) #1 SMP Debian 4.19.37-5+deb10u2 (2019-08-08)
Sep 03 11:34:55 drystone kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-4.19.0-5-amd64 root=UUID=f10753fb-0a2d-4288-971d-5f33682ab5c0 ro quiet
Sep 03 11:34:55 drystone kernel: x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
Sep 03 11:34:55 drystone kernel: x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Sep 03 11:34:55 drystone kernel: x86/fpu: Enabled xstate features 0x3, context size is 576 bytes, using 'standard' format.
Sep 03 11:34:55 drystone kernel: BIOS-provided physical RAM map:
Sep 03 11:34:55 drystone kernel: BIOS-e820: [mem 0x0000000000000000-0x0000000000000fff] reserved
Sep 03 11:34:55 drystone kernel: BIOS-e820: [mem 0x0000000000001000-0x000000000008ffff] usable
Sep 03 11:34:55 drystone kernel: BIOS-e820: