You are not logged in.

#1 2021-08-01 14:35:08

ventshek
Member
Registered: 2021-07-19
Posts: 9

[SOLVED] Archiso, ext4 failing to create. [SOLVED]

Issue is, fails to create iso when using the ext4+squashfs option in profiledef.sh to create an ISO, having worked perfectly previously...

Really stuck here, please trust me ive given all packages, configs and extraneous settings a good brute forcing.

What i have tried:

-Resetting all archiso configs and testing without the ext4+squashfs, this still works. In addition to attempting with some of my older configs i can be sure it is ext4 specific, that is the ext4 option in profiledef.sh.
-All packages and their configs have been updated/reset
-Installed git versions archiso e2fs and some others
-did edit some of the app configs but all are vanilla now.


What I know:
-e2fsprogs has updated recently and archiso.
-can be pretty sure this isnt a scuffed config...
-How angry my gf is for my ignoring her all day...
-not much else soz...

What I don't know:
most everything else...

Here is the end of my log file:

:: Running post-transaction hooks...
( 1/29) Creating system user accounts...
Creating user named (BIND DNS Server) with uid 40 and gid 40.
Creating user brltty (Braille Device Daemon) with uid 966 and gid 973.
Creating user dhcpcd (dhcpcd privilege separation) with uid 972 and gid 972.
Creating user dnsmasq (dnsmasq daemon) with uid 971 and gid 971.
Creating user nbd (Network Block Device) with uid 968 and gid 968.
Creating user nvidia-persistenced (NVIDIA Persistence Daemon) with uid 143 and gid 143.
Creating user tss (tss user for tpm2) with uid 967 and gid 967.
( 2/29) Updating journal message catalog...
( 3/29) Reloading system manager configuration...
  Skipped: Running in chroot.
( 4/29) Updating udev hardware database...
( 5/29) Applying kernel sysctl settings...
  Skipped: Running in chroot.
( 6/29) Creating temporary files...
Failed to open file "/sys/devices/system/cpu/microcode/reload": Read-only file system
error: command failed to execute correctly
( 7/29) Reloading device manager configuration...
  Skipped: Running in chroot.
( 8/29) Arming ConditionNeedsUpdate...
( 9/29) Updating fontconfig configuration...
(10/29) Uncommenting en_US.UTF-8 locale and running locale-gen...
Generating locales...
  en_US.UTF-8... done
Generation complete.
(11/29) Rebuilding certificate stores...
(12/29) Updating module dependencies...
(13/29) Updating linux initcpios...
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'archiso'
  -> -k /boot/vmlinuz-linux -c /etc/mkinitcpio.conf -g /boot/initramfs-linux.img
==> Starting build: 5.13.6-arch1-1
  -> Running build hook: [base]
  -> Running build hook: [udev]
  -> Running build hook: [modconf]
  -> Running build hook: [memdisk]
  -> Running build hook: [archiso_shutdown]
  -> Running build hook: [archiso]
  -> Running build hook: [archiso_loop_mnt]
  -> Running build hook: [archiso_pxe_common]
==> WARNING: Possibly missing firmware for module: softing_cs
==> ERROR: file not found: `/usr/lib/initcpio/ipconfig'
  -> Running build hook: [archiso_pxe_nbd]
  -> Running build hook: [archiso_pxe_http]
  -> Running build hook: [archiso_pxe_nfs]
==> ERROR: file not found: `/usr/lib/initcpio/nfsmount'
  -> Running build hook: [archiso_kms]
  -> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: wd719x
==> WARNING: Possibly missing firmware for module: aic94xx
==> WARNING: Possibly missing firmware for module: xhci_pci
  -> Running build hook: [filesystems]
  -> Running build hook: [keyboard]
==> Generating module dependencies
==> Creating xz-compressed initcpio image: /boot/initramfs-linux.img
==> WARNING: errors were encountered during the build. The image may not be complete.
error: command failed to execute correctly
(14/29) Reloading system bus configuration...
  Skipped: Running in chroot.
(15/29) Warn about old perl modules
(16/29) Updating fontconfig cache...
(17/29) Probing GDK-Pixbuf loader modules...
(18/29) Updating GIO module cache...
(19/29) Compiling GSettings XML schema files...
(20/29) Probing GTK2 input method modules...
(21/29) Probing GTK3 input method modules...
(22/29) Updating icon theme caches...
(23/29) Updating GTK4 module cache...
(24/29) Reloading GVFS config...
killall: /proc lacks process entries (not mounted ?)
(25/29) Updating the info directory file...
(26/29) Uncommenting all mirrors in /etc/pacman.d/mirrorlist...
(27/29) Updating the desktop file MIME type cache...
(28/29) Updating the MIME type database...
(29/29) 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...
[mkarchiso] INFO: Done!
[mkarchiso] INFO: Done! SYSLINUX set up for BIOS booting from a disk successfully.
[mkarchiso] INFO: Setting up SYSLINUX for BIOS booting from an optical disc...
[mkarchiso] INFO: Done! SYSLINUX set up for BIOS booting from an optical disc successfully.
[mkarchiso] INFO: Setting up systemd-boot for UEFI booting...
[mkarchiso] INFO: Creating FAT image of size: 86016 KiB...
mkfs.fat 4.2 (2021-01-31)
[mkarchiso] INFO: Preparing kernel and initramfs for the FAT file system...
[mkarchiso] INFO: Done!
[mkarchiso] INFO: Done! systemd-boot set up for UEFI booting successfully.
[mkarchiso] INFO: Preparing an /EFI directory for the ISO 9660 file system...
[mkarchiso] INFO: Done!
[mkarchiso] INFO: Cleaning up in pacstrap location...
[mkarchiso] INFO: Done!
[mkarchiso] INFO: Creating ext4 image of 32 GiB...
mke2fs 1.46.3 (27-Jul-2021)
mkfs.ext4: No such file or directory while trying to determine filesystem size
Virtual machine 'torz' is created and registered.
UUID: 86f60b22-6d6c-4154-961a-769769fc8ca9
Settings file: '/root/VirtualBox VMs/torz/torz.vbox'

And here is the profiledef.sh

#!/usr/bin/env bash
# shellcheck disable=SC2034

iso_name="archlinux-baseline"
iso_label="ARCH_$(date +%Y%m)"
iso_publisher="Arch Linux <[url]https://archlinux.org[/url]>"
iso_application="Arch Linux baseline"
iso_version="$(date +%Y.%m.%d)"
install_dir="arch"
buildmodes=('iso')
bootmodes=('bios.syslinux.mbr' 'bios.syslinux.eltorito' 'uefi-x64.systemd-boot.esp' 'uefi-x64.systemd-boot.eltorito')
arch="x86_64"
pacman_conf="pacman.conf"
airootfs_image_type="ext4+squashfs"
airootfs_image_tool_options=('-comp' 'xz' '-Xbcj' 'x86' '-b' '1M' '-Xdict-size' '1M')
file_permissions=(
  ["/etc/shadow"]="0:0:400"
  ["/etc/gshadow"]="0:0:400"
  ["/root"]="0:0:750"
  ["/root/.automated_script.sh"]="0:0:755"
  ["/usr/local/bin/choose-mirror"]="0:0:755"
  ["/usr/local/bin/Installation_guide"]="0:0:755"
  ["/usr/local/bin/livecd-sound"]="0:0:755"
)

Would provide all configs and outputs but, as with my last post im probably missing something simple here...

Greatly appreciate any assistance that anyone could offer here, thanks in advance!

Last edited by ventshek (2021-08-01 22:55:48)

Offline

#2 2021-08-01 19:32:48

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

Re: [SOLVED] Archiso, ext4 failing to create. [SOLVED]

