Re: [gentoo-user] UEFI system - installing Grub without EFI

2020-12-11 Thread J. Roeleveld
On 12 December 2020 03:28:35 CET, the...@sys-concept.com wrote:
>I was trying to check VFAT boot partition on my disk with Gparted but
>it
>failed.  Root partition checked OK.
>
>Can I format the VFAT to EXT2 and install grub on it without EFI?
>
>There is a possibility VFAT partition  got damaged.

UEFI needs VFAT for the efi-partition.


-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.



Re: [gentoo-user] fsck.fat 4.1 - File system couldn't be fixed

2020-12-11 Thread Dan Egli

Actually, you have an error or two below.

On 12/11/2020 6:16 PM, the...@sys-concept.com wrote:

No, I did not reformat the /boot partition. I just cd to /boot and run:
rm -r *
Probably better to wipe the file system. But you talk about moving away 
from EFI in another thread, so we'll just say that should this happen 
again, you should wipe with mkfs. instead of just rm -r.


Yes, this machine is new but I run it for a over 10-days, configured
most of the programs and it was running without much problems.
Yesterday, I decided to check some parameters in kernel .config so I run:
  genkernel --menuconfig all


Next time, just do this:

cd /usr/src/linux
make menconfig (or nconfig)


* Gentoo Linux Genkernel; Version 4.1.2
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --kernel-config=/proc/config.gz all

* Working with Linux kernel 5.4.72-gentoo-x86_64 for x86_64
* Using kernel config file '/proc/config.gz' ...
*
* Note: The version above is subject to change (depends on config and
status of kernel sources).

* kernel: >> Initializing ...
* >> Running 'make clean' ...
* >> --mrproper is set; Making 'make mrproper' ...
* >> Will ignore kernel config from '/proc/config.gz'
*in favor of already existing but different kernel config
*found in '/usr/src/linux/.config' ...
*
So you are wrong below. As you can see above, genkernel IS using 
/usr/src/linux/.config. I'm not 100% certain, but I THINK genkernel will 
compare the config files, and prefer the .config if it is present.

  >> Running 'make oldconfig' ...
* >> Compiling 5.4.72-gentoo-x86_64 bzImage ...


When I exit it it started to compile the kernel (it did not finish) I
pressed
"CTRL-C" (interrupted).
I didn't know then, but running genkernel --menuconfig all
takes configuration from:
/etc/kernels/kernel-config-5.4.72-gentoo-x86_64

not from: /usr/src/linux/.config
No, unless /etc/kernels/kernel-config- is NEWER than .config, 
and maybe not even then. See above.

However, NO FILE HAD CHANGED IN /boot
But this this is the moment, I couldn't boot correctly.

What was the boot error?

make && make modules_install
make install
genkernel --install --kernel-config=/usr/src/linux/.config initramfs
grub-install --target=x86_64-efi --efi-directory=/boot
grub-mkconfig -o /boot/grub/grub.cfg

But nothing had changed. So I tired newer kernel: 5.4.80-gentoo-r1-x86_64
But this time I run (without interruptions):
  genkernel --menuconfig all
grub-mkconfig -o /boot/grub/grub.cfg

And again nothing changed, root "/" still mounts "ro"

findmnt
TARGETSOURCE FSTYPE   OPTIONS
/ /dev/nvme0n1p4 ext4 ro,relatime

Normally it should be:
findmnt
TARGET   SOURCE  FSTYPE  OPTIONS
//dev/sda4   ext4rw,noatime,data=ordered
Looks like it's not getting to the root remount stage. The kernel will 
almost always boot in ro mode. So you're probably getting stuck in the 
emergency shell. Can you see your device in /dev?

Does dmesg show the drive being recognised, corresponding drivers being
loaded, partitions and filesystems recognised?

cat dmesg  |grep error
doesn't show any errors

What's the last 10 or so lines from dmesg when it fails to boot and goes 
to what I'm guessing is the emergency shell?

I'll try to boot GParted and see what comes up.



I don't think gparted is your answer. Sounds to me like something is 
causing it to fail in the changeover from your initrd to the actual 
drive. If that's the case I bet your partitions are fine. Can you show 
us the last 10-15 lines printed on the screen before you get stuck?


--
Dan Egli
From my Test Server




Re: [gentoo-user] UEFI system - installing Grub without EFI

2020-12-11 Thread Dan Egli
As long as your system is set to use legacy/bios mode instead of EFI 
then I don't see why not.


On 12/11/2020 7:28 PM, the...@sys-concept.com wrote:

I was trying to check VFAT boot partition on my disk with Gparted but it
failed.  Root partition checked OK.

Can I format the VFAT to EXT2 and install grub on it without EFI?

There is a possibility VFAT partition  got damaged.



--
Dan Egli
From my Test Server




Re: [gentoo-user] switching from "refine" to "grub"

2020-12-11 Thread Dan Egli

I can not say for certain, but I imagine it would be something like this:

emerge -c refine
rm  -rf  
rm -rf /boot/refine
GRUB_TARGET="x86_64-efi" emerge grub
grub-install --efi-directory= --target=x86_64-efi
grub-mkconfig -o /boot/grub/grub.cfg


Of course you really should put the GRUB_TARGET in your make.conf, but 
in a pinch that will work. I'm assuming you are using a 64-bit EFI 
enabled computer. The grub steps I am sure of. I've never used refine 
before, so I don't know it.


On 12/11/2020 7:48 AM, the...@sys-concept.com wrote:

I use refine as boot loader but it is giving me a problems.
How to switch back to grub 2
And remove any refine files from /boot


--
Dan Egli
From my Test Server




[gentoo-user] UEFI system - installing Grub without EFI

2020-12-11 Thread thelma
I was trying to check VFAT boot partition on my disk with Gparted but it
failed.  Root partition checked OK.

Can I format the VFAT to EXT2 and install grub on it without EFI?

There is a possibility VFAT partition  got damaged.




Re: [gentoo-user] fsck.fat 4.1 - File system couldn't be fixed

2020-12-11 Thread thelma
On 12/11/2020 04:50 PM, Michael wrote:
> On Friday, 11 December 2020 22:29:12 GMT the...@sys-concept.com wrote:
>> On 12/11/2020 03:06 PM, Jack wrote:
>>> On 12/11/20 4:36 PM, the...@sys-concept.com wrote:
 I wipe the /boot, reinstall kernel, initframes, grub.
 The system boots, I can login as root but X is not running,
 the command is displaying:  "(none) /#"

 When I try to start the network I get:
 fsck.fat 4.1 (2017-01-24) open: no such file or directory
 Filesystems couldn't be fixed
 ERROR: fsck failed to start
