Debian preseed.cfgpartmanspecify_usage ニュース

Debian preseed.cfgpartmanspecify_usage ニュース

パッカーが構築した基本イメージの一部としてpartmanを活用しようとしています。 inodeの数を増やすには、ルートシステムを「news」として宣言する必要があります。 expert_recipeまたはpartman-auto/choose_recipe selectatomicでパーティションを宣言すると、partmanの使用フラグを有効にすることはできません。

# Partitioning
d-i partman-auto/method string regular
d-i partman-auto/disk   string /dev/sda
d-i partman/confirm boolean true
# Does not work, ie news usage
#d-i partman-auto/expert_recipe string \
#highinode_disk :: \
#  29000 10 -1 ext4 \
#    $primary{ } \
#   $bootable{ } \
#   method{ format } \
#   format{ } \
#   use_filesystem{ news } \
#   filesystem{ ext4 } \
#    specify_usage{ news } \
#   mountpoint{ / } .
#d-i partman-auto/choose_recipe highinode_disk
d-i partman/default_filesystem string ext4
d-i partman-basicfilesystems/specify_usage select news
d-i partman-basicfilesystems/text/specify_mountpoint /
d-i partman-auto/choose_recipe select atomic
d-i partman/confirm_write_new_label boolean true
d-i partman/confirm_nooverwrite boolean true
d-i partman-basicfilesystems/no_swap boolean false
d-i partman/confirm boolean true
d-i partman/choose_partition select Finish partitioning and write changes to disk

preseed.cfgを使用してプライマリパーティションの一般的な使用法に関するニュースをトリガーする方法は?

ありがとうございます!

ベストアンサー1

指定_使用はUbuntuでは機能しません。この問題を解決するには、次の回避策を使用します。

d-i partman/early_command string \ 
  sed -i 's/inode_ratio = 16384/inode_ratio = 4096/g' /etc/mke2fs.conf

おすすめ記事