Skip to content

Instantly share code, notes, and snippets.

@yongqli
yongqli / zz-busybox-initramfs-fix
Last active May 2, 2019 03:47 — forked from HRomie/zz-busybox-initramfs-fix
Fix remote unlocking of LUKS-encrypted root in Ubuntu/Debian
#!/bin/sh
# This hook is for fixing busybox-initramfs issue while unlocking a luks
# encrypted rootfs. The problem is that the included busybox version
# is stripped down to the point that it breaks cryptroot-unlock script:
# https://bugs.launchpad.net/ubuntu/+source/busybox/+bug/1651818
# This is a non-aggressive fix based on the original busybox-initramfs hook
# until the bug is fixed.
# busybox or busybox-static package must be present for this to work