[snip]
>>>
>>> Are you sure that fsck message has anything to do with starting the
>>> network?  It looks like fsck can't find the open command, so there may
>>> be something more wrong than just a read-only /.
>>
>> I'm using now linux-5.4.72-gentoo, grub only. Install boot loader from
>> scratch.
>> I only use genkernel to install initframes:
>>
>> genkernel --install --kernel-config=/usr/src/linux/.config initramfs
>>
>> No, errors during startup in dmesg.  So I have very little to go by.
>> Trying  "touch 1.txt"
>> Read-only file system.
>>
>> I'm using slim, but I can deal with X later on.
>> Something happen to this system and I can not fix it, it is a brand new
>> installation, but not reliable :-/
> 
> When you "wiped /boot" did you reformat the partition?  If yes, did you 
> recreate a filesystem label with the same name as used in your /etc/fstab?

No, I did not reformat the /boot partition. I just cd to /boot and run:
rm -r *

> Is this a brand new kernel image + initramfs, or a kernel image which you 
> have 
> used at least once before to boot this machine successfully?

Yes, this machine is new but I run it for a over 10-days, configured
most of the programs and it was running without much problems.
Yesterday, I decided to check some parameters in kernel .config so I run:
 genkernel --menuconfig all

* Gentoo Linux Genkernel; Version 4.1.2
* Using genkernel configuration from '/etc/genkernel.conf' ...
* Running with options: --kernel-config=/proc/config.gz all

* Working with Linux kernel 5.4.72-gentoo-x86_64 for x86_64
* Using kernel config file '/proc/config.gz' ...
*
* Note: The version above is subject to change (depends on config and
status of kernel sources).

* kernel: >> Initializing ...
* >> Running 'make clean' ...
* >> --mrproper is set; Making 'make mrproper' ...
* >> Will ignore kernel config from '/proc/config.gz'
*in favor of already existing but different kernel config
*found in '/usr/src/linux/.config' ...
* >> Running 'make oldconfig' ...
* >> Compiling 5.4.72-gentoo-x86_64 bzImage ...


When I exit it it started to compile the kernel (it did not finish) I
pressed
"CTRL-C" (interrupted).
I didn't know then, but running genkernel --menuconfig all
takes configuration from:
/etc/kernels/kernel-config-5.4.72-gentoo-x86_64

not from: /usr/src/linux/.config

However, NO FILE HAD CHANGED IN /boot
But this this is the moment, I couldn't boot correctly.

So after several tries I wipe the /boot, I downloaded standard kernel
linux-5.4.72-gentoo run as usual:
make && make modules_install
make install
genkernel --install --kernel-config=/usr/src/linux/.config initramfs
grub-install --target=x86_64-efi --efi-directory=/boot
grub-mkconfig -o /boot/grub/grub.cfg

But nothing had changed. So I tired newer kernel: 5.4.80-gentoo-r1-x86_64
But this time I run (without interruptions):
 genkernel --menuconfig all
grub-mkconfig -o /boot/grub/grub.cfg

And again nothing changed, root "/" still mounts "ro"

findmnt
TARGETSOURCE FSTYPE   OPTIONS
/ /dev/nvme0n1p4 ext4 ro,relatime

Normally it should be:
findmnt
TARGET   SOURCE  FSTYPE  OPTIONS
//dev/sda4   ext4rw,noatime,data=ordered

> Does dmesg show the drive being recognised, corresponding drivers being 
> loaded, partitions and filesystems recognised?

cat dmesg  |grep error
doesn't show any errors

> Does syslog show any relevant errors?

Kernel log, nor error entry either.

> Does 'mount' or 'findmnt' show all your partitions?

Yes, they are all "rw" except the "/" partition  /dev/nvme0n1p4

> Are they mounted as rw?
> 
> These are just some steps you could follow to find out at what stage a 
> problem 
> may have occurred and what to check/fix to get it booting successfully.
> 
> PS.  These days there are precompiled kernels + initramfs available to get a 
> system booting quickly, like sys-kernel/gentoo-kernel-bin, before you finesse 
> a slimmer kernel manually later on - should you ever wish to roll your own by 
> hand.

I'll try to boot GParted and see what comes up.




Re: [gentoo-user] fsck.fat 4.1 - File system couldn't be fixed

2020-12-11 Thread Michael
On Friday, 11 December 2020 22:29:12 GMT the...@sys-concept.com wrote:
> On 12/11/2020 03:06 PM, Jack wrote:
> > On 12/11/20 4:36 PM, the...@sys-concept.com wrote:
> >> I wipe the /boot, reinstall kernel, initframes, grub.
> >> The system boots, I can login as root but X is not running,
> >> the command is displaying:  "(none) /#"
> >> 
> >> When I try to start the network I get:
> >> fsck.fat 4.1 (2017-01-24) open: no such file or directory
> >> Filesystems couldn't be fixed
> >> ERROR: fsck failed to start
> >> 
> >> It seems to me "/" file system mount in "read only" mode.
> >> When I try to emerge anything I get: /var/log/emerge.log Read-only file
> >> system.
> > 
> > I fell like I'm shooting at a moving target.  Are you using genkernel or
> > not?  Are you using grub or rEFInd?  Is there any interesting error in
> > dmesg?  Is initframes hopefully just a typo for initramfs?  When
> > booting, can you see what the boot  mgr is doing or trying to do?
> > 
> > You say X is not running -  are you using (or trying to use) a display
> > manager?  You might be better off starting without one, and using a
> > command line login before adding the complexity of X.
> > 
> > I'll guess the "none" is the hostname as part of your shell prompt.  You
> > can "fix" that by setting a hostname for the PC.
> > 
> > Are you sure that fsck message has anything to do with starting the
> > network?  It looks like fsck can't find the open command, so there may
> > be something more wrong than just a read-only /.
> 
> I'm using now linux-5.4.72-gentoo, grub only. Install boot loader from
> scratch.
> I only use genkernel to install initframes:
> 
> genkernel --install --kernel-config=/usr/src/linux/.config initramfs
> 
> No, errors during startup in dmesg.  So I have very little to go by.
> Trying  "touch 1.txt"
> Read-only file system.
> 
> I'm using slim, but I can deal with X later on.
> Something happen to this system and I can not fix it, it is a brand new
> installation, but not reliable :-/

When you "wiped /boot" did you reformat the partition?  If yes, did you 
recreate a filesystem label with the same name as used in your /etc/fstab?

Is this a brand new kernel image + initramfs, or a kernel image which you have 
used at least once before to boot this machine successfully?

Does dmesg show the drive being recognised, corresponding drivers being 
loaded, partitions and filesystems recognised?

Does syslog show any relevant errors?

Does 'mount' or 'findmnt' show all your partitions?

Are they mounted as rw?

These are just some steps you could follow to find out at what stage a problem 
may have occurred and what to check/fix to get it booting successfully.

