简体   繁体   English

Anaconda 安装程序(Fedora/Cent/RH/Qubes)- 安装前 CLI 磁盘准备

[英]Anaconda Installer (Fedora/Cent/RH/Qubes)- CLI Disk Prep Prior to Install

I'm looking to have root on a RAID BtrFS built on a number of luks disks.我正在寻找在许多 luks 磁盘上构建的 RAID BtrFS 上的 root。 I typically do this on Debian or Ubuntu by preparing my disks before-hand, then running the install into those disks.我通常在 Debian 或 Ubuntu 上执行此操作,方法是预先准备好我的磁盘,然后在这些磁盘中运行安装。 At the end, I need to pivot into the new system to modify crypttab and fstab.最后我需要将pivot进新系统修改crypttab和fstab。

I'm trying the same thing with Qubes, which uses the Anaconda installer.我正在尝试使用 Qubes 做同样的事情,它使用 Anaconda 安装程序。 When I get to the GUI partitioner, the BtrFS appears under the "Unknown" dropdown, but if I try to set "mount point to "/" and then "Update Settings," it errors with "You must create a new filesystem on the root device." (But there is already one there.) If I use "+" instead, I am told "Not enough free space for thin provisioning." The installer is clearly confused about how much space is available: "Available space 992.5 KiB," "Total space 238.47 GiB." In fact, there is 932.35GiB in the RAID'ed BtrFS.当我进入 GUI 分区程序时,BtrFS 出现在“未知”下拉列表下,但如果我尝试将“挂载点设置为“/”然后“更新设置”,则会出现“您必须在根设备。”(但那里已经有一个。)如果我改用“+”,我会被告知“没有足够的可用空间用于精简配置。”安装程序显然对可用空间的大小感到困惑:“可用空间 992.5 KiB,”“总空间 238.47 GiB。”事实上,RAID 的 BtrFS 中有 932.35GiB。

If I just open the luks devices, but put no FS in there, then all /dev/mapper/luks* devices appear in the partitioner under the "Unknown" dropdown, but choosing "New mount points will use the following partitioning scheme: Btrfs," none of the devices allow me to associate a mount point.如果我只是打开 luks 设备,但没有放 FS,那么所有 /dev/mapper/luks* 设备都会出现在“未知”下拉列表下的分区器中,但选择“新挂载点将使用以下分区方案:Btrfs ” 没有任何设备允许我关联挂载点。 It's greyed out, or if I try to use "+" and test it with a single disk, it comes back with an error "Not enough disks for single."它是灰色的,或者如果我尝试使用“+”并使用单个磁盘对其进行测试,它会返回错误“没有足够的磁盘用于单个磁盘”。 (But I have multiple LUKS disks there!) (但我那里有多个 LUKS 磁盘!)

Trying without any prior formatting, neither luks nor Btrfs, I find that the partitioner can't handle bare disks.尝试不进行任何事先格式化,无论是 luks 还是 Btrfs,我发现分区程序无法处理裸磁盘。 It wants a partition table (which I don't).它需要一个分区表(我不需要)。

Does anyone have a way through this?有没有人有办法解决这个问题?

Edit: It appears there are serious issues with this installer .编辑: 这个安装程序似乎存在严重问题

The answer to all of this appears to be: "Don't try to fight the Anaconda, as you will lose."所有这一切的答案似乎是:“不要试图与 Anaconda 对抗,因为你输。” Despite the access to a root terminal (Control-Alt-F1 reaches a tmux session, Control-b 2, reaches a terminal with root privileges), you must return to the graphical installer, which is too limited to allow any headway, particularly with BtrFS disks.尽管可以访问根终端(Control-Alt-F1 到达 tmux session,Control-b 2 到达具有根权限的终端),但您必须返回到图形安装程序,该安装程序太有限,无法取得任何进展,尤其是BtrFS 磁盘。 Anaconda sees BtrFS not as a filesystem, but as a device, and this makes problems insurmountable. Anaconda 认为 BtrFS 不是文件系统,而是设备,这使得问题无法解决。

The solution is to do a dummy install and then modify all disks, editing crypttab, fstab, /etc/default/grub as needed.解决方案是进行虚拟安装,然后修改所有磁盘,根据需要编辑 crypttab、fstab、/etc/default/grub。 Then pivot in and run dracut -f , along with grub2-mkinstall if needed.然后 pivot 进入并运行dracut -f ,如果需要,连同grub2-mkinstall一起运行。 Also, if necessary, grub2-install .此外,如有必要, grub2-install

One advantage of BtrFS in this process, is that it's possible to avoid having to use a live-DVD or Anaconda's rescue shell to make changes in a system "at rest", afterward pivoting in to run dracut et al.在此过程中,BtrFS 的一个优势是可以避免必须使用 live-DVD 或 Anaconda 的救援 shell 在“静止”系统中进行更改,然后转入运行dracut等人。 You'd just use btrfs device add to add a device to the root, and then btrfs device remove the original.您只需使用btrfs device add将设备添加到根目录,然后btrfs device remove原始设备。 Then make relevant changes to the original partitions, afterwards reversing the add / remove .然后对原始分区进行相关更改,然后反转add / remove So it's possible to make changes by moving back and forth from one disk to the other.因此,可以通过从一个磁盘到另一个磁盘来回移动来进行更改。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM