데비안 preseed.cfgpartmanspecify_usage 뉴스

데비안 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

지정_사용이 우분투에서 작동하지 않습니다. 이 문제를 해결하기 위해 다음 해결 방법을 사용합니다.

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

관련 정보