-addオプションを使用すると、Xorrisoコマンドは失敗します。

-addオプションを使用すると、Xorrisoコマンドは失敗します。

Xorrisoを使用しており、次のコマンドを実行しています。

   $MKISOFS \
    -iso-level 3 \
    -J -joliet-long \
    -append_partition 2 0xef $UNIONDIR/$EFIIMG \
    -partition_cyl_align all \
    -add "$UNATTENDED_FILE" 'C:\System32\Sysprep' \
    -o "$CFG_ISOPATH" \
    "$UNIONDIR/"

変数を埋めるコマンドは次のとおりです。

/usr/bin/xorriso -as mkisofs -iso-level 3 -J -joliet-long -append_partition 2 0xef /tmp/union.19/boot-efi.img -partition_cyl_align all -add /tmp/wf_script-Xjc2i3/unattended.xml | 'C:\System32\Sysprep' -o 991cc570-10d9-11ec-818a-5d4c9d0ae440.iso /tmp/union.19/

これは私が得るエラーです。これは -add オプションが原因で発生します。

+ /usr/bin/xorriso -as mkisofs -iso-level 3 -J -joliet-long -append_partition 2 0xef /tmp/union.19/boot-efi.img -partition_cyl_align all -add /tmp/wf_script-eZeXEW/unattended.xml 'C:\System32\Sysprep' -o 3d3839e0-10db-11ec-818a-5d4c9d0ae440.iso /tmp/union.19/
xorriso 1.5.0 : RockRidge filesystem manipulator, libburnia project.

Drive current: -outdev 'stdio:3d3839e0-10db-11ec-818a-5d4c9d0ae440.iso'
Media current: stdio file, overwriteable
Media status : is blank
Media summary: 0 sessions, 0 data blocks, 0 data, 42.2g free
xorriso : FAILURE : -as mkisofs: Unrecognized option '-add'
xorriso : aborting : -abort_on 'FAILURE' encountered 'FAILURE'
+ ok 'Creating new windows ISO'
+ EXITCODE=5
+ '[' 5 = 0 ']'
+ echo 'FAILURE: Creating new windows ISO'
+ exit 5
FAILURE: Creating new windows ISO
+ cleanup
+ purge /tmp/etfsimg19 /tmp/etfsmnt.19 /tmp/lower.19 /tmp/prop.19 /tmp/union.19 /tmp/union.19 /tmp/upper.19 /tmp/work.19
+ cd /tmp
+ for X in "$@"
+ '[' -d /tmp/etfsimg19 ']'
+ for X in "$@"
+ '[' -d /tmp/etfsmnt.19 ']'
+ umount /tmp/etfsmnt.19
+ for X in "$@"
+ '[' -d /tmp/lower.19 ']'
+ umount /tmp/lower.19
+ for X in "$@"
+ '[' -d /tmp/prop.19 ']'
+ umount /tmp/prop.19
+ for X in "$@"
+ '[' -d /tmp/union.19 ']'
+ umount /tmp/union.19
+ for X in "$@"
+ '[' -d /tmp/union.19 ']'
+ umount /tmp/union.19
+ for X in "$@"
+ '[' -d /tmp/upper.19 ']'
+ umount /tmp/upper.19
+ for X in "$@"
+ '[' -d /tmp/work.19 ']'
+ umount /tmp/work.19
+ rm -rf /tmp/etfsimg19 /tmp/etfsmnt.19 /tmp/lower.19 /tmp/prop.19 /tmp/union.19 /tmp/union.19 /tmp/upper.19 /tmp/work.19

-add オプションが必要なのは、una​​ttended.xml ファイルを ISO の C:\System32\Sysprep フォルダーに入れなければ、実行時に独自にインストールを実行できるからです。

どんな助けでも大変感謝します。

挨拶

ダニロ

ベストアンサー1

このコマンドは-addxorriso のデフォルトのコマンドセットに属し、mkisofs オプションと互換性がありません。 (次のコマンドワードの前にスコープを終了するための最後の引数が必要です。目標を考慮すると、コマンドが代わりに--必要であると言いたいのですが)。 。 「フォーム。-map-addtarget_path=source_path

ISOのファイルまたはディレクトリパスは、「/」で区切る必要があります。それでも、パス部分はC:まだISOのディレクトリ名になります。本当にこれをしたいですか? (MS-Windowsの知識は0です.)

目的に合ったISOパスを使用すると、mkisofs互換オプションを使用して$UNATTENDED_FILE挿入された$ISO_PATHターゲットを取得できます。

-graft-points "$ISO_PATH"="$UNATTENDED_FILE"

"$ISO_PATH"="$UNATTENDED_FILE"$UNIONDIR/ ファイルが$UNIONDIR/上書きされるのを防ぐために、後でテキストを提供する必要があります"$ISO_PATH"。 (もちろん"$ISO_PATH"文字を含めることはできませんが、必要に応じて表現するために使用できます=。)\=

おすすめ記事