PS.  These days there are precompiled kernels + initramfs available to get a 
system booting quickly, like sys-kernel/gentoo-kernel-bin, before you finesse 
a slimmer kernel manually later on - should you ever wish to roll your own by 
hand.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] fsck.fat 4.1 - File system couldn't be fixed

2020-12-11 Thread thelma
On 12/11/2020 03:06 PM, Jack wrote:
> On 12/11/20 4:36 PM, the...@sys-concept.com wrote:
>> I wipe the /boot, reinstall kernel, initframes, grub.
>> The system boots, I can login as root but X is not running,
>> the command is displaying:  "(none) /#"
>>
>> When I try to start the network I get:
>> fsck.fat 4.1 (2017-01-24) open: no such file or directory
>> Filesystems couldn't be fixed
>> ERROR: fsck failed to start
>>
>> It seems to me "/" file system mount in "read only" mode.
>> When I try to emerge anything I get: /var/log/emerge.log Read-only file
>> system.
> 
> I fell like I'm shooting at a moving target.  Are you using genkernel or
> not?  Are you using grub or rEFInd?  Is there any interesting error in
> dmesg?  Is initframes hopefully just a typo for initramfs?  When
> booting, can you see what the boot  mgr is doing or trying to do?
> 
> You say X is not running -  are you using (or trying to use) a display
> manager?  You might be better off starting without one, and using a
> command line login before adding the complexity of X.
> 
> I'll guess the "none" is the hostname as part of your shell prompt.  You
> can "fix" that by setting a hostname for the PC.
> 
> Are you sure that fsck message has anything to do with starting the
> network?  It looks like fsck can't find the open command, so there may
> be something more wrong than just a read-only /.

I'm using now linux-5.4.72-gentoo, grub only. Install boot loader from
scratch.
I only use genkernel to install initframes:

genkernel --install --kernel-config=/usr/src/linux/.config initramfs

No, errors during startup in dmesg.  So I have very little to go by.
Trying  "touch 1.txt"
Read-only file system.

I'm using slim, but I can deal with X later on.
Something happen to this system and I can not fix it, it is a brand new
installation, but not reliable :-/




Re: [gentoo-user] fsck.fat 4.1 - File system couldn't be fixed

2020-12-11 Thread Jack

On 12/11/20 4:36 PM, the...@sys-concept.com wrote:

I wipe the /boot, reinstall kernel, initframes, grub.
The system boots, I can login as root but X is not running,
the command is displaying:  "(none) /#"

When I try to start the network I get:
fsck.fat 4.1 (2017-01-24) open: no such file or directory
Filesystems couldn't be fixed
ERROR: fsck failed to start

It seems to me "/" file system mount in "read only" mode.
When I try to emerge anything I get: /var/log/emerge.log Read-only file
system.


I fell like I'm shooting at a moving target.  Are you using genkernel or 
not?  Are you using grub or rEFInd?  Is there any interesting error in 
dmesg?  Is initframes hopefully just a typo for initramfs?  When 
booting, can you see what the boot  mgr is doing or trying to do?


You say X is not running -  are you using (or trying to use) a display 
manager?  You might be better off starting without one, and using a 
command line login before adding the complexity of X.


I'll guess the "none" is the hostname as part of your shell prompt.  You 
can "fix" that by setting a hostname for the PC.


Are you sure that fsck message has anything to do with starting the 
network?  It looks like fsck can't find the open command, so there may 
be something more wrong than just a read-only /.





[gentoo-user] fsck.fat 4.1 - File system couldn't be fixed

2020-12-11 Thread thelma
I wipe the /boot, reinstall kernel, initframes, grub.
The system boots, I can login as root but X is not running,
the command is displaying:  "(none) /#"

When I try to start the network I get:
fsck.fat 4.1 (2017-01-24) open: no such file or directory
Filesystems couldn't be fixed
ERROR: fsck failed to start

It seems to me "/" file system mount in "read only" mode.
When I try to emerge anything I get: /var/log/emerge.log Read-only file
system.




Re: [gentoo-user] Gobbledegook error message from emerge.

2020-12-11 Thread Neil Bothwick
On Fri, 11 Dec 2020 18:08:55 +, Alan Mackenzie wrote:

> I got back a horrendously long list of packages to merge (most of them
> re-merges), followed by:
> 
> emerge: there are no ebuilds built with USE flags to satisfy
> "dev-python/pycparser[python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,python_targets_python3_9(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)]".
> !!! One of the following packages is required to complete your request:
> - dev-python/pycparser-2.20-r1::gentoo (Change USE:
> +python_targets_python3_7)
> - dev-python/cffi-1.14.0-r3::gentoo (Change USE:
> -python_targets_python3_7) (dependency required by

A required package is just a dependency. If package A depends on package
B then package B is required is you have A installed.

> "dev-python/cffi-1.14.0-r3::gentoo" [ebuild]) (dependency required by
> "dev-python/bcrypt-3.2.0::gentoo" [installed]) (dependency required by
> "dev-python/paramiko-2.7.1::gentoo" [installed]) (dependency required
> by "dev-vcs/bzr-2.7.0::gentoo" [installed])

This is part of the python cleanup/upgrade already discussed at length on
this list over the past week, so the answers are already available. You
have had some useful replies already but one thing I noticed it that this
is brought about by bzr, which is no longer in portage. Unless you have
it installed from an overlay for a particular need of yours, you should
let it be depcleaned.


-- 
Neil Bothwick

A TRUE Klingon warrior does not comment his code!


pgpg4iYLvRNpK.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread Michael
On Friday, 11 December 2020 18:56:19 GMT the...@sys-concept.com wrote:
> On 12/11/2020 11:39 AM, Michael wrote:
> > On Friday, 11 December 2020 18:24:27 GMT the...@sys-concept.com wrote:
> >> On 12/11/2020 10:45 AM, Michael wrote:
> >>> On Friday, 11 December 2020 16:42:08 GMT tedheadster wrote:
>  On Fri, Dec 11, 2020 at 9:27 AM  wrote:
> > On 12/11/2020 07:07 AM, the...@sys-concept.com wrote:
> >> Now, when I boot I get a message:
> >> 
> >> Block device UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b is not a valid
> >> root device.
> > 
> > This puzzles me. I cannot find the string "is not a valid root device"
> > (or
>  
>  sub-strings) in the source code for the Linux kernel, GRUB2, and
>  refind.
>  It
>  seems to me it should be in one of them.
>  
>  - Matthew
> >>> 
> >>> The error is indicative of the kernel driver for the / block device
> >>> missing. If it is not built in-the-kernel, but as a module, then it
> >>> should be in initramfs.
> >>> 
> >>> Copy the kernel image, System.map, .config and corresponding initramfs
> >>> to
> >>> the /boot partition, then point your boot manager to the kernel to boot
> >>> it.
> >> 
> >> How do you copy/generate initramfs in /boot directory?
> > 
> > https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel
> > https://wiki.gentoo.org/wiki/Genkernel
> > 
> > If you're using genkernel it will copy it to /boot.  Besides the Handbook
> > you may find the following reference material on boot managers/loaders
> > useful:
> > 
> > For rEFInd see here:
> > 
> > https://wiki.gentoo.org/wiki/Refind
> > 
> > For GRUB see here:
> > 
> > https://wiki.gentoo.org/wiki/GRUB2
> > 
> > For efibootmgr see here:
> > 
> > https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/
> > Bootloader#Alternative_2:_efibootmgr
> 
> After I compile kernel I usually get this message (WHY?):
> 
> * You will find the initramfs in '/boot/initramfs-5.4.72-gentoo.img'.
> 
> * WARNING... WARNING... WARNING...
> * Additional kernel parameters that *may* be required to boot properly:
> *
> * With support for several ext* filesystems available, it may be needed to
> * add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.

I would have thought all modern boot loaders can read ext* filesystems, 
without needing to specify the filesystem type by passing the kernel 
parameters yourself to the boot loader.  However, I don't use genkernel to 
know how to configure/modify it so it boots with different boot managers.  If 
the details are not explained in the links I provided above, someone 
experienced in using genkernel should give some pointers.

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Gobbledegook error message from emerge.

2020-12-11 Thread Michael
On Friday, 11 December 2020 18:08:55 GMT Alan Mackenzie wrote:
> Hello, Gentoo.
> 
> I'm angry, because I've wasted several hours trying to decypher a wholly
> unintuitive error "message" from emerge.  Because of this, it's been too
> long since I've been able to update.  Help, please!

I feel your pain, as I have often sweated over messages emerge spews out at 
me, which tends to happen mostly when I do not have the time to delve into 
fixing it!  I sometimes also find these messages to be unintuitive (for me) as 
I struggle to decipher 'portaguese'.  :-)


> The command I typed in was
> 
> # time emerge -auND @world.
> 
> I got back a horrendously long list of packages to merge (most of them
> re-merges), followed by:

There was a recent python upgrade, which caused a lot of packages with python 
as a dependency requiring an update or to be rebuilt.  Other users were also 
caught up in this.  A recommendation was to run emerge with '-U', rather than 
'-N', which may produce a smaller list of packages to update.


> emerge: there are no ebuilds built with USE flags to satisfy
> "dev-python/pycparser[python_targets_python3_6(-)?,python_targets_python3_7
> (-)?,python_targets_python3_8(-)?,python_targets_python3_9(-)?,-python_singl
> e_target_python3_6(-),-python_single_target_python3_7(-),-python_single_targ
> et_python3_8(-),-python_single_target_python3_9(-)]". !!! One of the
> following packages is required to complete your request: -
> dev-python/pycparser-2.20-r1::gentoo (Change USE:
> +python_targets_python3_7) - dev-python/cffi-1.14.0-r3::gentoo (Change USE:
> -python_targets_python3_7) (dependency required by
> "dev-python/cffi-1.14.0-r3::gentoo" [ebuild]) (dependency required by
> "dev-python/bcrypt-3.2.0::gentoo" [installed]) (dependency required by
> "dev-python/paramiko-2.7.1::gentoo" [installed]) (dependency required by
> "dev-vcs/bzr-2.7.0::gentoo" [installed])
> (dependency required by "@selected" [set])
> (dependency required by "@world" [argument])
> 
> .  What is the syntax and semantics of that first line?  Is it explained
> somewhere in the emerge manual?  What do the square brackets mean?  What
> do the commas within these square brackes mean?  AND?  OR?  What about
> the question marks following minus signs inside parentheses?

Have a quick look at:

https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/Portage

and in particular the section "Necessary USE flag changes", but also look at 
the output of the package which complains about change of USE, with eix, e.g.:

$ eix -l dev-python/pycparser
[I] dev-python/pycparser
 Available versions:  
