Ask your questions here.
Post a reply
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Compiling UEFI ISO, getting errors.

Sun Feb 22, 2015 11:48 am

Seems i cant reply on old topic, so was forced to make a new one. anyway here is my issue :
I got this error when compiling ISO :

Code:
  `ls: cannot access /home/snapshot/*.iso: No such file or directory
  file has vanished: "/home/~/.config/variety/wallpaper/wallpaper-clock-963bb8dc949332202d72ad87cdef8251.jpg"
  rsync warning: some files vanished before they could be transferred (code 24) at main.c(1183) [sender=3.1.1]
  sed: can't read /home/work/myfs/home/~/.config/geany/geany.conf: No such file or directory
  sed: can't read /home/work/myfs/ etc /ssh/sshd_config: No such file or directory
  sed: can't read /home/work/myfs/ etc /ssh/sshd_config: No such file or directory
  sed: can't read /home/work/myfs/ etc /ssh/sshd_config: No such file or directory
  rm: cannot remove ‘/home/work/iso/pkglist*’: No such file or directory
  /usr/lib/refractasnapshot/efi-image.sh: 67: /usr/lib/refractasnapshot/efi-image.sh: grub-mkimage: not found
  cp: cannot stat ‘/usr/share/grub/*pf2’: No such file or directory
  /usr/bin/refractasnapshot: line 774: syntax error near unexpected token `)'
  /usr/bin/refractasnapshot: line 774: ` -boot-load-size 4 -boot-info-table -o "$snapshot_dir"/"$filename" ${uefi_opt} iso/)'`

i know most of those are just warnings, but the syntax error i tried to fix, i removed the ")" bracket at end of the line (-boot-load-size 4 -boot-info-table -o "$snapshot_dir"/"$filename" ${uefi_opt} iso/) ), so new line looks like this : -boot-load-size 4 -boot-info-table -o "$snapshot_dir"/"$filename" ${uefi_opt} iso/ then the iso compiles. this is the output the second time around :

Code:
  `ls: cannot access /home/snapshot/*.iso: No such file or directory
  file has vanished: "/home/~/.config/variety/wallpaper/wallpaper-clock-6391ed1693c55eecc982a3e971c64823.jpg"
  rsync warning: some files vanished before they could be transferred (code 24) at main.c(1183) [sender=3.1.1]
  sed: can't read /home/work/myfs/home/~/.config/geany/geany.conf: No such file or directory
  sed: can't read /home/work/myfs/ etc /ssh/sshd_config: No such file or directory
  sed: can't read /home/work/myfs/ etc /ssh/sshd_config: No such file or directory
  sed: can't read /home/work/myfs/ etc /ssh/sshd_config: No such file or directory
  rm: cannot remove ‘/home/work/iso/pkglist*’: No such file or directory
  xorriso 1.3.2 : RockRidge filesystem manipulator, libburnia project.
  Drive current: -outdev 'stdio:/home/snapshot/snapshot-20150222_1159.iso'
  Media current: stdio file, overwriteable
  Media status : is blank
  Media summary: 0 sessions, 0 data blocks, 0 data, 21.2g free
  xorriso : WARNING : -volid text does not comply to ISO 9660 / ECMA 119 rules
  Added to ISO image: directory '/'='/home/work/boot1'
  xorriso : UPDATE : 257 files added in 1 seconds
  Added to ISO image: directory '/'='/home/work/iso'
  xorriso : UPDATE : 308 files added in 1 seconds
  xorriso : NOTE : Copying to System Area: 432 bytes from file '/usr/lib/ISOLINUX/isohdpfx.bin'
  libisofs: NOTE : Automatically adjusted MBR geometry to 1018/84/32
  libisofs: NOTE : Aligned image size to cylinder size by 588 blocks
  xorriso : UPDATE : 0.15% done
  xorriso : UPDATE : 2.39% done
  xorriso : UPDATE : 3.59% done, estimate finish Sun Feb 22 12:12:22 2015
  xorriso : UPDATE : 3.59% done, estimate finish Sun Feb 22 12:12:50 2015
  xorriso : UPDATE : 3.59% done, estimate finish Sun Feb 22 12:13:15 2015
  xorriso : UPDATE : 3.94% done, estimate finish Sun Feb 22 12:13:33 2015
  xorriso : UPDATE : 4.11% done, estimate finish Sun Feb 22 12:13:50 2015
  xorriso : UPDATE : 4.57% done, estimate finish Sun Feb 22 12:13:57 2015
  xorriso : UPDATE : 4.79% done, estimate finish Sun Feb 22 12:14:11 2015
  xorriso : UPDATE : 5.82% done, estimate finish Sun Feb 22 12:13:58 2015
  xorriso : UPDATE : 6.87% done, estimate finish Sun Feb 22 12:13:48 2015
  xorriso : UPDATE : 8.04% done, estimate finish Sun Feb 22 12:13:39 2015
  xorriso : UPDATE : 8.89% done, estimate finish Sun Feb 22 12:13:37 2015
  xorriso : UPDATE : 9.58% done, estimate finish Sun Feb 22 12:14:18 2015
  xorriso : UPDATE : 10.78% done, estimate finish Sun Feb 22 12:14:02 2015
  xorriso : UPDATE : 11.97% done, estimate finish Sun Feb 22 12:13:52 2015
  xorriso : UPDATE : 13.64% done, estimate finish Sun Feb 22 12:13:36 2015
  xorriso : UPDATE : 14.37% done, estimate finish Sun Feb 22 12:13:37 2015
  xorriso : UPDATE : 15.57% done, estimate finish Sun Feb 22 12:13:30 2015
  xorriso : UPDATE : 17.49% done, estimate finish Sun Feb 22 12:13:19 2015
  xorriso : UPDATE : 19.16% done, estimate finish Sun Feb 22 12:13:13 2015
  xorriso : UPDATE : 20.12% done, estimate finish Sun Feb 22 12:13:13 2015
  xorriso : UPDATE : 21.55% done, estimate finish Sun Feb 22 12:13:09 2015
  xorriso : UPDATE : 21.55% done, estimate finish Sun Feb 22 12:13:14 2015
  xorriso : UPDATE : 23.20% done, estimate finish Sun Feb 22 12:12:56 2015
  xorriso : UPDATE : 24.90% done, estimate finish Sun Feb 22 12:12:53 2015
  xorriso : UPDATE : 26.34% done, estimate finish Sun Feb 22 12:12:52 2015
  xorriso : UPDATE : 26.34% done, estimate finish Sun Feb 22 12:12:57 2015
  xorriso : UPDATE : 28.74% done, estimate finish Sun Feb 22 12:12:51 2015
  xorriso : UPDATE : 29.30% done, estimate finish Sun Feb 22 12:12:53 2015
  xorriso : UPDATE : 31.13% done, estimate finish Sun Feb 22 12:12:51 2015
  xorriso : UPDATE : 31.84% done, estimate finish Sun Feb 22 12:12:52 2015
  xorriso : UPDATE : 33.53% done, estimate finish Sun Feb 22 12:12:50 2015
  xorriso : UPDATE : 33.53% done, estimate finish Sun Feb 22 12:12:54 2015
  xorriso : UPDATE : 35.65% done, estimate finish Sun Feb 22 12:12:50 2015
  xorriso : UPDATE : 35.92% done, estimate finish Sun Feb 22 12:12:54 2015
  xorriso : UPDATE : 37.12% done, estimate finish Sun Feb 22 12:12:54 2015
  xorriso : UPDATE : 38.63% done, estimate finish Sun Feb 22 12:12:52 2015
  xorriso : UPDATE : 40.55% done, estimate finish Sun Feb 22 12:12:50 2015
  xorriso : UPDATE : 40.71% done, estimate finish Sun Feb 22 12:12:53 2015
  xorriso : UPDATE : 41.91% done, estimate finish Sun Feb 22 12:12:52 2015
  xorriso : UPDATE : 42.60% done, estimate finish Sun Feb 22 12:12:54 2015
  xorriso : UPDATE : 43.11% done, estimate finish Sun Feb 22 12:12:55 2015
  xorriso : UPDATE : 43.11% done, estimate finish Sun Feb 22 12:12:59 2015
  xorriso : UPDATE : 44.84% done, estimate finish Sun Feb 22 12:12:56 2015
  xorriso : UPDATE : 45.50% done, estimate finish Sun Feb 22 12:13:04 2015
  xorriso : UPDATE : 47.80% done, estimate finish Sun Feb 22 12:12:58 2015
  xorriso : UPDATE : 48.18% done, estimate finish Sun Feb 22 12:13:00 2015
  xorriso : UPDATE : 50.29% done, estimate finish Sun Feb 22 12:12:56 2015
  xorriso : UPDATE : 52.69% done, estimate finish Sun Feb 22 12:12:52 2015
  xorriso : UPDATE : 53.60% done, estimate finish Sun Feb 22 12:12:52 2015
  xorriso : UPDATE : 53.89% done, estimate finish Sun Feb 22 12:12:55 2015
  xorriso : UPDATE : 55.61% done, estimate finish Sun Feb 22 12:12:53 2015
  xorriso : UPDATE : 57.48% done, estimate finish Sun Feb 22 12:12:51 2015
  xorriso : UPDATE : 58.68% done, estimate finish Sun Feb 22 12:12:51 2015
  xorriso : UPDATE : 59.87% done, estimate finish Sun Feb 22 12:12:50 2015
  xorriso : UPDATE : 61.94% done, estimate finish Sun Feb 22 12:12:44 2015
  xorriso : UPDATE : 62.68% done, estimate finish Sun Feb 22 12:12:45 2015
  xorriso : UPDATE : 64.66% done, estimate finish Sun Feb 22 12:12:44 2015
  xorriso : UPDATE : 65.86% done, estimate finish Sun Feb 22 12:12:44 2015
  xorriso : UPDATE : 67.06% done, estimate finish Sun Feb 22 12:12:44 2015
  xorriso : UPDATE : 68.26% done, estimate finish Sun Feb 22 12:12:45 2015
  xorriso : UPDATE : 69.26% done, estimate finish Sun Feb 22 12:12:45 2015
  xorriso : UPDATE : 70.65% done, estimate finish Sun Feb 22 12:12:45 2015
  xorriso : UPDATE : 73.05% done, estimate finish Sun Feb 22 12:12:43 2015
  xorriso : UPDATE : 73.57% done, estimate finish Sun Feb 22 12:12:44 2015
  xorriso : UPDATE : 74.59% done, estimate finish Sun Feb 22 12:12:46 2015
  xorriso : UPDATE : 75.44% done, estimate finish Sun Feb 22 12:12:48 2015
  xorriso : UPDATE : 76.64% done, estimate finish Sun Feb 22 12:12:47 2015
  xorriso : UPDATE : 77.84% done, estimate finish Sun Feb 22 12:12:48 2015
  xorriso : UPDATE : 79.35% done, estimate finish Sun Feb 22 12:12:46 2015
  xorriso : UPDATE : 80.23% done, estimate finish Sun Feb 22 12:12:47 2015
  xorriso : UPDATE : 81.36% done, estimate finish Sun Feb 22 12:12:48 2015
  xorriso : UPDATE : 82.63% done, estimate finish Sun Feb 22 12:12:47 2015
  xorriso : UPDATE : 83.82% done, estimate finish Sun Feb 22 12:12:47 2015
  xorriso : UPDATE : 85.02% done, estimate finish Sun Feb 22 12:12:48 2015
  xorriso : UPDATE : 86.81% done, estimate finish Sun Feb 22 12:12:46 2015
  xorriso : UPDATE : 88.61% done, estimate finish Sun Feb 22 12:12:46 2015
  xorriso : UPDATE : 88.61% done, estimate finish Sun Feb 22 12:12:47 2015
  xorriso : UPDATE : 90.23% done, estimate finish Sun Feb 22 12:12:47 2015
  xorriso : UPDATE : 91.82% done, estimate finish Sun Feb 22 12:12:46 2015
  xorriso : UPDATE : 92.42% done, estimate finish Sun Feb 22 12:12:47 2015
  xorriso : UPDATE : 94.19% done, estimate finish Sun Feb 22 12:12:46 2015
  xorriso : UPDATE : 94.60% done, estimate finish Sun Feb 22 12:12:47 2015
  xorriso : UPDATE : 95.80% done, estimate finish Sun Feb 22 12:12:47 2015
  xorriso : UPDATE : 97.00% done, estimate finish Sun Feb 22 12:12:47 2015
  xorriso : UPDATE : 98.49% done
  xorriso : UPDATE : 99.39% done
  ISO image produced: 684096 sectors
  Written to medium : 684096 sectors at LBA 0
  Writing to 'stdio:/home/snapshot/snapshot-20150222_1159.iso' completed successfully.`

However, now i have a different problem. when i boot in UEFI mode i see the menu, and it shows the boot options, but when you click to boot it outputs this error :

Code:
  `Error, cant find command 'linux'
  error, cant find command 'initrd'
  press any key to continue...`

pressing any key returns to boot menu. The iso does boot fine in normal mode, but not booting in UEFI mode, any ideas how to fix this ?
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Compiling UEFI ISO, getting errors.

Sun Feb 22, 2015 1:17 pm

Sorry about the stray closing parenthesis. Guess I need to fix that and upload new debs.
No ideas yet. At some point in my testing, I got the grub prompt that didn't recognize grub commands. I think that's when I gave up.
This looks odd:

Code:
  `file has vanished: "/home/~/.config/...`

I don't think I've ever seen the 'file has vanished' error. Did you add something to the excludes file that has "/home/~/" in it? That looks wrong, because "~" already includes /home in its meaning.
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Compiling UEFI ISO, getting errors.

Sun Feb 22, 2015 1:17 pm

I use variety wallpaper changer that creates temp files, it is saying vanish cause the filename keeps changing. so that warning can be ignored.
the real problem is the boot issue.
i check in grub boot screen at bootup, i pushed "E" to see parameters, here they are :

Code:
  `setparams Live (default)
  linux /live/vmlinuz boot=live ip=frommedia union=aufs --quiet
  initrd /live/initrd.img`

I checked the ISO and the live folder is there with the initrd.img file and the vmlinuz file ...
Only other thing i can think of to to is to grab the Solydx iso of schoelje and compare the folders and entries to his, because i know he has efi working...
if that doesnt work, i am unsure what to check next ?
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Compiling UEFI ISO, getting errors.

Sun Feb 22, 2015 2:29 pm

Here's a comparison of debian-testing-amd64-xfce-CD-1.iso and a snapshot I made with the beta refractasnapshot. I'll compare the iso that you linked later after it's done re-downloading. I only got part of it before. That'll be done in an hour. Meanwhile, I have to go out and move some snow before it gets rained on and re-frozen.

Code:
  `debian-testing-amd64-xfce-CD-1.iso
  tree iso/efi/
  iso/efi/
  └── boot
  └── bootx64.efi
  tree iso/boot/grub/
  iso/boot/grub/
  ├── efi.img
  ├── font.pf2
  ├── grub.cfg
  ├── theme
  │ ├── 1
  │ └── 1-1
  └── x86_64-efi
  ├── acpi.mod
  ├── adler32.mod
  ├── acpi.mod
  ├── (bunch of modules)
  snapshot of jessie-sysv made on 2/11
  tree iso3/efi/
  iso3/efi/ [error opening dir]
  tree iso3/EFI/
  iso3/EFI/
  └── BOOT
  └── BOOTX64.EFI
  tree iso3/boot/grub/
  iso3/boot/grub/
  ├── default
  │ ├── ascii.pf2
  │ ├── euro.pf2
  │ └── unicode.pf2
  ├── efi.img
  ├── grub.cfg
  ├── locale
  │ ├── ast.mo
  │ ├── ca.mo
  │ ├── da.mo
  │ ├── (bunch of language files)
  │
  │
  ├── theme
  │ └── 1
  └── x86_64-efi
  ├── acpi.mod
  ├── adler32.mod
  ├── ahci.mod
  ├── (bunch of modules)
  `

raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Compiling UEFI ISO, getting errors.

Sun Feb 22, 2015 3:32 pm

well here is another one to add to your list. I downloaded the Solydk ISO, and i have extracted all the folders into a zip file. the only thing now missing in the zip is the filesystem.squashfs. ( i did leave a empty document to show where it was ).
https://www.adrive.com/public/p9Wm7z/SolydX_EFI_ISO_Layout.zip 30mb file.
Alternative download link : https://mega.co.nz/#!qE5URKLC!kg7fd6LCiq28M6BQUJ1Q8SftFoG5_ZGlG9_jw0WwA3I
Just grab that zip from link and extract somewhere, it is their complete layout of debian testing remastered ISO, not sure if it will help you, but who knows, cant hurt to look.
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Compiling UEFI ISO, getting errors.

Mon Feb 23, 2015 12:57 am

when i used the vmlinuz and initrd.img from solydxk's iso ( from the links above ) and placed it in my ISO and overwrite existing ones ( inside the live folder ). then it boots, it gets stuck while loading kernel on "installing knfsd" , but it boots quite far in before it gets stuck. Doesnt help me much because it still doesnt boot to desktop ...
I discovered when comparing his file sizes to mine there was quite a different in size, hence i thought i would try his. so seems the vmlinuz and initrd.img is not being generated properly ... ?
O and i used his bootx64.efi file as well.
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Compiling UEFI ISO, getting errors.

Mon Feb 23, 2015 1:19 am

I'm gonna guess that solydxk is based on jessie or sid and does not have systemd installed. We've encountered the boot hang. There's an edit for /usr/share/initramfs-tools/init followed by rebuilding initrd to get such a snapshot to boot completely. I added it to a recent version of refractasnapshot - if the host system does not have systemd, it patches the file. This is not related to uefi.
I think you could unpack, edit and repack the initrd you have. Copy the initrd.img to your home or somewhere else. Make a solydxk_initrd subdirectory of wherever you put the initrd. Change to that subdirectory and run

Code:
  `fakeroot zcat ../initrd.img | cpio -i`

The initrd will be unpacked into a subdir called 'extracted'.
Edit extracted/init around line 317 to change

Code:
  `# Move virtual filesystems over to the real filesystem
  mount -n -o move /sys ${rootmnt}/sys
  mount -n -o move /proc ${rootmnt}/proc
  `

to this:

Code:
  `# Move virtual filesystems over to the real filesystem
  mount -n -o move /sys ${rootmnt}/sys
  nuke /sys
  ln -s ${rootmnt}/sys /sys
  mount -n -o move /proc ${rootmnt}/proc
  nuke /proc
  ln -s ${rootmnt}/proc /proc`

Then repack the initrd with

Code:
  `fakeroot find . -print0 | cpio -0 -H newc -o | gzip -c > ../custom_initrd.img`

If you rename it like that, you'll also have to edit your boot menu. If you keep the name initrd.img, I assume the original that you copied will be overwritten.
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Compiling UEFI ISO, getting errors.

Mon Feb 23, 2015 7:26 am

mine is already :

Code:
  `mount -n -o move /sys ${rootmnt}/sys
  nuke /sys
  ln -s ${rootmnt}/sys /sys
  mount -n -o move /proc ${rootmnt}/proc
  nuke /proc
  ln -s ${rootmnt}/proc /proc`

and the solydx initrd.img wont unpack, giving my invalid format errors...
seems the problem is that refracta is not generating the initrd and vmlinuz files correctly on this 386/x6 debian iso ( the one i previously linked that boots in VB ). ( http://ftp.acc.umu.se/mirror/cdimage/un ... build3.iso )
raymerjacque

- raymerjacque
- Posts: 111
- Joined: Sun Nov 03, 2013 9:37 am

## Re: Compiling UEFI ISO, getting errors.

Mon Feb 23, 2015 10:32 am

one other question, on which version of debian is it confirmed that the current refracta boots uefi correctly ? because at this point clearly this hybrid 32/x64 debian 8 build is not working and if i can simply backup most of my stuff and rather rebuild on a different debian base that works i really dont mind doing that, it will set me back on my schedule, but rather that than sturggle with this and future builds i spin off from this one. is the standard Debian netinstall ok to use ? the current version on their site is 7.8.0.
fsmithred

- fsmithred
- Posts: 2101
- Joined: Wed Mar 09, 2011 9:13 pm

## Re: Compiling UEFI ISO, getting errors.

Mon Feb 23, 2015 11:22 am

Code:
  `solyd_initrd/work$ fakeroot zcat ../initrd.img | cpio -i
  gzip: ../initrd.img: not in gzip format
  cpio: premature end of archive`

So I tried it again without the z in zcat, and it unpacks. Drill down a few levels and you'll find that the only thing in there is intel microcode (GenuineIntel.bin). I don't know what to do with that.
The fact that your own initramfs-tools/init has been patched is only relevant if you're running update-initramfs and making a snapshot on your own system.
The debian-jessie-UEFI-testing-netinst-i386-amd64-build3.iso has initrd.gz, which unpacks ok, but the init is very small and looks like it's just enough to start the installation environment.
Post a reply
Jump to:

Powered by phpBB © phpBB Group.

phpBB Mobile / SEO by Artodia.