Skip to content

Instantly share code, notes, and snippets.

Manual creation of OpenStack config drive

Intended for systems that expect OpenStack format config drive.
The essential pieces are disk label and file structure.
Here's how to generate one with user-data for cloud-init:

mkdir -p cloud-init/openstack/latest
$EDITOR cloud-init/openstack/latest/user_data
genisoimage -quiet -output config-disk.img -volid config-2 -joliet -rock cloud-init/
# Just a personal note, but I'm making this public in case someone finds this useful.
# These are unnecessary packages (for me) in initial installation of Linux Mint KDE 18.
# Create a list by doing: echo $(grep -v ^# linux-mint-kde-packages-to-clean.txt)
akonadi-server
amarok*
akonadi-backend-mysql
libakonadi*
avahi-*
@kalaksi
kalaksi / rsync-rootfs.md
Last active July 19, 2024 03:15
Copy the whole root filesystem excluding pseudo-filesystems and mountpoints

Copying the whole linux root filesystem locally or remotely using rsync

Explanation of chosen options:

  • Verbose output with speed and progress information
  • Try to preserve all possible information: file attrs, hardlinks, ACLs and extended attrs,
  • Exclude contents of pseudo-filesystems and mountpoints
  • In this example source host is remote and destination local.
rsync --info=progress2  -vaHAX --exclude={"/dev/*","/proc/*","/sys/*","/tmp/*","/run/*","/mnt/*","/media/*","/lost+found"} source.host:/ /local/destination