在安装debian的过程中,EFI分区在ext4格式化。
我试图preseed安装debian jessie,我无法得到它的工作,因为UEFI分区格式化ext4(得到blkid信息)。
我预先分区如下:
di partman-auto/expert_recipe string \ boot-root :: \ 1 1 1 free \ $gptonly{ } \ $primary{ } \ $bios_boot{ } \ method{ biosgrub } \ . \ 512 100 512 vfat \ $gptonly{ } \ $primary{ } \ method{ efi } \ format{ } \ $lvmignore{ } \ mountpoint{ /boot/efi } \ . \ ... .
并且出现以下错误:“无法在/ boot / efi上挂载vfat文件系统”(从FR翻译过来的错误消息,sry)
当然,它的一个ext4 FS …!
有人可以帮忙吗?
我现在正是在这一点上,logging手动安装从PXEnetworking引导到UEFI VMWare系统提取正确的答案与debconf-get-selections --installer preseed 。 我在结果文件中看到的是:
partman-auto partman-auto/choose_recipe select /lib/partman/recipes-amd64-efi/30atomic partman-base partman/default_filesystem string ext4
其内容应该给你提示如何掌握你的收据:
partman-auto/text/atomic_scheme :: 538 538 1075 free $iflabel{ gpt } $reusemethod{ } method{ efi } format{ } . 128 512 256 ext2 $defaultignore{ } method{ format } format{ } use_filesystem{ } filesystem{ ext2 } mountpoint{ /boot } . 500 10000 -1 $default_filesystem $lvmok{ } method{ format } format{ } use_filesystem{ } $default_filesystem{ } mountpoint{ / } . 100% 512 200% linux-swap $lvmok{ } $reusemethod{ } method{ swap } format{ } .
基于这一点,当我使用partman/early_command为给定的机器生成适当的布局时,我已经编写了脚本:
if [ -d "/sys/firmware/efi/" ]; then debconf-set "partman-auto/expert_recipe" "$( echo -n '600 600 1075 free $iflabel{ gpt } $reusemethod{ } method{ efi } format{ } . ' echo -n '128 512 256 ext2 $defaultignore{ } method{ format } format{ } use_filesystem{ } filesystem{ ext2 } mountpoint{ /boot } . ' echo -n '9216 2000 -1 $default_filesystem $lvmok{ } method{ format } format{ } use_filesystem{ } $default_filesystem{ } mountpoint{ / } .' )" fi
结果得到了自动化:
# parted /dev/sda print free Model: VMware Virtual disk (scsi) Disk /dev/sda: 10.7GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 17.4kB 1049kB 1031kB Free Space 1 1049kB 600MB 599MB fat32 boot, esp 2 600MB 10.7GB 10.1GB ext4 10.7GB 10.7GB 1032kB Free Space