#gentoo installation ugrd

1 messages · Page 1 of 1 (latest)

queen bolt
#

do i run this command too?

quasi pollen
#

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

queen bolt
#

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

quasi pollen
#

echo "sys-kernel/installkernel ugrd" > /etc/portage/package.use/ugrd

queen bolt
quasi pollen
#

if you add that flag to installkernel it'll pull ugrd

cobalt verge
#

Or euse -E ugrd -p sys-kernel/installkernel

#

Enables ugrd flag for that package

queen bolt
quasi pollen
#

do it however makes sense to you

#

and try to understand what it means to do that

cobalt verge
queen bolt
#

i’ve only used nano so far and usually the wiki was clear when i was meant to

cobalt verge
#

This file

quasi pollen
#

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

cobalt verge
#

That line below has to be in it

queen bolt
#

so is the command you told me

#

will it put the ugrd use file into that directory?

cobalt verge
#

Basically:

Any text file in /etc/portage/package.use/ will be read by emerge command, and whatever is in them will be applied

queen bolt
#

or do i have to do cd

quasi pollen
#

^

#

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

cobalt verge
#

And you want to apply

sys-kernel/installkernel ugrd
#

Have this line in a text file in /etc/portage/package.use/

quasi pollen
#

yeah that adds the ugrd flag to sys-kernel/installkernel

cobalt verge
#

pwd says what folder you're in if you don't know

queen bolt
quasi pollen
#

you can nano some file in that dir

#

filename is up to you

cobalt verge
quasi pollen
#

^

cobalt verge
#

Make any file in there

quasi pollen
#

well it can be a file

cobalt verge
#

And then you can nano it

quasi pollen
#

it's easiest to organize it as a dir tho, one file gets messy fast

queen bolt
#

no i’m js confused how it’ll add the ugrd use file if im not inside of directory

queen bolt
cobalt verge
queen bolt
#

mkdir USE files

cobalt verge
quasi pollen
#

you can specify the full path like sudo nano /etc/portage/package.use/ugrd

cobalt verge
queen bolt
#

then i use the command you told me?

queen bolt
quasi pollen
#

or just nano if you're root

queen bolt
cobalt verge
#

package.use is a folder

in that folder you put text files that tell portage what USE flags to apply for packages

queen bolt
quasi pollen
cobalt verge
#

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

queen bolt
#

so i make a file inside of package.use

quasi pollen
#

ye

cobalt verge
#

Yep exactly

quasi pollen
#

you can technically name it just about anything, im not sure if some pattern makes it ignored, potentially prefixed with a .

queen bolt
quasi pollen
#

if you want one file for anything kernel related you could just call it kernel

cobalt verge
#

I can tell you, one sec

quasi pollen
#

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

queen bolt
#

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)

quasi pollen
#

nano it

#

if there is a dir there it'll make a new file under that dir

cobalt verge
#

So you don't need a separate command

quasi pollen
#

when you save it, it creates it

cobalt verge
#

You can run nano on a file that doesn't exist and then when u save that makes this file

queen bolt
#

so nano /etc/portage/package.use/ugrd

cobalt verge
#

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

queen bolt
quasi pollen
#

mkdir -pv /etc/portage/package.use

#

then that nano command

#

but maybe try a bit, it's not too complicated

queen bolt
#

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

cobalt verge
queen bolt
#

it says it’s a directory and then nothing shows up

cobalt verge
queen bolt
#

nano /etc/portage/package.use

cobalt verge
queen bolt
#

oh

cobalt verge
#

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

queen bolt
#

okay so i should do nano /etc/portage/package.use/ugrd and then add sys-kernel/installkernel ugrd

cobalt verge
#

Yea put that text in that file

queen bolt
#

do i do the

#

UGRD =“sys-kernel/installkernel ugrd”

#

?

#

the sys-kernel part

cobalt verge
#

No, just the text in the quotes only

queen bolt
cobalt verge
#

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

queen bolt
#

i think i did it

#

how do i check if it works or not

queen bolt
cobalt verge
cobalt verge
#

No extra programs

queen bolt
cobalt verge
#

So it'll ask you yes/no

#

If something is wrong with what it says it'll do then just cancel

queen bolt
#

ugrd is there

#

thanks a lot

cobalt verge
#

No problem

queen bolt
#

@cobalt verge when i’m trying to set up the timezone, it says invalid atom in /etc/portage/package.use/ugrd: “sys-kernel/installkernel

cobalt verge
#

Check if you've made a typo

queen bolt
#

i wrote

#

“sys-kernel/installkernel ugrd”

#

what’s wrong w that

cobalt verge
#

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

queen bolt
#

i copy and pasted it now so no way i did it wrong

cobalt verge
#

Hm

cobalt verge
queen bolt
#

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

cobalt verge
#

Hm

#

If you run
emerge --info sys-kernel/installkernel

Is there a - next to ugrd near the bottom or not?

#

In the USE="

queen bolt
cobalt verge
#

Yeah what's near the bottom

#

Should be something like this

queen bolt
#

X a52 aac acc acpi

#

im trying to find ugrd

cobalt verge
#

Hm

#

Maybe it really isn't finding installkernel

#

Wait no

#

Then it'd be a short message with "there are no ebuilds to satisfy"

queen bolt
#

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

cobalt verge
#

Hm

#

You ran the full command right?

queen bolt
#

wdym

#

the info? yeah

cobalt verge
#
emerge --info sys-kernel/installkernel
#

Yea

queen bolt
#

yes

cobalt verge
#

Hm

#

It should either give you this

#

Or if there is a typo or package doesn't exist, should be this

queen bolt
#

js tell me how to install the euse so i can make it do it for me

cobalt verge
#

emerge gentoolkit

#

Oh wait also

#

Do:

queen bolt
#

bro the error appears in everything now

#

every command i do

#

the invalid atom one

cobalt verge
#

Yeah invalid atom means the package name is unknown in that ugrd file

queen bolt
#

okay so now i do the euse thing right

cobalt verge
#

Wait

#

For now

#

emerge wgetpaste

queen bolt
#

done

cobalt verge
#

Then

#

wgetpaste -c 'ls /etc/portage/package.use; cat /etc/portage/package.use/ugrd'

#

And send the link that it outputs here

queen bolt
#

it’s taking time to output anything

#

apparently nothing was received it said

#

it says to enable verbose or debug

cobalt verge
#

Huhhhh

#

You have internet

#

right

queen bolt
#

yeah

cobalt verge
#

Otherwise you couldn't install stuff

queen bolt
#

i’m using firefox in the background rn

cobalt verge
#

Alright you know what

#

For now do rm /etc/portage/package.use/ugrd

queen bolt
#

done

cobalt verge
#

Then do euse -E ugrd -p sys-kernel/installkernel

queen bolt
#

okay done

#

when i do info it still doesn’t appear

#

is that normal

cobalt verge
#

Now do ls /etc/portage/package.use

cobalt verge
queen bolt
#

installkernel (new file made) and liverpool

#

bro

#

libsepol

#

not liverpool

cobalt verge
#

Hm

#

What happens if you do emerge --search installkernel

#

I get this right now

queen bolt
#

[ Results for search key : installkernel ]
Searching...

[ Applications found : 2 ]

cobalt verge
#

Well

#

emerge installkernel

#

Or

#

with -a

#

Tbh

#

We want to make sure it has that USE flag now

queen bolt
#
  • 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"

cobalt verge
#

Alright yea looks fine

queen bolt
#

ugrd is at the top with no -

cobalt verge
#

Yep

#

So it is enabled

queen bolt
#

so why is it not letting me use diff commands

cobalt verge
#

What commands?

queen bolt
#

i’m tryna set my timezone nd it won’t work for some reason

cobalt verge
#

I guess try again

#

Should work now

#

If you're talking about invalid atom thingie

