Skip to content

Instantly share code, notes, and snippets.

@aaronlauterer
aaronlauterer / Arch-ZFSRoot-on-dm-crypt-UEFI
Last active November 5, 2017 11:18
ZFSRoot installation over a dm-crypt volume for Arch Linux (UEFI)
# arch uefi dm-crypt zfsroot install (archiso)
# modified to work with current repos as of 2016-06-16 and with hints from
# comments by larskotthoff
# uses only one boot partition for EFI and initramfs
# partition disk
# start at 1MB (sector 2048)
512Mib EFI
@aaronlauterer
aaronlauterer / Arch-ZFSRoot encrypted with hibernation
Created June 21, 2016 07:10
ZFSRoot on encrypted LUKS device with Swap for hibernation
#Addendum to https://gist.github.com/aaronlauterer/dc878ab3e048a8fcf032b2153c166603
# We want to have a swap partition next to the ZFS VDEV inside the encrypted partition to be able to resume from hibernate
# Using LVM for this is somewhat overkill and I am not sure how good an idea ZFS inside LVM is.
# Therefore we need to partition our cryptoroot until it looks something like the following:
$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 119.2G 0 disk
|-sda1 8:1 0 512M 0 part /boot
`-sda2 8:2 0 117.6G 0 part
# Google translation from http://victor-sudakov.livejournal.com/328562.html
# Here so I will find it again
FreeBSD bare metal restore (GPT, ZFS raidz)
victor_sudakov
November 8th, 2015
1. Full dump
@aaronlauterer
aaronlauterer / component-app.js
Created June 2, 2022 23:47 — forked from kesor/component-app.js
Vue.js 3.x with ES6 modules in the browser using import-map
import { defineAsyncComponent } from 'vue'
const Content = defineAsyncComponent(() => import('./component-content.js'))
export default {
name: 'App',
components: { Content },
template: /*html*/`
<Content />
`