I hereby claim:
- I am whitslack on github.
- I am whitslack (https://keybase.io/whitslack) on keybase.
- I have a public key ASBHukTHa5TM_Tp-2UG__gee3nPwZeEO4USiwJTKAXRCtwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
If you've built your own kernel with all necessary storage-controller and file-system drivers built in, then you may have no need of an early userspace environment. However, if you want to do anything non-trivial with your root file system (LVM, LUKS, etc.), then you need an early userspace to set up and mount it. The traditional mechanism for this is initramfs, but building and maintaining an initramfs image is awkward and tiresome. Initramfs is a sledgehammer when, nine times out of ten, all you need is a screwdriver. This guide details a method of booting into an early userspace environment located in an ordinary file system on a physical disk partition, where an init script in this environment in turn sets up and mounts the real root file system and pivots into it.
In order to employ this method of booting your system, you will need a traditional (non-LVM) disk partition containing a file system that your kernel can mount without
# Accumulates flags in the associative array named by ${1}. | |
accumulate() { | |
declare -Ag ${1?} | |
local -n var=${1} ; shift | |
local flag ; for flag in "${@}" ; do | |
case ${flag} in | |
'-*') var=( ['*']=0 ) ;; | |
-*) var[${flag:1}]=0 ;; | |
*) var[${flag}]=1 ;; | |
esac |
BIP: whitlock-txid-draft
Layer: Consensus (hard fork)
Title: Mitigating transaction malleability by redefining TxId
Author: Matt Whitlock <[email protected]>
Type: Standards Track
Created: 2017-04-01
License: WTFPL <http://www.wtfpl.net/>
#include <stdbool.h> | |
#include <stdint.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include <errno.h> | |
#include <error.h> | |
#include <fcntl.h> | |
#include <sysexits.h> | |
#include <unistd.h> |
#!/bin/sh | |
# Discussion at https://community.frame.work/t/fw16-debian-bookworm-hibernate-not-reliable/52980/11?u=whitslack | |
mount --no-mtab -t devtmpfs dev /dev | |
mount --no-mtab -t proc proc /proc | |
mount --no-mtab -t sysfs sysfs /sys | |
loadkeys dvorak | |
echo 51 >/sys/class/backlight/amdgpu_bl0/brightness |