Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Catalyst: dracut fails
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
logorado
n00b
n00b


Joined: 29 Sep 2024
Posts: 2

PostPosted: Sun Sep 29, 2024 4:57 pm    Post subject: Catalyst: dracut fails Reply with quote

Hi All!

I'm trying to build custom livecd image with catalyst. I get the following error message at stage2:
Code:
emerge --quiet --usepkg --buildpkg --binpkg-respect-use=y --newuse --update sys-kernel/gentoo-kernel
Moving kernel sources to /tmp/kerncache/gentoo/sources ...
mv: cannot stat '/tmp/kerncache/gentoo/sources': No such file or directory
/usr/bin/dracut: line 1049: /sys/module/firmware_class/parameters/path: No such file or directory
dracut[I]: Executing: /usr/bin/dracut --xz --no-hostonly -a dmsquash-live -a mdraid -o btrfs -o i18n -o usrmount -o lunmask -o qemu -o qemu-net -o nvdimm -i /lib/keymaps /lib/keymaps -I busybox --force "--kernel-image=/usr/src/linux-6.6.51-gentoo-dist-hardened/unsupported ARCH=" --kver=6.6.51-gentoo-dist-hardened
dracut[I]: 62bluetooth: Could not find any command of '/usr/lib/bluetooth/bluetoothd /usr/libexec/bluetooth/bluetoothd'!
dracut[I]: 90crypt: Could not find any command of '/usr/lib/systemd/systemd-cryptsetup cryptsetup'!
dracut[I]: 90systemd-cryptsetup: Could not find any command of '/usr/lib/systemd/systemd-cryptsetup'!
dracut[E]: Module 'network' depends on module 'network-legacy', which can't be installed
dracut[E]: Module 'nfs' depends on module 'network', which can't be installed
dracut[E]: Module 'mdraid' cannot be installed.
29 Sep 2024 19:05:38 MSK: ERROR   : CatalystError: cmd(['/usr/share/catalyst/targets/livecd-stage2/controller.sh', 'kernel', 'gentoo']) exited 1
ERROR:catalyst:CatalystError: cmd(['/usr/share/catalyst/targets/livecd-stage2/controller.sh', 'kernel', 'gentoo']) exited 1
29 Sep 2024 19:05:38 MSK: ERROR   : Exception running action sequence build_kernel
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/catalyst/base/stagebase.py", line 38, in run_sequence
    func()
  File "/usr/lib/python3.12/site-packages/catalyst/base/stagebase.py", line 1635, in build_kernel
    self._build_kernel(kname=kname)
  File "/usr/lib/python3.12/site-packages/catalyst/base/stagebase.py", line 1655, in _build_kernel
    cmd([self.settings['controller_file'], 'kernel', kname], env=self.env)
  File "/usr/lib/python3.12/site-packages/catalyst/support.py", line 66, in cmd
    raise CatalystError('cmd(%r) exited %s' % (args, ret),
catalyst.support.CatalystError: cmd(['/usr/share/catalyst/targets/livecd-stage2/controller.sh', 'kernel', 'gentoo']) exited 1
ERROR:catalyst:Exception running action sequence build_kernel
Traceback (most recent call last):
  File "/usr/lib/python3.12/site-packages/catalyst/base/stagebase.py", line 38, in run_sequence
    func()
  File "/usr/lib/python3.12/site-packages/catalyst/base/stagebase.py", line 1635, in build_kernel
    self._build_kernel(kname=kname)
  File "/usr/lib/python3.12/site-packages/catalyst/base/stagebase.py", line 1655, in _build_kernel
    cmd([self.settings['controller_file'], 'kernel', kname], env=self.env)
  File "/usr/lib/python3.12/site-packages/catalyst/support.py", line 66, in cmd
    raise CatalystError('cmd(%r) exited %s' % (args, ret),
catalyst.support.CatalystError: cmd(['/usr/share/catalyst/targets/livecd-stage2/controller.sh', 'kernel', 'gentoo']) exited 1


Can someone explain what's wrong?
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1181
Location: Richmond Hill, Canada

PostPosted: Sun Sep 29, 2024 5:23 pm    Post subject: Reply with quote

Can you share your command that got you this error?

Also share the spec file, /etc/catalyst/catalyst.conf and /etc/catalyst/catalysrc.

And what version of catalyst you used?

I have not done any livecd build previously, but I can investigate what is going on if I have information. I have done few stage4 build.
Back to top
View user's profile Send private message
logorado
n00b
n00b


Joined: 29 Sep 2024
Posts: 2

PostPosted: Sun Sep 29, 2024 6:15 pm    Post subject: Reply with quote

pingtoo wrote:
Can you share your command that got you this error?

Also share the spec file, /etc/catalyst/catalyst.conf and /etc/catalyst/catalysrc.

And what version of catalyst you used?

I have not done any livecd build previously, but I can investigate what is going on if I have information. I have done few stage4 build.


Code:
$ catalyst -f stage2.spec


Code:
$ catalyst --version
Catalyst 4.0_rc2
extended version info unavailable


Code:
# stage2.spec
subarch: amd64
version_stamp: custom_livecd
target: livecd-stage2
rel_type: build
profile: default/linux/amd64/23.0/hardened
snapshot_treeish: # I deleted my treeish, but it's here, just trust me.
source_subpath: build/livecd-stage1-amd64-custom_livecd.tar.xz
portage_confdir: /var/tmp/catalyst/config/isos

livecd/bootargs: dokeymap
livecd/fstype: squashfs
livecd/iso: livecd-amd64-custom_livecd.iso
livecd/type: gentoo-release-minimal
livecd/volid: custom_livecd-amd64

boot/kernel: gentoo

boot/kernel/gentoo/distkernel: yes
boot/kernel/gentoo/dracut_args: --xz --no-hostonly -a dmsquash-live -a mdraid -o btrfs -o i18n -o usrmount -o lunmask -o qemu -o qemu-net -o nvdimm -i /lib/keymaps /lib/keymaps -I busybox
boot/kernel/gentoo/config: /var/tmp/catalyst/config/kconfig/kconfig.config


Code:
# /etc/catalyst/catalyst.conf
digests = ["blake2b", "sha512"]
envscript = "/etc/catalyst/catalystrc"
options = [
    "autoresume",
    "bindist",
    "kerncache",
    "pkgcache",
    "seedcache",
]


/etc/catalyst/catalystrc is empty (all lines are commented out).
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1181
Location: Richmond Hill, Canada

PostPosted: Mon Sep 30, 2024 1:21 am    Post subject: Reply with quote

Can you please run the stage2 command with "--debug" option. I want to see what catalyst think your build arch is.

There are several strange thing should not happen but it did, for example the dracut command line
Quote:
dracut[I]: Executing: /usr/bin/dracut --xz --no-hostonly -a dmsquash-live -a mdraid -o btrfs -o i18n -o usrmount -o lunmask -o qemu -o qemu-net -o nvdimm -i /lib/keymaps /lib/keymaps -I busybox --force "--kernel-image=/usr/src/linux-6.6.51-gentoo-dist-hardened/unsupported ARCH=" --kver=6.6.51-gentoo-dist-hardened
show the kernel image path as "unsupported ARCH=" this only happen when catalyst not able find the basearch.

What is in /var/tmp/catalyst/config/isos? Do you have an make.conf there?
Back to top
View user's profile Send private message
pingtoo
Veteran
Veteran


Joined: 10 Sep 2021
Posts: 1181
Location: Richmond Hill, Canada

PostPosted: Mon Sep 30, 2024 2:18 am    Post subject: Reply with quote

Additionally, I found a PR for the "unsupported ARCH=" issue.

So it is likely you need to wait until it got merged. Or don't use dist-kernel.

BTW, did you previously have successful catalyst run for livecd build?

I found
Quote:
...
Moving kernel sources to /tmp/kerncache/gentoo/sources ...
mv: cannot stat '/tmp/kerncache/gentoo/sources': No such file or directory
...


Also strange, as it not able to find your /usr/src/linux in the chroot. so did you see any build information about gentoo-kernel being compile/build?
Back to top
View user's profile Send private message
fpemud
Guru
Guru


Joined: 15 Feb 2012
Posts: 350

PostPosted: Sat Oct 12, 2024 5:48 pm    Post subject: Reply with quote

Quote:
-i /lib/keymaps /lib/keymaps


My system doesn't have the /lib/keymaps directory. To which package does it belong?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum