✏️ 正在编辑: cryptroot-unlock
路径:
/usr/share/initramfs-tools/hooks/cryptroot-unlock
提示:
您可以编辑任何文件(包括二进制文件),但请注意不当修改可能导致文件损坏。
#!/bin/sh PREREQ="" prereqs() { echo "$PREREQ" } case "$1" in prereqs) prereqs exit 0 ;; esac cp -p /usr/share/cryptsetup/initramfs/bin/cryptroot-unlock "$DESTDIR/bin/cryptroot-unlock" if [ -f /etc/initramfs-tools/etc/motd ]; then cp /etc/initramfs-tools/etc/motd "$DESTDIR/etc/motd" else cat >>"$DESTDIR/etc/motd" <<- EOF To unlock root partition, and maybe others like swap, run \`cryptroot-unlock\` EOF fi
💾 保存文件
← 返回文件管理器