View previous topic :: View next topic |
Author |
Message |
bulletbill22 n00b
Joined: 15 Oct 2022 Posts: 34
|
Posted: Thu Jul 11, 2024 6:37 pm Post subject: Install static-dev while using udev/devfs tmpfs |
|
|
I am trying to install sys-fs/static-dev. Running 'sudo emerge -avuDN @world' I get the following list of packages to install:
Code: | │[ebuild N ] acct-group/uucp-0-r3::gentoo 0 KiB
│[ebuild N ] sys-apps/makedev-3.23.1-r3::gentoo USE="-build (-selinux)" 0 KiB
│[ebuild N ] sys-fs/static-dev-0.1-r3::gentoo 0 KiB |
But when attempting to merge these packages, I get a pre-merge check error:
Code: | We have detected that you currently use udev or devfs or devtmpfs
and this ebuild cannot install to the same mount-point.
ERROR: sys-fs/static-dev-0.1-r3::gentoo failed (pretend phase):
Cannot install on udev/devfs tmpfs |
/dev is a devtmpfs and I don't see an entry for it in fstab.
fstab says /dev/shm is a tmpfs
fstab says /dev/pts is devpts with options 'gid=5,mode=620'
What needs to be changed to enable installing static-dev?
Last edited by bulletbill22 on Mon Jul 15, 2024 12:10 am; edited 1 time in total |
|
Back to top |
|
|
pietinger Moderator
Joined: 17 Oct 2006 Posts: 5104 Location: Bavaria
|
Posted: Thu Jul 11, 2024 9:05 pm Post subject: Re: Install static-dev while using udev/devfs tmpfs |
|
|
bulletbill22 wrote: | /dev is a devtmpfs and I don't see an entry for it in fstab. |
Look into your kernel and check if you have:
Code: | Device Drivers --->
Generic Driver Options --->
-*- Maintain a devtmpfs filesystem to mount at /dev
[*] Automount devtmpfs at /dev, after the kernel mounted the rootfs |
In <Help> you see the reason why it is hard enabled:
Code: | Selected by [y]:
- GENTOO_LINUX_UDEV [=y] && GENTOO_LINUX [=y] |
Look now into:
Code: | Gentoo Linux --->
[*] Linux dynamic and persistent device naming (userspace devfs) support |
bulletbill22 wrote: | What needs to be changed to enable installing static-dev? |
Kernel and you must de-install udev ... I DONT RECOMMEND ... If you really want this you have to wait for our forums legend Neddy ... _________________ https://wiki.gentoo.org/wiki/User:Pietinger |
|
Back to top |
|
|
kimchi_sg Advocate
Joined: 26 Nov 2004 Posts: 3038
|
Posted: Thu Jul 11, 2024 11:50 pm Post subject: Re: Install static-dev while using udev/devfs tmpfs |
|
|
bulletbill22 wrote: | I am trying to install sys-fs/static-dev |
Bear in mind you will not be able to run xorg, all the X input and video drivers now in Portage depend on udev.
Essentially only useful for console system. |
|
Back to top |
|
|
bulletbill22 n00b
Joined: 15 Oct 2022 Posts: 34
|
Posted: Fri Jul 12, 2024 6:44 am Post subject: |
|
|
Quote: | Bear in mind you will not be able to run xorg, all the X input and video drivers now in Portage depend on udev.
Essentially only useful for console system. |
Well this server is mostly only console, but I do sometimes run X apps with X forwarding. |
|
Back to top |
|
|
Hu Administrator
Joined: 06 Mar 2007 Posts: 22648
|
Posted: Fri Jul 12, 2024 1:22 pm Post subject: |
|
|
X11 forwarding causes the application to talk to the Xorg server, which would be running where you display a GUI and have a keyboard. You don't need to run (or even install) Xorg on the server if you only want to run X11 applications on the server and render them on your desktop. |
|
Back to top |
|
|
bstaletic Guru
Joined: 05 Apr 2014 Posts: 372
|
Posted: Sat Jul 13, 2024 7:26 am Post subject: |
|
|
I've switched from udev to static-dev back in 2016, for a while.
You'll have to boot a live environment, chroot your gentoo, but without `/dev` and then install static-dev.
...
Assuming I remember the steps correctly.
As for Xorg, you can certainly run it. There's just more steps to setting it up:
Put -udev in your make.conf's USE flags.
Write ebuilds for xf86-input-keyboard and xf86-input-mouse.
Put those ebuilds into your local repository.
Replace xf86-input-libinput with the other two above.
And the hard part - write your own Xorg.conf, because you have no udev any more.
Even harder part - if you are using an Intel gpu, you will have to be explicit about xorg module loading order. Don't know about Intel Arc or other dedicated gpus. |
|
Back to top |
|
|
bulletbill22 n00b
Joined: 15 Oct 2022 Posts: 34
|
Posted: Mon Jul 15, 2024 12:12 am Post subject: |
|
|
@bstaletic Thanks for the tips. This server has no GPU and doesn't run any X apps except via X11 forwarding. |
|
Back to top |
|
|
|