Package Details: linux-usermode 6.9.9-1

Git Clone URL: (read-only, click to copy)
Package Base: linux-usermode
Description: User mode Linux kernel and modules
Upstream URL:
Keywords: linux usermode
Licenses: GPL2
Submitter: haruue
Maintainer: sir_lucjan
Last Packager: sir_lucjan
Votes: 7
Popularity: 0.000015
First Submitted: 2018-03-07 14:34 (UTC)
Last Updated: 2024-07-11 12:31 (UTC)

Pinned Comments

Latest Comments

1 2 Next › Last »

sir_lucjan commented on 2021-09-09 13:12 (UTC)

You can test version 5.14 if you want

sir_lucjan commented on 2021-09-09 10:13 (UTC)

I will add at version 5.14

gportay commented on 2021-09-09 10:08 (UTC)

Could you add support for initrd in the config?

diff --git a/PKGBUILD b/PKGBUILD
index 3f97bfd..b0bd672 100644
@@ -22,7 +22,7 @@ source=("${pkgver}.tar.xz"

-            '5b3dc17e96f0e8518549751f690f751de24b20e66853bd650f39c53732ba6889'
+            'eb210fa0eb1d0a2605e2f5d353163280b93cb1d8a2f21ff86e16bcd4dac76d55'

diff --git a/config b/config
index b6b3a63..7b8e56c 100644
--- a/config
+++ b/config
@@ -124,7 +124,15 @@ CONFIG_NET_NS=y
 # CONFIG_RELAY is not set
 # CONFIG_BOOT_CONFIG is not set
@@ -1306,8 +1314,28 @@ CONFIG_CRC32_SLICEBY8=y
 # CONFIG_CRC7 is not set
 # CONFIG_LIBCRC32C is not set
 # CONFIG_CRC8 is not set
-# CONFIG_XZ_DEC is not set
+# CONFIG_XZ_DEC_TEST is not set
 # CONFIG_DMA_API_DEBUG is not set

sir_lucjan commented on 2021-08-08 16:07 (UTC)

Unfortunately, usually UML is not close in config to a "full-fledged" kernel. It is just a testing ground and nothing more.

CyberShadow commented on 2021-08-08 15:41 (UTC)

Thank you! That sent me on the right path of tracking down the problem.

Two things were missing:

  1. The kernel is built without loop device support, and support for most filesystems is also missing. I don't know if this is a problem - I guess I was just expecting a kernel configured closer to the normal Arch Linux kernel.

  2. With the default rootfstype=hostfs, and without running anything like udevd, /dev is the host's /dev. Creating a loop device inside UML without something like udevd requires either mknod-ing /dev/loop0 or creating it on the host (e.g. with losetup --find).

Unfortunately if something goes wrong, the error messages are going to be rather misleading, though strace helps a little.

The reason why files in /proc were empty was simply that /proc was also coming from the host. UML hostfs used the size in stat (which is always 0 for such virtual files) to count the number of bytes to transfer. mount -t proc proc /proc fixes this, along with other userspace utilities.

sir_lucjan commented on 2021-08-08 14:46 (UTC) (edited on 2021-08-08 14:46 (UTC) by sir_lucjan)


Take a look at this and tell me if it works in this scope:

This UML package is compiled in the absolute minimum version and I will rewrite PKGBUILD if needed.

CyberShadow commented on 2021-08-08 07:31 (UTC) (edited on 2021-08-08 07:35 (UTC) by CyberShadow)

I was hoping of using UML to experiment with in-kernel filesystems implementations. However, not sure what's going wrong, but I can't mount anything inside UML:

$ vmlinux mem=1G root=/dev/root rootfstype=hostfs init=/bin/bash
Core dump limits :
[root@(none) /]# mount -t tmpfs tmpfs /tmp
[root@(none) /]# cd /tmp
[root@(none) tmp]# truncate -s 256M a
[root@(none) tmp]# mkfs.ext4 -q a
[root@(none) tmp]# mkdir b
[root@(none) tmp]# mount a b
mount: b: mount failed: Operation not permitted.

I get the same "Operation not permitted" error even if vmlinux is running as root on the host. Furthermore, /proc/filesystems is empty, which doesn't seem right - shouldn't at least hostfs be there?

sir_lucjan commented on 2020-02-17 01:40 (UTC)

Will you kindly explain why the lack of a gpg key in your system is reported as an error? If you don't have a key, just add it.

paulhart commented on 2020-02-17 00:49 (UTC) (edited on 2020-02-17 15:17 (UTC) by paulhart)

got the following build error (commit 6c8917c19c35):

[... removed for clarity ...]
==> Verifying source file signatures with gpg...
    linux-5.5.4.tar ... FAILED (unknown public key 38DBBDC86092693E)
==> ERROR: One or more PGP signatures could not be verified!

got around it by using the --skippgpcheck flag on makepkg.

JuniorJPDJ commented on 2019-10-18 09:48 (UTC)

Could you make build use more than one thread?