unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* failure to create disk-image
@ 2020-04-01 14:52 Roy Lemmon
  2020-04-01 17:53 ` Ricardo Wurmus
  2020-04-23 20:21 ` Ludovic Courtès
  0 siblings, 2 replies; 3+ messages in thread
From: Roy Lemmon @ 2020-04-01 14:52 UTC (permalink / raw)
  To: help-guix

Hi,

I'm trying to create a disk image of my current laptop running guix to burn
to a usb stick and use it to install guix on another laptop.

I use the command:

$ guix system disk-image laptop-config.scm

However the process fails after some time with:

****************************************************************

creating FAT partition...
mkfs.fat 4.1 (2017-01-24)
mounting root partition...
[ 1989.873735] EXT4-fs (vda1): mounted filesystem with ordered data mode.
Opts: (null)
installing bootloader...
Backtrace:
           1 (primitive-load "/gnu/store/abqhniaagz11v7w8kz83ha1s6fc…")
In ./gnu/build/vm.scm:
    590:6  0 (initialize-hard-disk "/dev/vda" #:bootloader-package _ …)

./gnu/build/vm.scm:590:6: In procedure initialize-hard-disk:
Throw to key `srfi-34' with args `(#<condition &message [message:
"'/gnu/store/xlcbi7dc89n4wvyz4jk6j0g4590ymi6q-grub-efi-2.04/sbin/grub-install
--boot-directory /fs/boot --bootloader-id=Guix --efi-directory /fs/dev/vda'
exited with status 1; output follows:\n\n
 /gnu/store/xlcbi7dc89n4wvyz4jk6j0g4590ymi6q-grub-efi-2.04/sbin/grub-install:
error:
/gnu/store/xlcbi7dc89n4wvyz4jk6j0g4590ymi6q-grub-efi-2.04/lib/grub/i386-pc/modinfo.sh
doesn't exist. Please specify --target or --directory.\n"] 7fe479410240>)'.
[ 1990.040283] Unregister pv shared memory for cpu 0
[ 1990.043055] reboot: Restarting system
[ 1990.043888] reboot: machine restart
file-size:
/gnu/store/0y63pfqi2626nwsjbksrci1jyd62cxx8-nss-certs-3.50/etc/ssl/certs/NetLock_Arany_=Class_Gold=_F??tan??s??tv??ny:2.6.73.65.44.228.0.16.pem:
No such file or directory
file-size:
/gnu/store/4a7cjr0x0b7fsmrfm5ss4a2n6nyzcpvp-profile/etc/ssl/certs/NetLock_Arany_=Class_Gold=_F??tan??s??tv??ny:2.6.73.65.44.228.0.16.pem:
No such file or directory
Backtrace:
           2 (primitive-load "/gnu/store/ib9ybh261pbqlcw6vqnffq0hyvl?")
In ./gnu/build/vm.scm:
   191:12  1 (load-in-linux-vm _ #:output _ #:qemu _ #:memory-size _ ?)
In unknown file:
           0 (scm-error misc-error #f "~A ~S" ("guest VM code ex?" ?) ?)

ERROR: In procedure scm-error:
guest VM code exited with a non-zero status 256

****************************************************************

I am not sure what is going wrong. Does anyone have a hint for me ?

Thanks
Roy.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: failure to create disk-image
  2020-04-01 14:52 failure to create disk-image Roy Lemmon
@ 2020-04-01 17:53 ` Ricardo Wurmus
  2020-04-23 20:21 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ricardo Wurmus @ 2020-04-01 17:53 UTC (permalink / raw)
  To: Roy Lemmon; +Cc: help-guix


Roy Lemmon <roy@roylemmon.com> writes:

> file-size:
> /gnu/store/0y63pfqi2626nwsjbksrci1jyd62cxx8-nss-certs-3.50/etc/ssl/certs/NetLock_Arany_=Class_Gold=_F??tan??s??tv??ny:2.6.73.65.44.228.0.16.pem:
> No such file or directory
> file-size:
> /gnu/store/4a7cjr0x0b7fsmrfm5ss4a2n6nyzcpvp-profile/etc/ssl/certs/NetLock_Arany_=Class_Gold=_F??tan??s??tv??ny:2.6.73.65.44.228.0.16.pem:
> No such file or directory

This looks like a LANG / locale problem.  These question marks should be
some other characters.  Since they are not the files cannot be found.

-- 
Ricardo

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: failure to create disk-image
  2020-04-01 14:52 failure to create disk-image Roy Lemmon
  2020-04-01 17:53 ` Ricardo Wurmus
@ 2020-04-23 20:21 ` Ludovic Courtès
  1 sibling, 0 replies; 3+ messages in thread
From: Ludovic Courtès @ 2020-04-23 20:21 UTC (permalink / raw)
  To: Roy Lemmon; +Cc: help-guix

Hi Roy,

Roy Lemmon <roy@roylemmon.com> skribis:

> installing bootloader...
> Backtrace:
>            1 (primitive-load "/gnu/store/abqhniaagz11v7w8kz83ha1s6fc…")
> In ./gnu/build/vm.scm:
>     590:6  0 (initialize-hard-disk "/dev/vda" #:bootloader-package _ …)
>
> ./gnu/build/vm.scm:590:6: In procedure initialize-hard-disk:
> Throw to key `srfi-34' with args `(#<condition &message [message:
> "'/gnu/store/xlcbi7dc89n4wvyz4jk6j0g4590ymi6q-grub-efi-2.04/sbin/grub-install
> --boot-directory /fs/boot --bootloader-id=Guix --efi-directory /fs/dev/vda'
> exited with status 1; output follows:\n\n
>  /gnu/store/xlcbi7dc89n4wvyz4jk6j0g4590ymi6q-grub-efi-2.04/sbin/grub-install:
> error:
> /gnu/store/xlcbi7dc89n4wvyz4jk6j0g4590ymi6q-grub-efi-2.04/lib/grub/i386-pc/modinfo.sh
> doesn't exist. Please specify --target or --directory.\n"] 7fe479410240>)'.

I think the key issue here was GRUB failing to install itself.

Did you eventually find out wha was going wrong?

It looks like ‘grub-efi’ was chosen whereas the VM is actually “legacy
BIOS”, not EFI.

Thanks,
Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-23 20:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-04-01 14:52 failure to create disk-image Roy Lemmon
2020-04-01 17:53 ` Ricardo Wurmus
2020-04-23 20:21 ` Ludovic Courtès

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).