Skip to content

Instantly share code, notes, and snippets.

@HRomie
HRomie / zz-busybox-initramfs-fix
Last active February 5, 2019 21:19
Fix remote unlocking of LUKS-encrypted root in Ubuntu/Debian
#!/bin/sh
# UPDATE: You most likely do not need this workaround anymore.
# The bug has been fixed in cryptsetup 2:2.0.2-1ubuntu1.1
# 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