Please wrap your output in code tags https://bbs.archlinux.org/help.php#bbcode.
I get the same result building 'ext4+squashfs' I have no idea where the problem is yet.

Also tried erofs and noticed an error due to some wrong flag '-c'
@nl6720, should line 231

mkfs.erofs -U "${fsuuid}" "${airootfs_image_tool_options[@]}" -- "${image_path}" "${pacstrap_dir}"

be

mkfs.erofs -U "${fsuuid}" -- "${image_path}" "${pacstrap_dir}"

'airootfs_image_tool_options' are mksquashfs options...

edit: @ventshek. did you read the issue thread about deprecating ext4+squashfs... (see)https://gitlab.archlinux.org/archlinux/ … issues/141
Could be that's one of the reasons there are problems with it right now?

edit1: that second line builds a perfectly fine ISO using erofs.

Last edited by qinohe (2021-08-01 20:12:01)

Offline

#3 2021-08-01 21:10:17

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

Re: [SOLVED] Archiso, ext4 failing to create. [SOLVED]

I found the problem, the 32G img is never created.
Adding 'touch "${pacstrap_dir}.img"' to '_mkairootfs_ext4+squashfs'(188) function in 'mkarchiso' creates a working ISO using 'ext4+mksquashfs'

edit:add line number & change function

Last edited by qinohe (2021-08-01 21:21:04)

Offline

#4 2021-08-01 22:03:05

ventshek
Member
Registered: 2021-07-19
Posts: 9

Re: [SOLVED] Archiso, ext4 failing to create. [SOLVED]

Hey it works!

Thanks a bunch man, I'd tried the erofs and it'd worked but the vms i loaded up from the iso were going straight to ram again just like with squashfs (the reason id gone for ext in the first place). So I'd just written up a bunch of crap when i saw this handy fix...

Thanks for your help here man, really appreciate it!!!

Offline

#5 2021-08-01 22:25:13

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

Re: [SOLVED] Archiso, ext4 failing to create. [SOLVED]

Welcome, I actually like erofs, it's quick, less stress for the hardware and the ISO seems to have better reactions using it(qemu).
That's after trying it today tongue

Offline

#6 2021-08-01 22:26:00

2ManyDogs
Forum Fellow
Registered: 2012-01-15
Posts: 4,646

Re: [SOLVED] Archiso, ext4 failing to create. [SOLVED]

qinohe wrote:

Please wrap your output in code tags https://bbs.archlinux.org/help.php#bbcode.

ventshek, please do this now (edit your first post and add code tags). While you are editing the post, please add [SOLVED] to the title to indicate that your problem is now solved. You also have another solved topic that you have not yet marked [SOLVED] (and where you were asked to do this).

Please read "How to post" linked in my signature before you post again.

Offline

#7 2021-08-01 22:51:46

ventshek
Member
Registered: 2021-07-19
Posts: 9

Re: [SOLVED] Archiso, ext4 failing to create. [SOLVED]

Will do chaps, thanks!

Offline

#8 2021-08-01 22:59:39

ventshek
Member
Registered: 2021-07-19
Posts: 9

Re: [SOLVED] Archiso, ext4 failing to create. [SOLVED]

Just as a final query, don't suppose you know a better way of getting aur packages onto the ISO, using archiso than having the packages in root > make sure to have deps already > chown > mv > makepkg as part of the startup script?

Offline

#9 2021-08-02 01:52:12

nl6720
The Evil Wiki Admin
Registered: 2016-07-02
Posts: 671

Re: [SOLVED] Archiso, ext4 failing to create. [SOLVED]

This appears to be an issue with e2fsprogs 1.46.3-1.
With e2fsprogs 1.46.2-1, the mkfs.ext4 command from mkarchiso seems to work fine.

For AUR packages, place them in a custom local repo and include the repo in the archiso profile's pacman.conf. https://wiki.archlinux.org/title/Archis … repository

Offline

Board footer

Powered by FluxBB