Hi @ogra, thanks for the info. I added those modules to the kernel-initrd-modules
looks like it has some issues finding the squashfs
. Do I need to make a specific source reference to these modules? See below trace:
make -j2 bzImage modules
make -j2 CONFIG_PREFIX=/home/lopezem/Projects/bionic/parts/kernel/install modules_install INSTALL_MOD_PATH=/home/lopezem/Projects/bionic/parts/kernel/install
Generating driver initrd for kernel release: 4.15.18+
Parallel unsquashfs: Using 2 processors
2 inodes (34 blocks) to write
[=================================================================|] 34/34 100%
created 1 files
created 6 directories
created 1 symlinks
created 0 devices
created 0 fifos
25956 blocks
Sorry, Snapcraft ran into an error when trying to running through its
lifecycle that generated the following traceback:
Traceback (most recent call last):
File "/usr/bin/snapcraft", line 9, in <module>
load_entry_point('snapcraft==2.42.1', 'console_scripts', 'snapcraft')()
File "/usr/lib/python3/dist-packages/click/core.py", line 716, in __call__
return self.main(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 696, in main
rv = self.invoke(ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 1037, in invoke
return Command.invoke(self, ctx)
File "/usr/lib/python3/dist-packages/click/core.py", line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/click/decorators.py", line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/_runner.py", line 79, in run
ctx.forward(lifecyclecli.commands['snap'])
File "/usr/lib/python3/dist-packages/click/core.py", line 552, in forward
return self.invoke(cmd, **kwargs)
File "/usr/lib/python3/dist-packages/click/core.py", line 534, in invoke
return callback(*args, **kwargs)
File "/usr/lib/python3/dist-packages/snapcraft/cli/lifecycle.py", line 135, in snap
project_options, directory=directory, output=output)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_packer.py", line 46, in snap
execute('prime', project_options)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 79, in execute
_Executor(config, project_options).run(step, part_names)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 191, in run
self._run_step(step, part, part_names)
File "/usr/lib/python3/dist-packages/snapcraft/internal/lifecycle/_runner.py", line 236, in _run_step
getattr(part, step)()
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/__init__.py", line 438, in build
self._runner.build()
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/_runner.py", line 97, in build
self._builddir)
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/_runner.py", line 160, in _run_scriptlet
scriptlet_name, function_call.strip())))
File "/usr/lib/python3/dist-packages/snapcraft/internal/pluginhandler/_runner.py", line 208, in _handle_builtin_function
function(**function_args)
File "/usr/lib/python3/dist-packages/snapcraft/plugins/kbuild.py", line 258, in build
self.do_install()
File "/usr/lib/python3/dist-packages/snapcraft/plugins/kernel.py", line 465, in do_install
self._make_initrd()
File "/usr/lib/python3/dist-packages/snapcraft/plugins/kernel.py", line 293, in _make_initrd
os.link(src, dst)
FileNotFoundError: [Errno 2] No such file or directory: 'squashfs' -> '/home/lopezem/Projects/bionic/parts/kernel/build/initrd-staging/../../../squashfs'
Here is my snapcraft.yaml
file:
name: pc-kernel
version: null
version-script: |
. debian/debian.env
dpkg-parsechangelog -l $DEBIAN/changelog -S version
summary: The Ubuntu generic Linux kernel
description: This Ubuntu generic Linux kernel
grade: stable
confinement: strict
type: kernel
parts:
kernel:
plugin: kernel
source: .
source-type: git
kconfigflavour: generic
kconfigs:
- CONFIG_DEBUG_INFO=n
kernel-initrd-modules:
- squashfs
- ahci
- libahci
- usb-storage
- nls_iso8859-1
- virtio_scsi
- sdhci
- sdhci-pci
- sdhci-acpi
- mmc-block
- hv_storvsc
- hv_vmbus
override-build: |
cp debian/scripts/retpoline-extract-one \
$SNAPCRAFT_PART_BUILD/scripts/ubuntu-retpoline-extract-one
snapcraftctl build
kernel-with-firmware: false
firmware:
plugin: nil
stage-packages:
- linux-firmware
organize:
lib/firmware: firmware
prime:
- -usr
- -lib
build-packages:
- cpio
- libssl-dev