You are not logged in.

#1 2022-02-12 02:53:51

Bootstrapper
Member
Registered: 2022-02-12
Posts: 2

Problems getting linux-lts on an Archiso

My current project is getting Arch+ZFS on root running on a VM to play around with before sticking it on a server and laptop. The current error that I'm not making sense of is:

During the archiso process, mkinitcpio fails with the error:

(12/17) Updating linux initcpios...
/etc/mkinitcpio.d/linux-lts.preset: line 4: unexpected EOF while looking for matching `''
/etc/mkinitcpio.d/linux-lts.preset: line 7: syntax error: unexpected end of file
==> ERROR: Failed to load preset: `/etc/mkinitcpio.d/linux-lts.preset'
error: command failed to execute correctly
(13/17) Reloading system bus configuration...
  Skipped: Running in chroot.
(14/17) Warn about old perl modules
(15/17) Updating the info directory file...
(16/17) Uncommenting all mirrors in /etc/pacman.d/mirrorlist...
(17/17) Work around FS#49347 by removing custom pacman hooks that are only required during ISO build...
[mkarchiso] INFO: Done! Packages installed successfully.
[mkarchiso] INFO: Creating version files...
[mkarchiso] INFO: Done!
[mkarchiso] INFO: Copying /etc/skel/* to user homes...
[mkarchiso] INFO: Done!
[mkarchiso] INFO: Creating a list of installed packages on live-enviroment...
[mkarchiso] INFO: Done!
[mkarchiso] INFO: Setting up SYSLINUX for BIOS booting from a disk...
[mkarchiso] INFO: Preparing kernel and initramfs for the ISO 9660 file system...
install: cannot stat '/root/archlive/work/x86_64/airootfs/boot/initramfs-*.img': No such file or directory

But my preset file looks like this:

PRESETS=('archiso')

ALL_kver='boot/vmlinuz-linux-lts'
ALL_config='/etc/mkinitcpio.conf'

archiso_image="/boot/initramfs-linux-lts.img"

Is the error misleading, or am I missing something obvious? Don't make me use Cunningham's Law...

EDIT: Changed images to code as per Trilby's suggestion - Files in full:
log
linux-lts.preset

Last edited by Bootstrapper (2022-02-12 05:30:58)

Offline

#2 2022-02-12 03:03:39

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,591
Website

Re: Problems getting linux-lts on an Archiso

Do not post images of text - post the actual text in code tags.  I can't tell if it's just the font used there or not, but the charaters that should be apostrophe-single-quotes look odd... more importanlty, only *some* of them look odd, so I gather you copy and pasted some of that from content of a rendered web page.  Some other character in place of what should be an character with the ascii of 39 would explain your symptoms.

Last edited by Trilby (2022-02-12 03:03:59)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2022-02-12 03:10:57

Bootstrapper
Member
Registered: 2022-02-12
Posts: 2

Re: Problems getting linux-lts on an Archiso

Hi Trilby,

Thanks for the advice on posting properly, I've updated my original post.

As for copy-pasting, I hand-typed those in, as I don't have the necessary vmware-guest-additions installed to copy and paste

Perhaps the file triggering errors actually exists somehwere else, and is built on the file I wrote? That's the only source of the problem that I can think of at the moment.

EDIT:
Here's the "reference file" that mine was based off, structure is the same.
https://gitlab.archlinux.org/archlinux/ … nux.preset

Last edited by Bootstrapper (2022-02-12 03:15:52)

Offline

#4 2022-02-13 04:42:47

qinohe
Member
From: Netherlands
Registered: 2012-06-20
Posts: 1,494

Re: Problems getting linux-lts on an Archiso

/etc/mkinitcpio.d/linux-lts.preset: line 4: unexpected EOF while looking for matching `''

Should have given it away...

ALL_kver='boot/vmlinuz-linux-lts'

should be

ALL_kver='/boot/vmlinuz-linux-lts'

edit: I'm sure I'm wrong about the error message but I'm good as sure your linux-lts.preset is wrong because of:

install: cannot stat '/root/archlive/work/x86_64/airootfs/boot/initramfs-*.img': No such file or directory

The one you posted should be okay with that line I posted so your linux-lts.preset should look like this:

PRESETS=('archiso')

ALL_kver='/boot/vmlinuz-linux-lts'
ALL_config='/etc/mkinitcpio.conf'

archiso_image="/boot/initramfs-linux-lts.img"

Last edited by qinohe (2022-02-13 05:08:22)

Offline

Board footer

Powered by FluxBB