2.20-r1 [PYTHON_TARGETS="pypy3 python3_6 python3_7 python3_8 
python3_9"] ["|| ( python_targets_pypy3 python_targets_python3_6 
python_targets_python3_7 python_targets_python3_8 python_targets_python3_9 )"]
 Installed versions:  2.20-r1(12:55:41 05/12/20)(PYTHON_TARGETS="python3_8 
-pypy3 -python3_6 -python3_7 -python3_9")
 Homepage:https://github.com/eliben/pycparser
 Description: C parser and AST generator written in Python

The output explains what USE flags the package was installed with and what 
other flags are available.  Other tools also show USE flags, e.g. 

$ equery u dev-python/pycparser

Also, taking a look at the ebuild file could reveal similarly useful info:

PYTHON_COMPAT=( python3_{6,7,8,9} pypy3 )



> What does "(Change USE: +python_targets_python3_7)" mean?  Is it a
> suggestion to me that I should change some USE flag somewhere?  Or is it
> telling me that a changed USE flag is the reason for all the trouble?  Or
> does it mean something else?

It means the particular package was installed with some USE flag, which is now 
incompatible with the current version of the package or one of its 
dependencies.  You'll need USE="+python_targets_python3_7" to be able to build 
it.  Therefore you may need to intervene to change a previous USE flag setting 
to allow that package to rebuild/update.

In cases like this I tend to grep quickly my /etc/portage settings to see if I 
have configured manually a USE flag, which is no longer needed;  e.g. 
python3_5 - then unset it, unless you have a particular reason to force this 
USE flag for some package which you need on your system.

grep python*_ -r /etc/portage


> What is "dependency required by" supposed to mean?  I can understand a
> dependency of A on B.  I can understand A being required by B.  But a
> dependency being required?  what does this mean?

I understand "dependency required by" to refer to package B, which is a build 
time dependency of package A.  Package B also requires a change of USE flag, 
besides package A.

(If I got this wrong someone will chime in to correct me).


> Presumably to get out of the mess I've got to do something with one of
> the packages which "is required to complete your request".

I would interpret the message you got to mean:

You have set some USE flag somewhere, or have previously 

Re: [gentoo-user] Gobbledegook error message from emerge.

2020-12-11 Thread John Covici
On Fri, 11 Dec 2020 13:08:55 -0500,
Alan Mackenzie wrote:
> 
> Hello, Gentoo.
> 
> I'm angry, because I've wasted several hours trying to decypher a wholly
> unintuitive error "message" from emerge.  Because of this, it's been too
> long since I've been able to update.  Help, please!
> 
> The command I typed in was
> 
> # time emerge -auND @world.
> 
> I got back a horrendously long list of packages to merge (most of them
> re-merges), followed by:
> 
> emerge: there are no ebuilds built with USE flags to satisfy 
> "dev-python/pycparser[python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,python_targets_python3_9(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)]".
> !!! One of the following packages is required to complete your request:
> - dev-python/pycparser-2.20-r1::gentoo (Change USE: +python_targets_python3_7)
> - dev-python/cffi-1.14.0-r3::gentoo (Change USE: -python_targets_python3_7)
> (dependency required by "dev-python/cffi-1.14.0-r3::gentoo" [ebuild])
> (dependency required by "dev-python/bcrypt-3.2.0::gentoo" [installed])
> (dependency required by "dev-python/paramiko-2.7.1::gentoo" [installed])
> (dependency required by "dev-vcs/bzr-2.7.0::gentoo" [installed])
> (dependency required by "@selected" [set])
> (dependency required by "@world" [argument])
> 
> .  What is the syntax and semantics of that first line?  Is it explained
> somewhere in the emerge manual?  What do the square brackets mean?  What
> do the commas within these square brackes mean?  AND?  OR?  What about
> the question marks following minus signs inside parentheses?
> 
> What does "(Change USE: +python_targets_python3_7)" mean?  Is it a
> suggestion to me that I should change some USE flag somewhere?  Or is it
> telling me that a changed USE flag is the reason for all the trouble?  Or
> does it mean something else?
> 
> What is "dependency required by" supposed to mean?  I can understand a
> dependency of A on B.  I can understand A being required by B.  But a
> dependency being required?  what does this mean?
> 
> Presumably to get out of the mess I've got to do something with one of
> the packages which "is required to complete your request".
> 
> Surely somebody in the Gentoo portage team must see that printing human
> readable error messages is a worthwhile thing to do.  Surely?

Well, what portage is trying to tell you is that you need to change or
add a file  in your /etc/portage/package.use directory to specify
dev-python/pycparser python_targets_python3_7
and that should fix it  -- and if you have --autounmask-use =y (which
is the default) it should write the changes for you and after fixing
up your package.use file or directlry if necessary, you can proceed.

I hope that helps.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

 John Covici wb2una
 cov...@ccs.covici.com



Re: [gentoo-user] Gobbledegook error message from emerge.

2020-12-11 Thread Mark Knecht
On Fri, Dec 11, 2020 at 11:09 AM Alan Mackenzie  wrote:

> (dependency required by "dev-vcs/bzr-2.7.0::gentoo" [installed])
> (dependency required by "@selected" [set])
> (dependency required by "@world" [argument])


So I'm totally guessing here but as you have no other responses yet:

I'd start near the 'top', which of course is near the bottom.

What is 'bzr'?

https://packages.gentoo.org/categories/dev-vcs

I do not see 'bzr' on this page. Is it something left over in your world
file, or just installed by some other app and no longer used, or moved to
some other package category?

If you don't know what it is and think you don't need it then if it were me
I'd consider just removing it and letting emerge @world figure out how to
proceed.

And all of that is just a guess. No Gentoo available right now to delve
further.

Best of luck,
Mark


Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread thelma
On 12/11/2020 11:39 AM, Michael wrote:
> On Friday, 11 December 2020 18:24:27 GMT the...@sys-concept.com wrote:
>> On 12/11/2020 10:45 AM, Michael wrote:
>>> On Friday, 11 December 2020 16:42:08 GMT tedheadster wrote:
 On Fri, Dec 11, 2020 at 9:27 AM  wrote:
> On 12/11/2020 07:07 AM, the...@sys-concept.com wrote:
>> Now, when I boot I get a message:
>>
>> Block device UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b is not a valid
>> root device.
>
> This puzzles me. I cannot find the string "is not a valid root device"
> (or

 sub-strings) in the source code for the Linux kernel, GRUB2, and refind.
 It
 seems to me it should be in one of them.

 - Matthew
>>>
>>> The error is indicative of the kernel driver for the / block device
>>> missing. If it is not built in-the-kernel, but as a module, then it
>>> should be in initramfs.
>>>
>>> Copy the kernel image, System.map, .config and corresponding initramfs to
>>> the /boot partition, then point your boot manager to the kernel to boot
>>> it.
>> How do you copy/generate initramfs in /boot directory?
> 
> https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel
> https://wiki.gentoo.org/wiki/Genkernel
> 
> If you're using genkernel it will copy it to /boot.  Besides the Handbook you 
> may find the following reference material on boot managers/loaders useful:
> 
> For rEFInd see here:
> 
> https://wiki.gentoo.org/wiki/Refind
> 
> For GRUB see here:
> 
> https://wiki.gentoo.org/wiki/GRUB2
> 
> For efibootmgr see here:
> 
> https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/
> Bootloader#Alternative_2:_efibootmgr

After I compile kernel I usually get this message (WHY?):

* You will find the initramfs in '/boot/initramfs-5.4.72-gentoo.img'.

* WARNING... WARNING... WARNING...
* Additional kernel parameters that *may* be required to boot properly:
*
* With support for several ext* filesystems available, it may be needed to
* add "rootfstype=ext3" or "rootfstype=ext4" to the list of boot parameters.



Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread Michael
On Friday, 11 December 2020 18:24:27 GMT the...@sys-concept.com wrote:
> On 12/11/2020 10:45 AM, Michael wrote:
> > On Friday, 11 December 2020 16:42:08 GMT tedheadster wrote:
> >> On Fri, Dec 11, 2020 at 9:27 AM  wrote:
> >>> On 12/11/2020 07:07 AM, the...@sys-concept.com wrote:
>  Now, when I boot I get a message:
>  
>  Block device UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b is not a valid
>  root device.
> >>> 
> >>> This puzzles me. I cannot find the string "is not a valid root device"
> >>> (or
> >> 
> >> sub-strings) in the source code for the Linux kernel, GRUB2, and refind.
> >> It
> >> seems to me it should be in one of them.
> >> 
> >> - Matthew
> > 
> > The error is indicative of the kernel driver for the / block device
> > missing. If it is not built in-the-kernel, but as a module, then it
> > should be in initramfs.
> > 
> > Copy the kernel image, System.map, .config and corresponding initramfs to
> > the /boot partition, then point your boot manager to the kernel to boot
> > it.
> How do you copy/generate initramfs in /boot directory?

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Kernel
https://wiki.gentoo.org/wiki/Genkernel

If you're using genkernel it will copy it to /boot.  Besides the Handbook you 
may find the following reference material on boot managers/loaders useful:

For rEFInd see here:

https://wiki.gentoo.org/wiki/Refind

For GRUB see here:

https://wiki.gentoo.org/wiki/GRUB2

For efibootmgr see here:

https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/
Bootloader#Alternative_2:_efibootmgr

signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread thelma
On 12/11/2020 10:45 AM, Michael wrote:
> On Friday, 11 December 2020 16:42:08 GMT tedheadster wrote:
>> On Fri, Dec 11, 2020 at 9:27 AM  wrote:
>>> On 12/11/2020 07:07 AM, the...@sys-concept.com wrote:
 Now, when I boot I get a message:

 Block device UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b is not a valid
 root device.
>>>
>>> This puzzles me. I cannot find the string "is not a valid root device" (or
>>
>> sub-strings) in the source code for the Linux kernel, GRUB2, and refind. It
>> seems to me it should be in one of them.
>>
>> - Matthew
> 
> The error is indicative of the kernel driver for the / block device missing.  
> If it is not built in-the-kernel, but as a module, then it should be in 
> initramfs.
> 
> Copy the kernel image, System.map, .config and corresponding initramfs to the 
> /boot partition, then point your boot manager to the kernel to boot it.

How do you copy/generate initramfs in /boot directory?




Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread thelma
On 12/11/2020 10:45 AM, Michael wrote:
> On Friday, 11 December 2020 16:42:08 GMT tedheadster wrote:
>> On Fri, Dec 11, 2020 at 9:27 AM  wrote:
>>> On 12/11/2020 07:07 AM, the...@sys-concept.com wrote:
 Now, when I boot I get a message:

 Block device UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b is not a valid
 root device.
>>>
>>> This puzzles me. I cannot find the string "is not a valid root device" (or
>>
>> sub-strings) in the source code for the Linux kernel, GRUB2, and refind. It
>> seems to me it should be in one of them.
>>
>> - Matthew
> 
> The error is indicative of the kernel driver for the / block device missing.  
> If it is not built in-the-kernel, but as a module, then it should be in 
> initramfs.
> 
> Copy the kernel image, System.map, .config and corresponding initramfs to the 
> /boot partition, then point your boot manager to the kernel to boot it.


 grep -i initramfs .config  (not showing anything)
CONFIG_INITRAMFS_SOURCE=""

After cofiguring kernel, I run:
make && make modules_install
make install
grub-install --target=x86_64-efi --efi-directory=/boot

Installing for x86_64-efi platform.
Installation finished. No error reported.

grub-mkconfig -o /boot/grub/grub.cfg

I'm using kernel:  System.map-5.4.72-gentoo

ll /boot/
total 56547
drwxr-xr-x 4 root root  512 Dec 11 08:23 EFI
-rwxr-xr-x 1 root root  4730365 Dec 11 11:01 System.map-5.4.72-gentoo
-rwxr-xr-x 1 root root  4618921 Dec 11 08:57 System.map-5.4.72-gentoo-x86_64
-rwxr-xr-x 1 root root  4451817 Dec 11 10:16
System.map-5.4.80-gentoo-r1-x86_64
-rwxr-xr-x 1 root root   121805 Dec 11 11:01 config-5.4.72-gentoo
-rwxr-xr-x 1 root root   212517 Dec 11 06:18 config-5.4.72-gentoo-x86_64
-rwxr-xr-x 1 root root   121783 Dec 11 09:48 config-5.4.72-gentoo.old
drwxr-xr-x 5 root root  512 Dec 11 11:11 grub
-rwxr-xr-x 1 root root  3573416 Dec 11 08:59
initramfs-5.4.72-gentoo-x86_64.img
-rwxr-xr-x 1 root root 10521824 Dec 11 10:26
initramfs-5.4.80-gentoo-r1-x86_64.img
-rwxr-xr-x 1 root root  9991040 Dec 11 11:01 vmlinuz-5.4.72-gentoo
-rwxr-xr-x 1 root root  9831296 Dec 11 08:57 vmlinuz-5.4.72-gentoo-x86_64
-rwxr-xr-x 1 root root  9726336 Dec 11 10:17 vmlinuz-5.4.80-gentoo-r1-x86_64

Doesn't matter which kernel I boot, the login is:
"This is (none). unknown domain 
(none) longin:

I can login as user but not as root.
It seems to me it didn't boot correctly.  Don't now what else to try.



[gentoo-user] Gobbledegook error message from emerge.

2020-12-11 Thread Alan Mackenzie
Hello, Gentoo.

I'm angry, because I've wasted several hours trying to decypher a wholly
unintuitive error "message" from emerge.  Because of this, it's been too
long since I've been able to update.  Help, please!

The command I typed in was

# time emerge -auND @world.

I got back a horrendously long list of packages to merge (most of them
re-merges), followed by:

emerge: there are no ebuilds built with USE flags to satisfy 
"dev-python/pycparser[python_targets_python3_6(-)?,python_targets_python3_7(-)?,python_targets_python3_8(-)?,python_targets_python3_9(-)?,-python_single_target_python3_6(-),-python_single_target_python3_7(-),-python_single_target_python3_8(-),-python_single_target_python3_9(-)]".
!!! One of the following packages is required to complete your request:
- dev-python/pycparser-2.20-r1::gentoo (Change USE: +python_targets_python3_7)
- dev-python/cffi-1.14.0-r3::gentoo (Change USE: -python_targets_python3_7)
(dependency required by "dev-python/cffi-1.14.0-r3::gentoo" [ebuild])
(dependency required by "dev-python/bcrypt-3.2.0::gentoo" [installed])
(dependency required by "dev-python/paramiko-2.7.1::gentoo" [installed])
(dependency required by "dev-vcs/bzr-2.7.0::gentoo" [installed])
(dependency required by "@selected" [set])
(dependency required by "@world" [argument])

.  What is the syntax and semantics of that first line?  Is it explained
somewhere in the emerge manual?  What do the square brackets mean?  What
do the commas within these square brackes mean?  AND?  OR?  What about
the question marks following minus signs inside parentheses?

What does "(Change USE: +python_targets_python3_7)" mean?  Is it a
suggestion to me that I should change some USE flag somewhere?  Or is it
telling me that a changed USE flag is the reason for all the trouble?  Or
does it mean something else?

What is "dependency required by" supposed to mean?  I can understand a
dependency of A on B.  I can understand A being required by B.  But a
dependency being required?  what does this mean?

Presumably to get out of the mess I've got to do something with one of
the packages which "is required to complete your request".

Surely somebody in the Gentoo portage team must see that printing human
readable error messages is a worthwhile thing to do.  Surely?

-- 
Alan Mackenzie (Nuremberg, Germany).



Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread Michael
On Friday, 11 December 2020 16:42:08 GMT tedheadster wrote:
> On Fri, Dec 11, 2020 at 9:27 AM  wrote:
> > On 12/11/2020 07:07 AM, the...@sys-concept.com wrote:
> > > Now, when I boot I get a message:
> > > 
> > > Block device UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b is not a valid
> > > root device.
> > 
> > This puzzles me. I cannot find the string "is not a valid root device" (or
> 
> sub-strings) in the source code for the Linux kernel, GRUB2, and refind. It
> seems to me it should be in one of them.
> 
> - Matthew

The error is indicative of the kernel driver for the / block device missing.  
If it is not built in-the-kernel, but as a module, then it should be in 
initramfs.

Copy the kernel image, System.map, .config and corresponding initramfs to the 
/boot partition, then point your boot manager to the kernel to boot it.

signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Re: preventing PC sutdown by power button when running

2020-12-11 Thread Grant Edwards
On 2020-12-11, Grant Edwards  wrote:
> On 2020-12-11, Jack  wrote:
>> On 12/10/20 11:20 PM, the...@sys-concept.com wrote:
>>> How to prevent PC from shutdown when running when power button is pressed?
>>> Is it a function in a BIOS or OS?
>
>> You could always unplug the wire from the power button to the motherboard.
>
> That seems like the simple, obvious solution to me.

Of course it makes it a bit difficult to turn the PC _on_ after it's
been powered down unless you change the BIOS to "always on after power
interruption", then you can turn it on by toggling the AC power.

--
Grant







Re: [gentoo-user] new install for a new mainboard?

2020-12-11 Thread antlists

On 10/12/2020 21:18, n952162 wrote:


On 12/10/20 7:18 PM, Rich Freeman wrote:

On Thu, Dec 10, 2020 at 10:23 AM n952162  wrote:

I need a new mainboard.  What will happen if I boot my existing system
on it?

Is the CPU going to be the same?  The responses already cover the
mainboard itself well.  If the CPU could change then you need to check
your -march in CFLAGS for compatibility (if you set it) and
potentially rebuild anything you don't want to break.



How would I do that?  Would I have to set up a cross-compiler toolchain?


I don't remember the details, but what I'd do is set the CPU to 
something basic like x86_64. Then do an "emerge -e system", so at least 
enough is there to guarantee your system will boot.


Then, if the new system does fail to get beyond the basic command line, 
you can change the CPU back to native, do an "emerge -e world", and you 
should have your system back.


Bit of a long-winded hassle, but it should work ...

Cheers,
Wol



Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread tedheadster
On Fri, Dec 11, 2020 at 9:27 AM  wrote:

> On 12/11/2020 07:07 AM, the...@sys-concept.com wrote:
> > Now, when I boot I get a message:
> >
> > Block device UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b is not a valid
> > root device.
>
> This puzzles me. I cannot find the string "is not a valid root device" (or
sub-strings) in the source code for the Linux kernel, GRUB2, and refind. It
seems to me it should be in one of them.

- Matthew


[gentoo-user] Re: preventing PC sutdown by power button when running

2020-12-11 Thread Grant Edwards
On 2020-12-11, Jack  wrote:
> On 12/10/20 11:20 PM, the...@sys-concept.com wrote:
>> How to prevent PC from shutdown when running when power button is pressed?
>> Is it a function in a BIOS or OS?

> You could always unplug the wire from the power button to the motherboard.

That seems like the simple, obvious solution to me.

--
Grant





Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-11 Thread Dale
Jack wrote:
> On 12/10/20 11:20 PM, the...@sys-concept.com wrote:
>> How to prevent PC from shutdown when running when power button is
>> pressed?
>> Is it a function in a BIOS or OS?
> You could always unplug the wire from the power button to the
> motherboard.
>
>


I've also seen where people had two or more switches in series and they
all had to be pressed at the same time to power off.  I've seen people
do that with reset buttons too.  It's just a momentary switch and ebay
has them by the dozen pretty cheap.  It's effective.

But, if one wants to really disable it, your way is easiest.  It just
depends on how far a person wants to go with this.

Dale

:-)  :-) 



