#gentoo installation ugrd
1 messages · Page 1 of 1 (latest)
you edit that file
or any file in /etc/portage/package.use
basically you set installkernel to have the ugrd use flag
in whatever manner you prefer
i’m not sure how to do that
i ran the emerge command for ugrd but idk how to do what it’s asking now
echo "sys-kernel/installkernel ugrd" > /etc/portage/package.use/ugrd
will that add it for me?
if you add that flag to installkernel it'll pull ugrd
so this one adds it and enables it for me
yeah but the point i want to make is that you can set use flags in a variety of ways
do it however makes sense to you
and try to understand what it means to do that
It adds it to that config file for you yeah
i’ve only used nano so far and usually the wiki was clear when i was meant to
This file
yeah so you can "echo" contents into a file, using > or >> with your shell, or just edit the file
ye that part is the path to the file
but use flags can be set by any file in that dir
That line below has to be in it
Basically:
Any text file in /etc/portage/package.use/ will be read by emerge command, and whatever is in them will be applied
or do i have to do cd
^
so the file name is barely relevant, it's mostly there to let you know what the contents may be, and ordering, but odering shouldn't matter much
And you want to apply
sys-kernel/installkernel ugrd
Have this line in a text file in /etc/portage/package.use/
yeah that adds the ugrd flag to sys-kernel/installkernel
pwd says what folder you're in if you don't know
so i do nano /etc/portage/package.use/?
package.use is a folder
^
Make any file in there
well it can be a file
And then you can nano it
it's easiest to organize it as a dir tho, one file gets messy fast
no i’m js confused how it’ll add the ugrd use file if im not inside of directory
so cd /etc/portage/package.use/
You don't have to be in a directory to edit a file in directory if you give nano an entire path to a file
mkdir USE files
Yeah you can do that
you can specify the full path like sudo nano /etc/portage/package.use/ugrd
No
then i use the command you told me?
oh
or just nano if you're root
i am root
package.use is a folder
in that folder you put text files that tell portage what USE flags to apply for packages
so it already has the ugrd use file and i js have to enable it?
https://wiki.gentoo.org/wiki//etc/portage/package.use maybe take a minute and skim this
You make a file, name it whatever you want
And put info in it
If you create a file, and inside that file you put
sys-kernel/installkernel ugrd
That enables ugrd USE flag for installkernel
oh
so i make a file inside of package.use
ye
Yep exactly
you can technically name it just about anything, im not sure if some pattern makes it ignored, potentially prefixed with a .
okay so as a whole what’s the order of commands i should run to do that? or was this command enough
if you want one file for anything kernel related you could just call it kernel
That command basically automatically makes a file for you and puts the use flag in it, but it's good if you do it at least once on your own to know how it works
I can tell you, one sec
yeah you should be able to search your package.use and get an idea of what is going on
in case there are ever duplicate configs or conflicts
how do i make a file inside of the package.use then (most likely a dumb question but i’ve slept like 5hrs nd can’t remember anything)
If you do nano filename that will create file once you save
So you don't need a separate command
when you save it, it creates it
You can run nano on a file that doesn't exist and then when u save that makes this file
so nano /etc/portage/package.use/ugrd
Yeah, that should work
I'm not 100% sure if package.use folder is created by default so if this gives you an error just make that folder I guess
then if possible tell me like in steps what to do as if you were doing it yourself
mkdir -pv /etc/portage/package.use
then that nano command
but maybe try a bit, it's not too complicated
okay wait let me check if the file exists already or not
okay so ugrd doesn’t have anything inside of it let me check package.use
Explanation:
-p will create all folders in case they don't exist, not just try to make the last one and error if the location doesn't exist
-v makes the command give more output
it says it’s a directory and then nothing shows up
What command?
nano /etc/portage/package.use
You're trying to edit a folder using text editor right now
oh
nano /etc/portage/package.use/someFileNameWhateverYouWant
We suggested to call the file ugrd so that you know it's a file where you change USE flags to make ugrd work
okay so i should do nano /etc/portage/package.use/ugrd and then add sys-kernel/installkernel ugrd
Yea put that text in that file
No, just the text in the quotes only
alright
Basically the line starts with full package name and then you write what USE flags you want enabled for it
Or disabled
If you put - in front of flag name
btw doing this command says euse doesn’t exist
If you do emerge -a installkernel then before pressing yes, you should see it says next to the package that it enables that USE flag
Ah you might have to install gentoolkit for it. Well, just another reason why doing it with text files can be worth it
No extra programs
-a means it won’t actually install the kernel yet it’ll js read right
-a means --ask
So it'll ask you yes/no
If something is wrong with what it says it'll do then just cancel
No problem
@cobalt verge when i’m trying to set up the timezone, it says invalid atom in /etc/portage/package.use/ugrd: “sys-kernel/installkernel
Check if you've made a typo
See if every letter is 100% correct in the file
Because sys-kernel/installkernel is a package, so that should work
Also not sure why it says it's not working now
i copy and pasted it now so no way i did it wrong
Hm
Can you give me that full error?
same error appeared
gimme a sec
command used = emerge --config sys-libs/timezone-data
error recieved = ---invalid atom in /etc/portage/package.use/ugrd: "sys-kernel/installkernel
and then
configuring pkg
assuming your /etc/localtime symlink is what you want; skipping update
Hm
If you run
emerge --info sys-kernel/installkernel
Is there a - next to ugrd near the bottom or not?
In the USE="
it showed the same invalid atom then printed a large group of text
it’s a bunch of random stuff
X a52 aac acc acpi
im trying to find ugrd
Hm
Maybe it really isn't finding installkernel
Wait no
Then it'd be a short message with "there are no ebuilds to satisfy"
wait gimme a sec i’ll use the command nd then use find function
ugrd isn’t even mentioned
at all
it’s only mentioned in the error
yes
Hm
It should either give you this
Or if there is a typo or package doesn't exist, should be this
js tell me how to install the euse so i can make it do it for me
Yeah invalid atom means the package name is unknown in that ugrd file
okay so now i do the euse thing right
done
Then
wgetpaste -c 'ls /etc/portage/package.use; cat /etc/portage/package.use/ugrd'
And send the link that it outputs here
it’s taking time to output anything
apparently nothing was received it said
it says to enable verbose or debug
yeah
Otherwise you couldn't install stuff
i’m using firefox in the background rn
done
Then do euse -E ugrd -p sys-kernel/installkernel
Now do ls /etc/portage/package.use
I don't think it is, tho I'm not fully sure
[ Results for search key : installkernel ]
Searching...
-
dev-python/installer
Latest version available: 0.7.0
Latest version installed: 0.7.0
Size of files: 907 KiB
Homepage: https://pypi.org/project/installer/ https://github.com/pypa/installer/ https://installer.readthedocs.io/en/latest/
Description: A library for installing Python wheels
License: MIT -
sys-kernel/installkernel
Latest version available: 48-r1
Latest version installed: [ Not Installed ]
Size of files: 25 KiB
Homepage: https://github.com/projg2/installkernel-gentoo https://wiki.gentoo.org/wiki/Installkernel
Description: Gentoo fork of installkernel script from debianutils
License: GPL-2+
[ Applications found : 2 ]
Well
emerge installkernel
Or
with -a
Tbh
We want to make sure it has that USE flag now
- IMPORTANT: 20 news items need reading for repository 'gentoo'.
- Use eselect news read to view new items.
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 1.17 s (backtrack: 0/20).
[ebuild N ] sys-kernel/installkernel-48-r1 USE="ugrd -dracut (-efistub) -grub -refind -systemd -systemd-boot -uki -ukify"
Alright yea looks fine
ugrd is at the top with no -
so why is it not letting me use diff commands
What commands?
i’m tryna set my timezone nd it won’t work for some reason
i did but it’s showing the lower half now
` emerge --config sys-libs/timezone-data
Configuring pkg...
- Assuming your /etc/localtime symlink is what you want; skipping update.`
I guess redo that section in the handbook, or maybe this works as intended
why is the timezone full days off from when it is today
it’s saying my country is mar 13
2024
I guess you either did something wrong during that section or missed some command you were supposed to run
Lemme open the handbook one sec
gentoo has been hell to install
people lied to me when saying it’s easier than arch
ykw i’m leaving it as it is and when i get a gui im editing it
It isn't easier than arch, but it is comparable, unless you run arch install script that automates a lot of stuff
arch was much much easier
it was my first distro and installing was so so easy
Alright
I just checked
There are high chances you ran
ln -sf ../usr/share/zoneinfo/[...] /etc/localtime
command when in the wrong folder
chroot
cd is what changes what folder you're in
i think i got it working already
That section of the Gentoo handbook about timezones assumes you're in /etc folder
i typed this in with my region and no error displayed after
so i think its fine
What does ls -l /etc/localtime say
gimme a sec im managing kernel now
Ok
Nvm it possibly doesn't but still worth checking if that part works right
my internet is horrific bro
matches the date and time
how do i know which kernel version i ahve
If it was working correctly, it should say
/etc/localtime -> ../usr/share/zoneinfo/Continent/City
yeah basically that
U got the arrow and it gives u correct names of files?
yup
?
What kernel are you using?
i dont know
that is hard mode
should i js do a binary kernel install?
you almost certainly want gentoo-kernel-bin to start
i kinda alr installed it
so like
do you have a bootloader installed and configured?
i am not sure
i was js told to do the ugrd part first then the rest
If you went thru with kernel installation with gentoo-sources already then it should be fine hopefully
If u want to check version
emerge --info gentoo-sources
if ugrd can successfully run, that likely means your system is in a state which is nearly ready to boot
but it still depends on bootloader config
Linux-6.8.0 is my version i think
either you need to manually do that with efibootmgr (kinda tricky), use something like uefi-mkconfig, or use a bootloader like systemd-boot or grub
im js gonna do a binary kernel instead this is hurting my brain
bootloader config can be set at a USE flag on installkernel, more or less, but that won't actually install it for you
That won't change anything if you already did the kernel installation
i dont think i did
i avoided anything rlated to installing kernel other than gentoo sources
I'm using ugrd with rootfs encryption and I have zero idea what any of that means, unless this is talking about ugrd + gentoo-sources
Did you do the mkconfig stuff?
you can configure installkernel to run grub-mkconfig for you
with the grub use flag
that's what i mean
but that will also pull grub, so you can install it after you make the config if you want
no
emerge: there are no ebuilds to satisfy "sys-kernel/installkernel-gentoo".
i got this while trying to run
you don't have to install installkernel manually if you use dist-kernel
it depends on it
so you can just emerge gentoo-kernel-bin
I said gentoo-sources not installkernel-gentoo
installkernel-gentoo doesn't exist, there is just installkernel
oh
you just need to do this
but it pulls sys-kernel/installkernel
you don't have to
it already depends onit
!!! 'gentoo-kernel-bin~' is not a valid package atom. !!! Please check ebuild(5) for full details.
You added a ~ by accident somehow I think?
do you know what bootloader you want to use?
i have no clue im js doing what smn told me to do
im doing smt related to fstab or smt
bro
i lagged so badly
are you following some guide or just doing it step by step as someone tells you to?
You shouldn't ever do something that you don't understand if you're on Gentoo tbh
looking at handbook while watching a video he made of how he made his setup
fstab is pretty powerful
hes using a github link to make it easier
For fstab?
yeah
What does the link do?
is this part important
idk but its glacion/genfstab
do you have extra partitions?
i have 3 partitions
sda3
sda2
and sda1
for what
is sda1 your efi?
you may want a swap entry in the fstab
you don't technically need one for the root unless you want different mount options
openrc at least will automatically mount it rw
I'd just edit fstab, it's good to know how to use it
fstab syntax is real similar to just running the mount command
and the fstab has examples for swap
idk what fstab is im js doing it cus my friend ended up having a good gentoo system while doing this setup he js told me to get ugrd by myself
The other day I found out one game I played lagged a lot because btrfs (filesystem I use) didn't have some feature called case folding so the game having all assets as tiny files caused huge lags
I made a 100GB empty file and used fstab to mount it as an ext4 partition and installed the game there
fstab is a text file that tells system where to mount the partitions and how
Mine looks like this right now
It's not super complicated in the end
im almost finished anyway its fine
im downloading grub and efibootmgr
next time i download this im having another lifeform next to me to explain this process so i dont feel like i've messed up my full system
the download didnt work omds man
Do you mean the emerge command?
no i mean like when i tried booting after rebooting
it didn’t work
is there a diff between using —getbinpkg in the world set command or no
@cobalt verge i’m at the kernels part again but this time ill do it properly
i haven’t done anything yet i js added the firmware and sof
what do i do now?
do i use grub, efi stub or what
I personally use GRUB and most people do
alright how do i set it up?
i’m on that part
i don’t understand
so i do nano etc portage package and add it there basically?
like how we did before?
or use that command
What part are you talking about
Did you emerge it?
i haven’t emerged anything other than gentoolkit
Not even gentoo-kernel-bin?
Huh alright
i haven’t done ugrd, dracut or anything yet
i’m asking you so ik what to do first
i js finished the linux firmware and sof part
Alright
So basically add a grub USE flag to installkernel same like you did with ugrd
Then skip systemd-boot
using the command you gave?
just replace ugrd with “grub”
?
Try editing the text file this command made last time
so nano and then add grub
cd /etc/portage/package.use
Yea
ls to see what files are in it
It's probably called installkernel
Then just write grub next to ugrd
00cpu-flags and libesepol
it’ll add both of them if i do?
I meant do cat on that file
Wasn't there a file called installkernel in that folder earlier
didn’t get added yet i didn’t use the command
Ah ok
You should be able to just run that command then yeah
With both grub and ugrd USE flags
now what
You can verify if it worked by checking those files in package.use
In terminal or Discord?
i did
none of the messages are going through
Make sure u enabled ugrd and grub for installkernel then keep following the wiki using gentoo-kernel-bin
i used the command and now idk what im meant to do
sys-apps/systemd boot # For systemd systems
sys-apps/systemd-utils kernel-install boot # For OpenRC systems
sys-kernel/gentoo-kernel-bin generic-uki
sys-kernel/installkernel -dracut -ukify -ugrd uki
which do i use
rub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
how do i fix this
@cobalt verge
What is the title of this whole section
Read it for me
forget ab that part
im way passed it
It was about Universal Kernel Image
im at the final part and for some reason grub install refuses to work
Which is something you aren't using
Alright
grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.
You didn't tell me whether you did it or not
how do i fix this
did what or not
no i did this
Alright
selecting a bootloader: default grub
This?
yes
With this command for legacy/BIOS systems?
i dont get wym but i think im a bios system
Like 99% of the computers made in the last decade or two are using UEFI
idk then but i gotta make an extra partition to boot
no
Whatever the amount was
i need 4 partitions and one thats set as bios boot
100Mb
which i did already but this isnt the situation this time
No
You don't need a BIOS partition for UEFI
it didnt allow me to boot
unless i made
an extra partion
bro i might js restart and give up
Look up your motherboard model
im on a vm
Whether it uses BIOS or UEFI
Ah
Then check VM settings
Idk what VM might have
But yeah
You want to know those things before you start installation
Anyways it's 7:40AM
And I haven't slept tonight
Gn
doesnt say but it forces me to make a forth partition
Ask around in support chat
Then maybe it doesn't force you
Are you sure you did everything right
But anyways
Gtg
Ask someone else
Good night
Sorry we haven't figured it out
not at all
i js ran every command i saw that i thought would work
You're supposed to understand what you're doing, and if you don't understand then either learn whether you need it or not and the basics of what it does