queen bolt
#

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.`
cobalt verge
#

I guess redo that section in the handbook, or maybe this works as intended

queen bolt
#

why is the timezone full days off from when it is today

#

it’s saying my country is mar 13

#

2024

cobalt verge
#

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

queen bolt
#

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

cobalt verge
#

It isn't easier than arch, but it is comparable, unless you run arch install script that automates a lot of stuff

queen bolt
#

it was my first distro and installing was so so easy

cobalt verge
#

Alright

#

I just checked

#

There are high chances you ran
ln -sf ../usr/share/zoneinfo/[...] /etc/localtime
command when in the wrong folder

queen bolt
#

im not in any folder

#

this is all on the root

#

cheoor

cobalt verge
#

Run pwd

#

That's the folder your terminal is in

queen bolt
#

chroot

cobalt verge
#

cd is what changes what folder you're in

queen bolt
#

i think i got it working already

cobalt verge
queen bolt
#

so i think its fine

cobalt verge
#

What does ls -l /etc/localtime say

queen bolt
cobalt verge
#

Ok

cobalt verge
queen bolt
#

my internet is horrific bro

queen bolt
#

how do i know which kernel version i ahve

cobalt verge
cobalt verge
#

U got the arrow and it gives u correct names of files?

queen bolt
#

yup

cobalt verge
#

What kernel are you using?

queen bolt
#

i dont know

cobalt verge
#

gentoo-kernel or gentoo-kernel-bin or gentoo-sources

#

Or something else

queen bolt
#

oh

#

gentoo sources

quasi pollen
queen bolt
#

should i js do a binary kernel install?

quasi pollen
#

you almost certainly want gentoo-kernel-bin to start

queen bolt
#

so like

quasi pollen
#

do you have a bootloader installed and configured?

queen bolt
#

i was js told to do the ugrd part first then the rest

cobalt verge
#

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

quasi pollen
#

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

queen bolt
#

Linux-6.8.0 is my version i think

quasi pollen
#

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

queen bolt
#

im js gonna do a binary kernel instead this is hurting my brain

quasi pollen
#

bootloader config can be set at a USE flag on installkernel, more or less, but that won't actually install it for you

cobalt verge
queen bolt
#

i avoided anything rlated to installing kernel other than gentoo sources

cobalt verge
cobalt verge
quasi pollen
#

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

queen bolt
#

emerge: there are no ebuilds to satisfy "sys-kernel/installkernel-gentoo".

#

i got this while trying to run

quasi pollen
#

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

queen bolt
#

so doing this doesnt help

#

emerge sys-kernel/installkernel-gentoo

cobalt verge
#

installkernel-gentoo doesn't exist, there is just installkernel

queen bolt
#

oh

quasi pollen
#

but it pulls sys-kernel/installkernel

#

you don't have to

#

it already depends onit

queen bolt
#

!!! 'gentoo-kernel-bin~' is not a valid package atom. !!! Please check ebuild(5) for full details.

cobalt verge
#

You added a ~ by accident somehow I think?

queen bolt
#

you are right

#

no clue how that happened

quasi pollen
#

do you know what bootloader you want to use?

queen bolt
#

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

quasi pollen
#

are you following some guide or just doing it step by step as someone tells you to?

cobalt verge
queen bolt
quasi pollen
#

fstab is pretty powerful

queen bolt
cobalt verge
queen bolt
#

yeah

cobalt verge
#

What does the link do?

queen bolt
#

is this part important

queen bolt
quasi pollen
#

do you have extra partitions?

queen bolt
#

sda3

#

sda2

#

and sda1

quasi pollen
#

for what

queen bolt
#

sda1 for 100m

#

sda2 for 4gb of swap

#

sda3 as main part

quasi pollen
#

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

cobalt verge
#

I'd just edit fstab, it's good to know how to use it

queen bolt
#

how do i screenshot on linux mint

#

sda1 = /boot/efi

#

sda 2 = swap

quasi pollen
#

fstab syntax is real similar to just running the mount command

#

and the fstab has examples for swap

queen bolt
#

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

cobalt verge
# cobalt verge I'd just edit fstab, it's good to know how to use it

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

cobalt verge
#

Mine looks like this right now

#

It's not super complicated in the end

queen bolt
#

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

queen bolt
#

the download didnt work omds man

cobalt verge
queen bolt
#

it didn’t work

#

is there a diff between using —getbinpkg in the world set command or no

queen bolt
#

@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

cobalt verge
#

I personally use GRUB and most people do

queen bolt
#

alright how do i set it up?

queen bolt
#

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

cobalt verge
#

What part are you talking about

queen bolt
#

grub

#

right under boatloads

#

bootloader

cobalt verge
#

Did you emerge it?

queen bolt
#

i haven’t emerged anything other than gentoolkit

cobalt verge
#

Not even gentoo-kernel-bin?

queen bolt
#

nope

#

i’m tryna be safe now

cobalt verge
#

Huh alright

queen bolt
#

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

cobalt verge
#

Then

#

Wait are you on the part I linked or on

queen bolt
#

sys-kernel/installkernel

#

that part

cobalt verge
#

Alright

queen bolt
#

what should i do first

#

cus i’m gonna eventually put gentoo on my main device

cobalt verge
#

So basically add a grub USE flag to installkernel same like you did with ugrd

#

Then skip systemd-boot

queen bolt
#

just replace ugrd with “grub”

#

?

cobalt verge
#

Try editing the text file this command made last time

queen bolt
#

so nano and then add grub

cobalt verge
#

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

queen bolt
#

00cpu-flags and libesepol

queen bolt
cobalt verge
#

Also

queen bolt
#

what the hell man

cobalt verge
#

Same here lol

#

Discord is dying

queen bolt
#

it’s annoying me

#

so do i use the command i showed?

cobalt verge
queen bolt
#

and static libs

cobalt verge
#

Wasn't there a file called installkernel in that folder earlier

queen bolt
#

didn’t get added yet i didn’t use the command

cobalt verge
#

Ah ok

#

You should be able to just run that command then yeah

#

With both grub and ugrd USE flags

queen bolt
#

now what

cobalt verge
#

You can verify if it worked by checking those files in package.use

queen bolt
#

IM STUCK

#

I CANT TYPE

cobalt verge
#

In terminal or Discord?

queen bolt
cobalt verge
#

oof

#

You can hold message that didn't go thru to retry

queen bolt
#

i did

cobalt verge
#

Did what?

#

Anyways, skip EFI stub since we'll use grub

queen bolt
#

none of the messages are going through

cobalt verge
#

Make sure u enabled ugrd and grub for installkernel then keep following the wiki using gentoo-kernel-bin

queen bolt
#

ive been retrying so many times

#

its not working

queen bolt
#

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

queen bolt
#

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

cobalt verge
#

Read it for me

queen bolt
#

im way passed it

cobalt verge
#

It was about Universal Kernel Image

queen bolt
#

im at the final part and for some reason grub install refuses to work

cobalt verge
#

Which is something you aren't using

queen bolt
#

im passed that

cobalt verge
#

Alright

queen bolt
#

grub-install: error: /usr/lib/grub/i386-pc/modinfo.sh doesn't exist. Please specify --target or --directory.

cobalt verge
#

You didn't tell me whether you did it or not

queen bolt
#

how do i fix this

queen bolt
cobalt verge
#

That section I mentioned earlier

#

So I didn't know if you messed things up or not

cobalt verge
#

Alright

queen bolt
#

i installed the one with -bin at the end eachtime

#

now how do i fix this

cobalt verge
#

Where are you at in the Handbook?

#

Which section?

queen bolt
#

selecting a bootloader: default grub

cobalt verge
queen bolt
#

yes

cobalt verge
#

With this command for legacy/BIOS systems?

queen bolt
#

i dont get wym but i think im a bios system

cobalt verge
#

Like 99% of the computers made in the last decade or two are using UEFI

queen bolt
#

idk then but i gotta make an extra partition to boot

cobalt verge
#

Didn't you do that already

#

The 400MB one or so

queen bolt
#

no

cobalt verge
#

Whatever the amount was

queen bolt
#

i need 4 partitions and one thats set as bios boot

cobalt verge
#

100Mb

queen bolt
#

which i did already but this isnt the situation this time

cobalt verge
#

You don't need a BIOS partition for UEFI

queen bolt
#

its bios

cobalt verge
#

Shouldn't matter

#

PCs can run in BIOS mode as an emergency

queen bolt
#

it didnt allow me to boot

#

unless i made

#

an extra partion

#

bro i might js restart and give up

cobalt verge
#

Look up your motherboard model

queen bolt
#

im on a vm

cobalt verge
#

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

queen bolt
#

doesnt say but it forces me to make a forth partition

cobalt verge
#

Ask around in support chat

cobalt verge
#

Are you sure you did everything right

#

But anyways

#

Gtg

#

Ask someone else

#

Good night

#

Sorry we haven't figured it out

queen bolt
#

i js ran every command i saw that i thought would work

cobalt verge