[gentoo-user] switching from "refine" to "grub"

2020-12-11 Thread thelma
I use refine as boot loader but it is giving me a problems.
How to switch back to grub 2
And remove any refine files from /boot



Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-11 Thread Jack

On 12/10/20 11:20 PM, the...@sys-concept.com wrote:

How to prevent PC from shutdown when running when power button is pressed?
Is it a function in a BIOS or OS?

You could always unplug the wire from the power button to the motherboard.



Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread thelma
On 12/11/2020 07:07 AM, the...@sys-concept.com wrote:
[snip]
>>>
>>> I bootstrap the PC and run:  genkernel --menuconfig all
>>> and finish compiling, and I get a message:
>>> -
>>> * Kernel compiled successfully!
>>> *
>>> * --no-bootloader set; Skipping bootloader update ...
>>> *
>>> * Required kernel parameter:
>>> *
>>> * root=/dev/$ROOT
>>> *
>>> * Where $ROOT is the device node for your root partition as the
>>> * one specified in /etc/fstab
>>> ---
>>>
>>> What went wrong?
>>>
>>> Here is my fstab:
>>> LABEL=boot    /boot    vfat    noauto,noatime    1 2
>>> UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b  /    ext4    noatime   
>>> 0 1
>>> LABEL=swap    none    swap    sw    0 0
> 
> Now, when I boot I get a message:
> 
> Block device UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b is not a valid
> root device.
> 
> I did not change anything in /etc/fstab

