Skip to content

Instantly share code, notes, and snippets.

View zenwheel's full-sized avatar

Scott Jann zenwheel

View GitHub Profile
@zenwheel
zenwheel / sysprep_linux.sh
Created December 1, 2023 00:20
Sysprep for Linux
#!/bin/bash
# Does the equivalent of sysprep for linux boxes to prepare them for cloning.
# Based on https://lonesysadmin.net/2013/03/26/preparing-linux-template-vms/
# For issues or updated versions of this script, browse to the following URL:
# https://gist.github.com/AfroThundr3007730/ff5229c5b1f9a018091b14ceac95aa55
AUTHOR='AfroThundr'
BASENAME="${0##*/}"
MODIFIED='20211002'
VERSION='1.8.1'
[ 0.000428] e820: update [mem 0x00000000-0x00000fff] usable ==> reserved
[ 0.000429] e820: remove [mem 0x000a0000-0x000fffff] usable
[ 0.000433] last_pfn = 0x208d800 max_arch_pfn = 0x400000000
[ 0.000435] MTRR default type: write-back
[ 0.000436] MTRR fixed ranges enabled:
[ 0.000437] 00000-9FFFF write-back
[ 0.000437] A0000-BFFFF uncachable
[ 0.000438] C0000-FFFFF write-protect
[ 0.000438] MTRR variable ranges enabled:
[ 0.000439] 0 base 0080000000 mask 7F80000000 uncachable
Available devices:
/dev/input/event0: Lid Switch
/dev/input/event1: Power Button
/dev/input/event2: Sleep Button
/dev/input/event3: AT Translated Set 2 keyboard
/dev/input/event4: Intel HID events
/dev/input/event5: Intel HID 5 button array
/dev/input/event6: PC Speaker
/dev/input/event7: HDA NVidia HDMI/DP,pcm=3
/dev/input/event8: HDA NVidia HDMI/DP,pcm=7
[ 0.000000] Linux version 5.7.12-arch1-1 (linux@archlinux) (gcc version 10.1.0 (GCC), GNU ld (GNU Binutils) 2.34.0) #1 SMP PREEMPT Fri, 31 Jul 2020 17:38:22 +0000
[ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-linux root=UUID=f573bae7-11a1-4b67-80a6-4685ef7fea38 rw loglevel=3 quiet
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] Hygon HygonGenuine
[ 0.000000] Centaur CentaurHauls
[ 0.000000] zhaoxin Shanghai
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x001: 'x87 floating point registers'
[ 0.000000] x86/fpu: Supporting XSAVE feature 0x002: 'SSE registers'
Verifying that +zenwheel is my Bitcoin username. You can send me #bitcoin here: https://onename.io/zenwheel

Keybase proof

I hereby claim:

  • I am zenwheel on github.
  • I am zenwheel (https://keybase.io/zenwheel) on keybase.
  • I have a public key whose fingerprint is A30A 1BAD D268 F422 22C3 1BE7 3ED0 76CE E486 B4DB

To claim this, I am signing this object: