个人工具
登录
查看“UbuntuHelp:FeistyLUKSTwoFormFactor”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:FeistyLUKSTwoFormFactor”的源代码
来自Ubuntu中文
←
UbuntuHelp:FeistyLUKSTwoFormFactor
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
=== /usr/share/initramfs-tools/hooks/cryptroot === Copy the diff into a temporary patch file and apply. <pre><nowiki> vi /tmp/patch1 </nowiki></pre> <pre><nowiki> --- cryptroot.orig 2007-04-14 17:52:22.000000000 -0500 +++ cryptroot 2007-07-03 18:32:16.000000000 -0500 @@ -156,6 +156,7 @@ extraopts="$2" KEYSCRIPT="" OPTIONS="" + TWOFORM=0 if [ -z "$target" ]; then echo "cryptsetup: WARNING: get_device_opts - invalid arguments" >&2 @@ -223,6 +224,10 @@ opt=$(basename "$opt") OPTIONS="$OPTIONS,keyscript=/keyscripts/$opt" ;; + twoform=*) + OPTIONS="$OPTIONS,$opt" + TWOFORM=1 + ;; *) # Presumably a non-supported option ;; @@ -234,6 +239,14 @@ echo "cryptsetup: WARNING: target $target uses a key file, skipped" >&2 return 1 fi + + # If twoform set then it depends on "key" and KEYSCRIPT + if [ $TWOFORM -eq 1 ]; then + if [ "$key" = "none" ] || [ -z "$KEYSCRIPT" ]; then + echo "cryptsetup: WARNING: target $target uses twoform and depends on key and keyscript, skipped" >&2 + return 1 + fi + fi } get_device_modules() { </nowiki></pre> <pre><nowiki> patch -b -l /usr/share/initramfs-tools/hooks/cryptroot < /tmp/patch1 </nowiki></pre>
返回至
UbuntuHelp:FeistyLUKSTwoFormFactor
。