blkid /dev/nvme0n1p4
/dev/nvme0n1p4: UUID="d32946b3-2236-4998-80dd-68b7d78e0c7b" BLOCK_SIZE="4096" 
TYPE="ext4" PARTLABEL="rootfs" PARTUUID="17f9927c-a792-41fc-bff3-a50c420ee616"

So why boot can not find "/" partition ???



Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread thelma
On 12/11/2020 03:15 AM, Dan Egli wrote:
> you didn't specify grub2 on the command line or (my preference) in
> /etc/genkernel.conf. So genkernel assumes you don't want it to fix your
> boot loader. If the kernel and ramdisk are all built, you can fix grub's
> config with grub-mkconfig -o /boot/grub/grub.cfg. For future kernel
> builds, read the paramaters in man genkernel so you know how to specify
> the boot loader, or just edit /etc/genkernel.conf and set the bootloader
> from none to grub2.
> 
> On 12/11/2020 12:54 AM, the...@sys-concept.com wrote:
>> My system will not boot.
>>
>> I installed sys-power/acpid  and wanted to double check the kernel
>> configuration.
>> I run: genkernel --menuconfig all
>> The ACPI option was enabled so I exit the menu but it started to
>> compile the kernel so I press CTRL-C (to stop it).
>>
>> Upon rebooting the X will not start no root login, just a screen with
>> login:
>> "joseph (none)"
>>
>> I bootstrap the PC and run:  genkernel --menuconfig all
>> and finish compiling, and I get a message:
>> -
>> * Kernel compiled successfully!
>> *
>> * --no-bootloader set; Skipping bootloader update ...
>> *
>> * Required kernel parameter:
>> *
>> * root=/dev/$ROOT
>> *
>> * Where $ROOT is the device node for your root partition as the
>> * one specified in /etc/fstab
>> ---
>>
>> What went wrong?
>>
>> Here is my fstab:
>> LABEL=boot    /boot    vfat    noauto,noatime    1 2
>> UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b  /    ext4    noatime   
>> 0 1
>> LABEL=swap    none    swap    sw    0 0

Now, when I boot I get a message:

Block device UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b is not a valid
root device.

I did not change anything in /etc/fstab





Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-11 Thread thelma
On 12/11/2020 04:54 AM, tastytea wrote:
> On 2020-12-10 23:56-0700 Grant Taylor
>  wrote:
> 
>> On 12/10/20 9:20 PM, the...@sys-concept.com wrote:
>>> How to prevent PC from shutdown when running when power button is
>>> pressed? Is it a function in a BIOS or OS?  
>>
>> Press and release, in less than four seconds, is the OS.  Four
>> seconds or longer is the BIOS.
>>
>> Try stopping acpid and seeing if that gets you the desired results.
> 
> Nowadays (e)logind handles that. Setting 
>   HandlePowerKey=ignore
> in /etc/elogind/logind.conf should disable that (haven't tested).
> 
> Kind regards, tastytea

Thank, will definitely try it and let you folks know.
But right now, I've managed to break the boot-loader, so this is the
priority.




Re: [gentoo-user] preventing PC sutdown by power button when running

2020-12-11 Thread tastytea
On 2020-12-10 23:56-0700 Grant Taylor
 wrote:

> On 12/10/20 9:20 PM, the...@sys-concept.com wrote:
> > How to prevent PC from shutdown when running when power button is
> > pressed? Is it a function in a BIOS or OS?  
> 
> Press and release, in less than four seconds, is the OS.  Four
> seconds or longer is the BIOS.
> 
> Try stopping acpid and seeing if that gets you the desired results.

Nowadays (e)logind handles that. Setting 
  HandlePowerKey=ignore
in /etc/elogind/logind.conf should disable that (haven't tested).

Kind regards, tastytea

-- 
Get my PGP key with `gpg --locate-keys tasty...@tastytea.de` or at
.


pgpv5yVdr_7b1.pgp
Description: Digitale Signatur von OpenPGP


Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread thelma


On 12/11/2020 03:15 AM, Dan Egli wrote:
> you didn't specify grub2 on the command line or (my preference) in
> /etc/genkernel.conf. So genkernel assumes you don't want it to fix your
> boot loader. If the kernel and ramdisk are all built, you can fix grub's
> config with grub-mkconfig -o /boot/grub/grub.cfg. For future kernel
> builds, read the paramaters in man genkernel so you know how to specify
> the boot loader, or just edit /etc/genkernel.conf and set the bootloader
> from none to grub2.

I am using "refind" (not grub)
With refind, do I need to run any special command to set-up correct kernel.
Here is my tree:  (grub is there, but I'm not using it)
tree -L 3 /boot
/boot
├── EFI
│   ├── gentoo
│   │   └── grubx64.efi
│   ├── refind
│   │   ├── BOOT.CSV
│   │   ├── icons
│   │   ├── keys
│   │   ├── refind.conf
│   │   └── refind_x64.efi
│   └── tools
├── System.map-5.4.72-gentoo-x86_64
├── System.map-5.4.72-gentoo-x86_64.old
├── System.map-5.4.80-gentoo-r1-x86_64
├── System.map-5.4.80-gentoo-r1-x86_64.old
├── config-5.4.72-gentoo
├── initramfs-5.4.72-gentoo-x86_64.img
├── initramfs-5.4.72-gentoo-x86_64.img.old
├── initramfs-5.4.80-gentoo-r1-x86_64.img
├── refind_linux.conf
├── vmlinuz-5.4.72-gentoo-x86_64
├── vmlinuz-5.4.72-gentoo-x86_64.old
├── vmlinuz-5.4.80-gentoo-r1-x86_64
└── vmlinuz-5.4.80-gentoo-r1-x86_64.old



> On 12/11/2020 12:54 AM, the...@sys-concept.com wrote:
>> My system will not boot.
>>
>> I installed sys-power/acpid  and wanted to double check the kernel
>> configuration.
>> I run: genkernel --menuconfig all
>> The ACPI option was enabled so I exit the menu but it started to
>> compile the kernel so I press CTRL-C (to stop it).
>>
>> Upon rebooting the X will not start no root login, just a screen with
>> login:
>> "joseph (none)"
>>
>> I bootstrap the PC and run:  genkernel --menuconfig all
>> and finish compiling, and I get a message:
>> -
>> * Kernel compiled successfully!
>> *
>> * --no-bootloader set; Skipping bootloader update ...
>> *
>> * Required kernel parameter:
>> *
>> * root=/dev/$ROOT
>> *
>> * Where $ROOT is the device node for your root partition as the
>> * one specified in /etc/fstab
>> ---
>>
>> What went wrong?
>>
>> Here is my fstab:
>> LABEL=boot    /boot    vfat    noauto,noatime    1 2
>> UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b  /    ext4    noatime   
>> 0 1
>> LABEL=swap    none    swap    sw    0 0
>>
>>



Re: [gentoo-user] system won't boot - --no-bootloader set; Skipping bootloader update ...

2020-12-11 Thread Dan Egli
you didn't specify grub2 on the command line or (my preference) in 
/etc/genkernel.conf. So genkernel assumes you don't want it to fix your 
boot loader. If the kernel and ramdisk are all built, you can fix grub's 
config with grub-mkconfig -o /boot/grub/grub.cfg. For future kernel 
builds, read the paramaters in man genkernel so you know how to specify 
the boot loader, or just edit /etc/genkernel.conf and set the bootloader 
from none to grub2.


On 12/11/2020 12:54 AM, the...@sys-concept.com wrote:

My system will not boot.

I installed sys-power/acpid  and wanted to double check the kernel 
configuration.
I run: genkernel --menuconfig all
The ACPI option was enabled so I exit the menu but it started to compile the 
kernel so I press CTRL-C (to stop it).

Upon rebooting the X will not start no root login, just a screen with login:
"joseph (none)"

I bootstrap the PC and run:  genkernel --menuconfig all
and finish compiling, and I get a message:
-
* Kernel compiled successfully!
*
* --no-bootloader set; Skipping bootloader update ...
*
* Required kernel parameter:
*
*   root=/dev/$ROOT
*
* Where $ROOT is the device node for your root partition as the
* one specified in /etc/fstab
---

What went wrong?

Here is my fstab:
LABEL=boot  /boot   vfatnoauto,noatime  1 2
UUID=d32946b3-2236-4998-80dd-68b7d78e0c7b   /   ext4noatime 0 1
LABEL=swap  noneswapsw  0 0



--
Dan Egli
From my Test Server