mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +03:00
Fix the LVM installer test
GRUB 2 doesn't want to boot off a LVM disk: machine# installing the GRUB 2 boot loader on /dev/vda... machine# Path `/boot/grub' is not readable by GRUB on boot. Installation is impossible. Aborting. machine# /nix/store/7yc535h1lim1a5gkhjb3fr6c8193dv8w-install-grub.pl: installation of GRUB on /dev/vda failed In theory GRUB 2 supports booting from LVM, but we probably need to generate the right grub.conf (see https://wiki.archlinux.org/index.php/GRUB2#LVM). http://hydra.nixos.org/build/2904680
This commit is contained in:
parent
1a2b3cc5e4
commit
87ae768665
2 changed files with 13 additions and 10 deletions
|
@ -29,10 +29,9 @@ sub new {
|
|||
$startCommand =
|
||||
"qemu-kvm -m 384 " .
|
||||
"-net nic,model=virtio \$QEMU_OPTS ";
|
||||
my $iface = $args->{hdaInterface} or "virtio";
|
||||
my $iface = $args->{hdaInterface} || "virtio";
|
||||
$startCommand .= "-drive file=" . Cwd::abs_path($args->{hda}) . ",if=$iface,boot=on,werror=report "
|
||||
if defined $args->{hda};
|
||||
|
||||
$startCommand .= "-cdrom $args->{cdrom} "
|
||||
if defined $args->{cdrom};
|
||||
$startCommand .= $args->{qemuFlags} || "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue