From 8b030ec9db165007af0254978c96f742dccc2235 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Tue, 12 May 2020 12:28:27 -0300 Subject: Fix: weird initramfs bug --- files/etc/initramfs-tools/hooks/fix-fixme | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 files/etc/initramfs-tools/hooks/fix-fixme (limited to 'files/etc/initramfs-tools/hooks') diff --git a/files/etc/initramfs-tools/hooks/fix-fixme b/files/etc/initramfs-tools/hooks/fix-fixme new file mode 100755 index 0000000..fbdbd3c --- /dev/null +++ b/files/etc/initramfs-tools/hooks/fix-fixme @@ -0,0 +1,17 @@ +#!/bin/sh +PREREQ="cryptroot" +prereqs() +{ + echo "$PREREQ" +} + +case $1 in + prereqs) + prereqs + exit 0 + ;; +esac + +. /usr/share/initramfs-tools/hook-functions +# Begin real processing below this line +sed -i -e "s|/FIXME-initramfs-rootmnt||g" $DESTDIR/cryptroot/crypttab -- cgit v1.2.3