Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-13 Thread victor romanchuk
On 01/14/2018 07:17 AM, tu...@posteo.de wrote:
> Is it posible to use Firefox wihout pulseaudio installed?
> If "yes" -- how can I acchieche this?

Yes it is possible; to achieve that you just have to use
www-client/firefox, e.g compile it from source

Due to dependencies (now ff is boud with dev-lang/rust which
subsequently requires llvm and clang) compilation time is comparable to
chromium



Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-13 Thread tuxic
On 01/13 11:39, Dale wrote:
> tu...@posteo.de wrote:
> > Hi Dale,
> >
> > one problem here is, that I am using firefox-bin, because compiling
> > firefox gave me compile errors in the past.
> >
> > One dependency of firefox-bin ispulseaudio.
> >
> > Currently I am trying to compile firefox and will see how far it
> > goes...
> >
> > Short question: What timezone you are?
> >
> > Cheers
> > Meino
> >
> 
> I'm on CST here in the USA.  May be around a little longer.  Before you
> compile Firefox, make sure of your USE flags.  No point compiling that
> monster and then realizing a USE flag is wrong. 
> 
> I suspect you can make this work with a compiled version.  Just a feeling. 
> 
> Dale
> 
> :-)  :-) 
> 

Hi Dale,

I am on UTC+1 here...

Thanks for the USEful :) hint!
Will see how far it goes. Currently rust is compiling and is
periodically
eating all my memory and my box starts swapping...

This will take a while.
As soon I have further results, I will be back!

Cheers!
Meino





Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-13 Thread Dale
tu...@posteo.de wrote:
> Hi Dale,
>
> one problem here is, that I am using firefox-bin, because compiling
> firefox gave me compile errors in the past.
>
> One dependency of firefox-bin ispulseaudio.
>
> Currently I am trying to compile firefox and will see how far it
> goes...
>
> Short question: What timezone you are?
>
> Cheers
> Meino
>

I'm on CST here in the USA.  May be around a little longer.  Before you
compile Firefox, make sure of your USE flags.  No point compiling that
monster and then realizing a USE flag is wrong. 

I suspect you can make this work with a compiled version.  Just a feeling. 

Dale

:-)  :-) 



Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-13 Thread tuxic
On 01/13 11:19, Dale wrote:
> tu...@posteo.de wrote:
> > On 01/13 10:29, Dale wrote:
> >> tu...@posteo.de wrote:
> >>> Hi,
> >>>
> >>> Is it posible to use Firefox wihout pulseaudio installed?
> >>> If "yes" -- how can I acchieche this?
> >>>
> >>> Thanks a lot for any help in advance!
> >>>
> >>> Cheers!
> >>> Meino
> >>>
> >> I found this. 
> >>
> >> https://codelab.wordpress.com/2017/12/11/firefox-drops-alsa-apulse-to-the-rescue/
> >>
> >>
> >> I read a bit and it may be interesting or may not but it seems to have
> >> some sort of solution.  If it doesn't, my Firefox is likely to be quiet,
> >> whether it wants to or not.  Then again, Palemoon may be a option if I
> >> can get some addons to work. 
> >>
> >> Let's hope that helps, both of us.  :/
> >>
> >> Dale
> >>
> >> :-)  :-) 
> >>
> > Hi Dale,
> >
> > thanks for the informations!
> >
> > I tried Palemoon some time ago. I checked its security and privacy
> > feature with certain sites on the internet, which provide such
> > services and found some issues, which I wanted to discuss on their
> > forum. The answer was not to believe such sites and in result security
> > would be a matter of how much I believe in a certain software.  My
> > understanding is, that security is no believe system but a matter of
> > well done software engineering. Therefore I quit Palemoon and I am no
> > longer interested in it.
> >
> > I looked into the linked page and interestingly the solution suggested
> > is exactlu what makes me headaches now: I have a blocker:
> >
> >  * Error: The above package list contains packages which cannot be
> >  * installed at the same time on the same system.
> >
> >   (media-plugins/alsa-plugins-1.1.5:0/0::gentoo, installed) pulled in by
> > 
> > >=media-plugins/alsa-plugins-1.0.27-r1[pulseaudio,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]
> >  (>=media-plugins/alsa-plugins-1.0.27-r1[pulseaudio,abi_x86_64(-)]) 
> > required by (media-sound/pulseaudio-11.1:0/0::gentoo, installed)
> > media-plugins/alsa-plugins required by @selected
> >
> >   (media-sound/apulse-0.1.10:0/0::gentoo, ebuild scheduled for merge) 
> > pulled in by
> > media-sound/apulse required by 
> > (www-client/firefox-bin-57.0.4-r1:0/0::gentoo, installed)
> >
> >
> > ...and apulse is one of it.
> >
> > How can I get out of it?
> >
> > Cheers
> > Meino
> >
> 
> I'm still on the older Firefox but I get this here:
> 
> 
> root@fireball / # emerge -av apulse
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild  N ] media-sound/apulse-0.1.10::gentoo  ABI_X86="(64) -32
> (-x32)" 108 KiB
> 
> Total: 1 package (1 new), Size of downloads: 108 KiB
> 
> Would you like to merge these packages? [Yes/No] n
> 
> 
> If you are already on the newer Firefox, which I guess you are, then
> that may be what makes it block things.  So, I tried this:
> 
> 
> root@fireball / # emerge -av apulse firefox
> 
> These are the packages that would be merged, in order:
> 
> 
> Calculating dependencies... done!
> [ebuild  N ] media-sound/apulse-0.1.10::gentoo  ABI_X86="(64) -32
> (-x32)" 108 KiB
> [ebuild   R   ~] www-client/firefox-56.0::x-portage [56.0::gentoo]
> USE="dbus gmp-autoupdate nsplugin startup-notification system-harfbuzz
> system-jpeg system-libevent system-libvpx system-sqlite -bindist
> -custom-cflags -custom-optimization -debug -eme-free -hardened -hwaccel
> -jack (-neon) -pgo -pulseaudio (-selinux) -system-icu {-test} -wifi"
> L10N="-ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak
> -cs -cy -da -de -dsb -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX
> -et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy
> -id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr
> -ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son
> -sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW" 249,404 KiB
> 
> Total: 2 packages (1 new, 1 reinstall), Size of downloads: 249,512 KiB
> 
> Would you like to merge these packages? [Yes/No]
> 
> 
> For some reason, it likes the idea.  So, differences between us.  I
> notice you are on a newer version of alsa than I am.  Here's mine: 
> 
> 
> [IP-] [  ] media-libs/alsa-lib-1.1.2:0
> [IP-] [  ] media-sound/alsa-utils-1.1.2:0.9
> 
> 
> Could it be that it doesn't like the newer version of alsa, yet at
> least?  Possible. 
> 
> Does that help any?  Could you drop to that lower version of alsa and
> see if it helps or is there a needed fix for you in that newer version? 
> 
> Dale
> 
> :-)  :-) 
> 
> P. S.  Keep in mind, I'd like to get this to work here too later on.  ;-) 
> 


Hi Dale,

one problem here is, that I am using firefox-bin, because compiling
firefox gave me compile errors in the past.

One dependency of firefox-bin ispulseaudio.

Currently I am trying to compile firefox and will see how far 

Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-13 Thread Dale
tu...@posteo.de wrote:
> On 01/13 10:29, Dale wrote:
>> tu...@posteo.de wrote:
>>> Hi,
>>>
>>> Is it posible to use Firefox wihout pulseaudio installed?
>>> If "yes" -- how can I acchieche this?
>>>
>>> Thanks a lot for any help in advance!
>>>
>>> Cheers!
>>> Meino
>>>
>> I found this. 
>>
>> https://codelab.wordpress.com/2017/12/11/firefox-drops-alsa-apulse-to-the-rescue/
>>
>>
>> I read a bit and it may be interesting or may not but it seems to have
>> some sort of solution.  If it doesn't, my Firefox is likely to be quiet,
>> whether it wants to or not.  Then again, Palemoon may be a option if I
>> can get some addons to work. 
>>
>> Let's hope that helps, both of us.  :/
>>
>> Dale
>>
>> :-)  :-) 
>>
> Hi Dale,
>
> thanks for the informations!
>
> I tried Palemoon some time ago. I checked its security and privacy
> feature with certain sites on the internet, which provide such
> services and found some issues, which I wanted to discuss on their
> forum. The answer was not to believe such sites and in result security
> would be a matter of how much I believe in a certain software.  My
> understanding is, that security is no believe system but a matter of
> well done software engineering. Therefore I quit Palemoon and I am no
> longer interested in it.
>
> I looked into the linked page and interestingly the solution suggested
> is exactlu what makes me headaches now: I have a blocker:
>
>  * Error: The above package list contains packages which cannot be
>  * installed at the same time on the same system.
>
>   (media-plugins/alsa-plugins-1.1.5:0/0::gentoo, installed) pulled in by
> 
> >=media-plugins/alsa-plugins-1.0.27-r1[pulseaudio,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]
>  (>=media-plugins/alsa-plugins-1.0.27-r1[pulseaudio,abi_x86_64(-)]) required 
> by (media-sound/pulseaudio-11.1:0/0::gentoo, installed)
> media-plugins/alsa-plugins required by @selected
>
>   (media-sound/apulse-0.1.10:0/0::gentoo, ebuild scheduled for merge) pulled 
> in by
> media-sound/apulse required by 
> (www-client/firefox-bin-57.0.4-r1:0/0::gentoo, installed)
>
>
> ...and apulse is one of it.
>
> How can I get out of it?
>
> Cheers
> Meino
>

I'm still on the older Firefox but I get this here:


root@fireball / # emerge -av apulse

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N ] media-sound/apulse-0.1.10::gentoo  ABI_X86="(64) -32
(-x32)" 108 KiB

Total: 1 package (1 new), Size of downloads: 108 KiB

Would you like to merge these packages? [Yes/No] n


If you are already on the newer Firefox, which I guess you are, then
that may be what makes it block things.  So, I tried this:


root@fireball / # emerge -av apulse firefox

These are the packages that would be merged, in order:


Calculating dependencies... done!
[ebuild  N ] media-sound/apulse-0.1.10::gentoo  ABI_X86="(64) -32
(-x32)" 108 KiB
[ebuild   R   ~] www-client/firefox-56.0::x-portage [56.0::gentoo]
USE="dbus gmp-autoupdate nsplugin startup-notification system-harfbuzz
system-jpeg system-libevent system-libvpx system-sqlite -bindist
-custom-cflags -custom-optimization -debug -eme-free -hardened -hwaccel
-jack (-neon) -pgo -pulseaudio (-selinux) -system-icu {-test} -wifi"
L10N="-ach -af -an -ar -as -ast -az -bg -bn-BD -bn-IN -br -bs -ca -cak
-cs -cy -da -de -dsb -el -en-GB -en-ZA -eo -es-AR -es-CL -es-ES -es-MX
-et -eu -fa -ff -fi -fr -fy -ga -gd -gl -gn -gu -he -hi -hr -hsb -hu -hy
-id -is -it -ja -ka -kab -kk -km -kn -ko -lij -lt -lv -mai -mk -ml -mr
-ms -nb -nl -nn -or -pa -pl -pt-BR -pt-PT -rm -ro -ru -si -sk -sl -son
-sq -sr -sv -ta -te -th -tr -uk -uz -vi -xh -zh-CN -zh-TW" 249,404 KiB

Total: 2 packages (1 new, 1 reinstall), Size of downloads: 249,512 KiB

Would you like to merge these packages? [Yes/No]


For some reason, it likes the idea.  So, differences between us.  I
notice you are on a newer version of alsa than I am.  Here's mine: 


[IP-] [  ] media-libs/alsa-lib-1.1.2:0
[IP-] [  ] media-sound/alsa-utils-1.1.2:0.9


Could it be that it doesn't like the newer version of alsa, yet at
least?  Possible. 

Does that help any?  Could you drop to that lower version of alsa and
see if it helps or is there a needed fix for you in that newer version? 

Dale

:-)  :-) 

P. S.  Keep in mind, I'd like to get this to work here too later on.  ;-) 



Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-13 Thread tuxic
On 01/13 10:29, Dale wrote:
> tu...@posteo.de wrote:
> > Hi,
> >
> > Is it posible to use Firefox wihout pulseaudio installed?
> > If "yes" -- how can I acchieche this?
> >
> > Thanks a lot for any help in advance!
> >
> > Cheers!
> > Meino
> >
> 
> I found this. 
> 
> https://codelab.wordpress.com/2017/12/11/firefox-drops-alsa-apulse-to-the-rescue/
> 
> 
> I read a bit and it may be interesting or may not but it seems to have
> some sort of solution.  If it doesn't, my Firefox is likely to be quiet,
> whether it wants to or not.  Then again, Palemoon may be a option if I
> can get some addons to work. 
> 
> Let's hope that helps, both of us.  :/
> 
> Dale
> 
> :-)  :-) 
> 

Hi Dale,

thanks for the informations!

I tried Palemoon some time ago. I checked its security and privacy
feature with certain sites on the internet, which provide such
services and found some issues, which I wanted to discuss on their
forum. The answer was not to believe such sites and in result security
would be a matter of how much I believe in a certain software.  My
understanding is, that security is no believe system but a matter of
well done software engineering. Therefore I quit Palemoon and I am no
longer interested in it.

I looked into the linked page and interestingly the solution suggested
is exactlu what makes me headaches now: I have a blocker:

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (media-plugins/alsa-plugins-1.1.5:0/0::gentoo, installed) pulled in by

>=media-plugins/alsa-plugins-1.0.27-r1[pulseaudio,abi_x86_32(-)?,abi_x86_64(-)?,abi_x86_x32(-)?,abi_mips_n32(-)?,abi_mips_n64(-)?,abi_mips_o32(-)?,abi_ppc_32(-)?,abi_ppc_64(-)?,abi_s390_32(-)?,abi_s390_64(-)?]
 (>=media-plugins/alsa-plugins-1.0.27-r1[pulseaudio,abi_x86_64(-)]) required by 
(media-sound/pulseaudio-11.1:0/0::gentoo, installed)
media-plugins/alsa-plugins required by @selected

  (media-sound/apulse-0.1.10:0/0::gentoo, ebuild scheduled for merge) pulled in 
by
media-sound/apulse required by 
(www-client/firefox-bin-57.0.4-r1:0/0::gentoo, installed)


...and apulse is one of it.

How can I get out of it?

Cheers
Meino





Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-13 Thread Dale
tu...@posteo.de wrote:
> Hi,
>
> Is it posible to use Firefox wihout pulseaudio installed?
> If "yes" -- how can I acchieche this?
>
> Thanks a lot for any help in advance!
>
> Cheers!
> Meino
>

Sorry, I meant to paste this in too.

root@fireball / # eix apulse
* media-sound/apulse
 Available versions:  0.1.10 {ABI_MIPS="n32 n64 o32" ABI_PPC="32 64"
ABI_S390="32 64" ABI_X86="32 64 x32"}
 Homepage:    https://github.com/i-rinat/apulse
 Description: PulseAudio emulation for ALSA

root@fireball / # 

Dale

:-)  :-) 



Re: [gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-13 Thread Dale
tu...@posteo.de wrote:
> Hi,
>
> Is it posible to use Firefox wihout pulseaudio installed?
> If "yes" -- how can I acchieche this?
>
> Thanks a lot for any help in advance!
>
> Cheers!
> Meino
>

I found this. 

https://codelab.wordpress.com/2017/12/11/firefox-drops-alsa-apulse-to-the-rescue/


I read a bit and it may be interesting or may not but it seems to have
some sort of solution.  If it doesn't, my Firefox is likely to be quiet,
whether it wants to or not.  Then again, Palemoon may be a option if I
can get some addons to work. 

Let's hope that helps, both of us.  :/

Dale

:-)  :-) 



[gentoo-user] Firefox 57.0.4 without pulseaudio? Possible?

2018-01-13 Thread tuxic
Hi,

Is it posible to use Firefox wihout pulseaudio installed?
If "yes" -- how can I acchieche this?

Thanks a lot for any help in advance!

Cheers!
Meino





Re: [gentoo-user] Re: fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Dale
Ian Zimmerman wrote:
> On 2018-01-13 15:49, Dale wrote:
>
>> I think without a init thingy, it mounts / ro at first, runs the checks
>> and then remounts rw.
> Right.
>
>> I think it does the same with /usr.
> No, other filesystems are not mounted at all until they're checked, in
> this situation (which is the traditional one, fsck is older than any
> init thingy concept and a separate /usr was once highly recommended).
>
> :-P :-P
>

You may be right.  I recall at least / being done during the init thingy
part.  I thought /usr was to, since it is mounted along with / within
the init part before the regular OS boots.  That's my understanding of
the purpose of the init thingy is to mount / and /usr and then pivot
over to the regular boot process.  Maybe it mounts /usr ro or something. 

Yea, it used to be recommended and in a way it can still be a good
idea.  I use LVM for example and I can increase /usr, /var, /home or
whatever without having to redo my drive setup.  The only thing I can't
change is / which is a regular file system.  Just have to cross that
bridge when I get there.  Oh, I had a log file file up /var once. 
System was still running and I was able to figure out the problem before
it got worse.  I can't recall what the problem was now but messages was
huge, I mean HUGE. 

Dale

:-)  :-) 



[gentoo-user] Re: fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Ian Zimmerman
On 2018-01-13 15:49, Dale wrote:

> I think without a init thingy, it mounts / ro at first, runs the checks
> and then remounts rw.

Right.

> I think it does the same with /usr.

No, other filesystems are not mounted at all until they're checked, in
this situation (which is the traditional one, fsck is older than any
init thingy concept and a separate /usr was once highly recommended).

:-P :-P

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet, fetch the TXT record for the domain.



Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Dale
Neil Bothwick wrote:
> On Sat, 13 Jan 2018 23:16:19 +0200, Alan McKinnon wrote:
>
>> I run OpenRC and the kernel command line says where / is for mounting
> And the kernel mounts it ro, openrc remounts/ rw later on. It seems the
> problem here is the initramfs mounting /usr rw before the attemt to run
> fsck. If I felt like finger-pointing, I'd be tempted to point at the
> initramfs.
>
>

That's my thinking as well.  If one is using a init thingy, the init
thingy should be checking those, / and /usr at the least.  It seems it
has two fingers pointing at it now.  ;-) 

Dale

:-)  :-) 



Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Neil Bothwick
On Sat, 13 Jan 2018 23:16:19 +0200, Alan McKinnon wrote:

> On 13/01/2018 23:16, Neil Bothwick wrote:
> > On Sat, 13 Jan 2018 14:57:59 -0600, John Johnson wrote:
> >   
> >> Shouldn't that be taken care of by the "/etc/fstab" entries?  
> > 
> > Those say whether the filesystem should be checked, not when.
> >   
> >> Obviously, if "/usr" is on a separate partition, it needs to be
> >> mounted at the time when "/usr/sbin/fsck" is expected to be
> >> present.  
> > 
> > fsck is in /sbin, but that's not the point. If you have an initramfs,
> > fsck should be in it and run before /usr is mounted rw, which means it
> > has to be done by the initramfs. It's too late to do it when control
> > has been handed over because then /usr is already mounted rw.  
> 
> 
> So what does the dirty check and fsck of / ?

OpenRC AFAIK.
 
> I don't have an initramfs, I don't have a separate /usr,

You need an initramfs and a separate /usr to experience this problem. You
have neither so you have avoided it twice, well done :-)

On systems where I have both, I also have a filesystem that does not use
fsck, which is a third way of avoiding the issue.

> I run OpenRC and the kernel command line says where / is for mounting

And the kernel mounts it ro, openrc remounts/ rw later on. It seems the
problem here is the initramfs mounting /usr rw before the attemt to run
fsck. If I felt like finger-pointing, I'd be tempted to point at the
initramfs.


-- 
Neil Bothwick

Windows to 486/50 mhz cpu: Don't rush me, don't rush me...


pgpr1LKyrffSS.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Dale
Alan McKinnon wrote:
> On 13/01/2018 23:16, Neil Bothwick wrote:
>> On Sat, 13 Jan 2018 14:57:59 -0600, John Johnson wrote:
>>
>>> Shouldn't that be taken care of by the "/etc/fstab" entries?
>> Those say whether the filesystem should be checked, not when.
>>
>>> Obviously, if "/usr" is on a separate partition, it needs to be mounted
>>> at the time when "/usr/sbin/fsck" is expected to be present.
>> fsck is in /sbin, but that's not the point. If you have an initramfs,
>> fsck should be in it and run before /usr is mounted rw, which means it
>> has to be done by the initramfs. It's too late to do it when control has
>> been handed over because then /usr is already mounted rw.
>
> So what does the dirty check and fsck of / ?
>
> I don't have an initramfs, I don't have a separate /usr, I run OpenRC
> and the kernel command line says where / is for mounting
>
>


I think without a init thingy, it mounts / ro at first, runs the checks
and then remounts rw.  I think it does the same with /usr.  I'm not sure
what decides that tho. 

The last I rebooted, the checks are done within the init thingy for /
and /usr, while mounted ro of course.  Once / and /usr are in the clear,
it swaps from the init thingy and the normal kernel/OS boot starts.  I
think it checks /home after the init thingy is gone.  I think.  It's
been a while since I rebooted.  167 days so far.  The power company is
doing a good job of keeping our power going. 

If I ever redo my setup, /usr will be on / and hopefully no init
thingy.  With drives and file systems like they are now, it's just not
worth the trouble. 

Dale

:-)  :-) 



Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Alan McKinnon
On 13/01/2018 23:16, Neil Bothwick wrote:
> On Sat, 13 Jan 2018 14:57:59 -0600, John Johnson wrote:
> 
>> Shouldn't that be taken care of by the "/etc/fstab" entries?
> 
> Those say whether the filesystem should be checked, not when.
> 
>> Obviously, if "/usr" is on a separate partition, it needs to be mounted
>> at the time when "/usr/sbin/fsck" is expected to be present.
> 
> fsck is in /sbin, but that's not the point. If you have an initramfs,
> fsck should be in it and run before /usr is mounted rw, which means it
> has to be done by the initramfs. It's too late to do it when control has
> been handed over because then /usr is already mounted rw.


So what does the dirty check and fsck of / ?

I don't have an initramfs, I don't have a separate /usr, I run OpenRC
and the kernel command line says where / is for mounting


-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Neil Bothwick
On Sat, 13 Jan 2018 14:57:59 -0600, John Johnson wrote:

> Shouldn't that be taken care of by the "/etc/fstab" entries?

Those say whether the filesystem should be checked, not when.

> Obviously, if "/usr" is on a separate partition, it needs to be mounted
> at the time when "/usr/sbin/fsck" is expected to be present.

fsck is in /sbin, but that's not the point. If you have an initramfs,
fsck should be in it and run before /usr is mounted rw, which means it
has to be done by the initramfs. It's too late to do it when control has
been handed over because then /usr is already mounted rw.
 
> 
> On Sat, Jan 13, 2018 at 2:54 PM, Neil Bothwick 
> wrote:
> 
> > On Sat, 13 Jan 2018 21:29:12 +0200, Alan McKinnon wrote:
> >  
> > > fwiw, fsck here runs automagically at startup whenever the fs is
> > > dirty, and I do not use an initramfs at all. Not sure exactly what
> > > code does this, I assume it's something in OpenRC.  
> >
> > It is, and the reason it works is that you do not use an initramfs
> > that mounts /usr before openrc gets a look in. If you use an
> > initramfs, that should take care of running fsck when needed.
> >
> >
> > --
> > Neil Bothwick
> >
> > Puns are bad, but poetry is verse...
> >  




-- 
Neil Bothwick

If a book about failures doesn't sell, is it a success?


pgpQ9bti5xELZ.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread John Johnson
Shouldn't that be taken care of by the "/etc/fstab" entries?
Obviously, if "/usr" is on a separate partition, it needs to be mounted at
the time when "/usr/sbin/fsck" is expected to be present.


On Sat, Jan 13, 2018 at 2:54 PM, Neil Bothwick  wrote:

> On Sat, 13 Jan 2018 21:29:12 +0200, Alan McKinnon wrote:
>
> > fwiw, fsck here runs automagically at startup whenever the fs is dirty,
> > and I do not use an initramfs at all. Not sure exactly what code does
> > this, I assume it's something in OpenRC.
>
> It is, and the reason it works is that you do not use an initramfs that
> mounts /usr before openrc gets a look in. If you use an initramfs, that
> should take care of running fsck when needed.
>
>
> --
> Neil Bothwick
>
> Puns are bad, but poetry is verse...
>


Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Neil Bothwick
On Sat, 13 Jan 2018 21:29:12 +0200, Alan McKinnon wrote:

> fwiw, fsck here runs automagically at startup whenever the fs is dirty,
> and I do not use an initramfs at all. Not sure exactly what code does
> this, I assume it's something in OpenRC.

It is, and the reason it works is that you do not use an initramfs that
mounts /usr before openrc gets a look in. If you use an initramfs, that
should take care of running fsck when needed.


-- 
Neil Bothwick

Puns are bad, but poetry is verse...


pgpXYMf_3n6DQ.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Andrew Barchuk
Alan,

> Not sure exactly what code does this, I assume it's something in OpenRC.

It's OpenRC service fsck that performs filesystem checks on boot runlevel
(/etc/init.d/fsck):

$ rc-status boot | grep fsck
 fsck  [  started  ]

---
Andrew



Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Alan McKinnon
On 13/01/2018 21:30, Andrew Barchuk wrote:
> Alan, Floyd,
> 
> Thanks for your responses.
> Indeed I prefer to not maintain my own initramfs scripts. Right now I
> use genkernel initramfs but it seems to not be doing the right thing
> regarding /usr partition mounting (as I understand now it's not a
> problem with OpenRC fsck service). On the other hand I prefer to not
> have to remember to run fsck manually, I'm pretty bad at such things.
> 
> ---
> Andrew
> 

fwiw, fsck here runs automagically at startup whenever the fs is dirty,
and I do not use an initramfs at all. Not sure exactly what code does
this, I assume it's something in OpenRC.

-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Andrew Barchuk
Alan, Floyd,

Thanks for your responses.
Indeed I prefer to not maintain my own initramfs scripts. Right now I
use genkernel initramfs but it seems to not be doing the right thing
regarding /usr partition mounting (as I understand now it's not a
problem with OpenRC fsck service). On the other hand I prefer to not
have to remember to run fsck manually, I'm pretty bad at such things.

---
Andrew



Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Andrew Barchuk
John,

> I bet you are using genkernel or gentoo-next to generate your initrd.

Exactly. Probably got lost in between the file contents:

> I use LVM on LUKS container for my partitions and an initramfs built
with genkernel.

> You might have better luck using Dracut

Thank you for the suggestion, I've tried Dracut and it got me almost
there. First I've tried to add 'ro' command line option to mount both
root and /usr as read-only and allow fsck OpenRC service to check the
filesystems but it wasn't sufficient: I got the same error from e2fsck
complaining that /usr is mounted.

As Dracut implements fsck in the initramfs I've decided to leverage it
and disabled fsck for both root and /usr in fstab. Now OpenRC fsck
succeeds. But if I'm reading the logs correctly Dracut is not checking
/usr, only root (199bb83d-c783-4254-a6eb-fdbb83c33144):

Jan 13 19:55:24 machine kernel: <30>[2.611986] dracut: luksOpen /dev/sdb3 
luks-2acb7668-fff1-492d-b46e-f05ead26d153
Jan 13 19:55:24 machine kernel: [7.318082] random: crng init done
Jan 13 19:55:24 machine kernel: <30>[   30.842143] dracut: Scanning devices 
dm-0  for LVM logical volumes MacVg/swap MacVg/gentoo-root MacVg/gentoo-usr
Jan 13 19:55:24 machine kernel: <30>[   30.856028] dracut: inactive 
'/dev/MacVg/arch-root' [10.00 GiB] inherit
Jan 13 19:55:24 machine kernel: <30>[   30.858497] dracut: inactive 
'/dev/MacVg/arch-var' [6.00 GiB] inherit
Jan 13 19:55:24 machine kernel: <30>[   30.860752] dracut: inactive 
'/dev/MacVg/swap' [8.00 GiB] inherit
Jan 13 19:55:24 machine kernel: <30>[   30.862977] dracut: inactive 
'/dev/MacVg/arch-home' [6.00 GiB] inherit
Jan 13 19:55:24 machine kernel: <30>[   30.865294] dracut: inactive 
'/dev/MacVg/data' [48.00 GiB] inherit
Jan 13 19:55:24 machine kernel: <30>[   30.867488] dracut: inactive 
'/dev/MacVg/gentoo-root' [1.00 GiB] inherit
Jan 13 19:55:24 machine kernel: <30>[   30.869669] dracut: inactive 
'/dev/MacVg/gentoo-var' [1.00 GiB] inherit
Jan 13 19:55:24 machine kernel: <30>[   30.871936] dracut: inactive 
'/dev/MacVg/gentoo-home' [2.00 GiB] inherit
Jan 13 19:55:24 machine kernel: <30>[   30.874062] dracut: inactive 
'/dev/MacVg/gentoo-usr' [12.00 GiB] inherit
Jan 13 19:55:24 machine kernel: <30>[   30.961553] dracut: Scanning devices 
dm-0  for LVM volume groups MacVg
Jan 13 19:55:24 machine kernel: <30>[   30.967503] dracut: Reading all physical 
volumes. This may take a while...
Jan 13 19:55:24 machine kernel: <30>[   30.975165] dracut: Found volume group 
"MacVg" using metadata type lvm2
Jan 13 19:55:24 machine kernel: <30>[   31.022883] dracut: 9 logical volume(s) 
in volume group "MacVg" now active
Jan 13 19:55:24 machine kernel: [   31.031599] PM: Starting manual resume from 
disk
Jan 13 19:55:24 machine kernel: [   31.034193] PM: Image not found (code -22)
Jan 13 19:55:24 machine kernel: [   31.045037] EXT4-fs (dm-2): mounted 
filesystem with ordered data mode. Opts: data=ordered
Jan 13 19:55:24 machine kernel: <30>[   31.079313] dracut: Checking ext4: 
/dev/disk/by-uuid/199bb83d-c783-4254-a6eb-fdbb83c33144
Jan 13 19:55:24 machine kernel: <30>[   31.083597] dracut: issuing e2fsck -a  
/dev/disk/by-uuid/199bb83d-c783-4254-a6eb-fdbb83c33144
Jan 13 19:55:24 machine kernel: <30>[   31.099671] dracut: 
/dev/disk/by-uuid/199bb83d-c783-4254-a6eb-fdbb83c33144: clean, 2477/65536 
files, 33002/262144 blocks
Jan 13 19:55:24 machine kernel: <30>[   31.106003] dracut: Mounting 
/dev/disk/by-uuid/199bb83d-c783-4254-a6eb-fdbb83c33144 with -o 
rw,relatime,data=ordered
Jan 13 19:55:24 machine kernel: [   31.116662] EXT4-fs (dm-2): mounted 
filesystem with ordered data mode. Opts: data=ordered
Jan 13 19:55:24 machine kernel: <30>[   31.124793] dracut: Mounted root 
filesystem /dev/mapper/MacVg-gentoo--root
Jan 13 19:55:24 machine kernel: <30>[   31.136286] dracut: Mounting /usr with 
-o defaults
Jan 13 19:55:24 machine kernel: [   31.518944] EXT4-fs (dm-3): recovery complete
Jan 13 19:55:24 machine kernel: [   31.524685] EXT4-fs (dm-3): mounted 
filesystem with ordered data mode. Opts: (null)
Jan 13 19:55:24 machine kernel: <30>[   31.568023] dracut: Switching root

My Dracut kernel command line options:

rd.vconsole.keymap=workman rd.vconsole.font=ter-132n 
root=UUID=199bb83d-c783-4254-a6eb-fdbb83c33144 
rd.luks.uuid=2acb7668-fff1-492d-b46e-f05ead26d153 rd.lvm.vg=MacVg

And /etc/dracut.conf:

hostonly="yes"

Any suggestions why Dracut is not performing /usr filesystem check as it
is supposed to accordingly to the man pages?

---
Andrew



[gentoo-user] prototype testing: request for test cases

2018-01-13 Thread Michael Lienhardt

Dear Everyone,

With some friends and colleagues, I implemented an alternative dependency 
solver for portage (as discussed here: 
https://forums.gentoo.org/viewtopic-t-1074202.html and 
https://forums.gentoo.org/viewtopic-t-1075286.html ).
We need your help to test it and possibly improve in the long run the already 
great portage toolset.

You can help us in two ways:
 - you can send us the zip generated by this bash script: 
https://raw.githubusercontent.com/HyVar/gentoo_to_mspl/master/benchmarks/get_installation.sh
   This bash script extracts your world file, the USE flags and keywords 
configuration of your system and the list of installed packages you have (it 
should not take more than few seconds).
   With this, we will see if our solver is able to recreate your system and how 
much time it takes.

 - you can propose installation challenges, i.e., sets of packages to install.
   With this, we will compare the answer and the response time between emerge 
and our solver.

You can send everything to my professional email: mlien...@di.unito.it

Thank you!
Michael Lienhardt



Re: [gentoo-user] Microcode updates for "old" Intel CPU's

2018-01-13 Thread taii...@gmx.com

On 01/13/2018 12:50 PM, Mick wrote:


Thank you Taiidan for taking time to respond.

Always man!

On Friday, 12 January 2018 17:21:19 GMT you wrote:

AMD says they are releasing microcode updates for their previous
generation CPU's (Opteron, FX, etc) next week.
So much better than intel throwing older CPU owners to the wolves.

Indeed, this is one more reason I will not look at Intel ever again!



In terms of what CPU to get - I would get either an AMD G34/C32 Opteron
(pre-PSP) with a compatible libre firmware board (KGPE-D16 or KCMA-D8)
or if you can afford it a POWER9 system as IBM quickly released updates
for POWER to solve this issue and if they ever stopped due to
considering your system "too old" POWER9 is owner controlled and
documented so the community could theoretically patch its own microcode.

You can make a C32 libre firmware gaming system for around 500-700, so
that is quite affordable.

The problem with KGPE-D16 and KCMA-D8 is that I can't find these new in the
UK.  All I find is stripped down second hand MoBos in ebay from businesses
shuttering and repossessions.  Also, they do not appear to come with modern
niceties for a desktop like HDMI or DP ports?
You have to install a graphics card - like with any other 
server/workstation motherboard the onboard graphics are crappy.


I would order one from the US if you can't find a UK retailer, these are 
the most easily obtainable and affordable owner controlled boards.

Power9 appear to be quite new and again I can't find a place that sells them
or provides a price for them ...

https://raptorcs.com
The TALOS 2 - made by the same folks who did the coreboot ports for the 
D8 and D16 boards
It is pending RYF certification, is 100% owner controlled and it has 
libre firmware from the factory.
POWER is the only owner controlled performance CPU out there, IBM 
publishes a lot of documentation and there is absolutely no hardware 
code signing enforcement not even for the microcode.


Please note that 5K is an average price for server hardware in that 
performance class, there are a variety of lower end owner controlled 
options if that is too much/if you don't need something that fast.

We don't do any gaming with our PCs.  General office suite applications, heavy
browsing/emails and some media transcoding.

The market has been cornered by the near monopoly of Intel, especially on
laptops.  The last PC I built was a relatively cheap and cheerful AMD
A10-7850K on an ASUS MoBo, which sadly comes loaded with its own hardwired PSP
rootkit.  :-(

You can install a FM2 CPU on that, the plus has PSP the regular doesn't.

Any ideas for places I could look for a power9 workstation - assuming it is
affordable, or are there are any other CPU/MoBos I could look at?

Define affordable?
People have gotten used to intel's cheap CPU's that they don't really 
own - even just 15 years ago computers used to cost significantly more.
I remember when the P4 was just released and crappy pre-builds were 
going for 2K+.




Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Floyd Anderson

On Sat, 13 Jan 2018 11:58:43 +0100
Andrew Barchuk  wrote:

Hi folks,


[…]


Any ideas what is going on and how do I make the fsck check succeed?


It seems the init script(s) within your initramfs implements no 
logic/hooks for fsck but just mount your /usr partition. After switching 
to real root your OpenRC fsck init script try to check /usr partition 
due to the specified 2 for passno (sixth field in /usr fstab entry) and 
fails because it is already mounted.


You have to implement your own logic in initramfs init script(s) and set 
passno to 0 for /usr partition to prevent the OpenRC fsck. Have a look 
at [1] as a starting point. Also check if /etc/initramfs.mounts exists 
(comes with genkernel-next and probably with other packages, I am not 
sure at this) and what is defined in there.


The steps to realise a fsck check hook within an initramfs init script 
may not be trivial and time consuming on building/testing, so, as Alan 
suggested earlier, checking your partition with a booted rescue live CD 
or similar, may prevent some headaches.



References:
 - [1] 



--
Regards,
floyd




Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Alan McKinnon
On 13/01/2018 12:58, Andrew Barchuk wrote:
> Hi folks,
> 
> I've posted about this problem to the forums[1] without luck despite
> getting more than a thousand views so I thought I'll try here.
> 
> My system boots successfully but filesystem check fails for /usr which
> is on a separate partition:
> 
>  * Checking local filesystems  ...
> /dev/mapper/MacVg-gentoo--root: clean, 2390/65536 files, 30938/262144 blocks
> /dev/mapper/MacVg-gentoo--usr is mounted.
> e2fsck: Cannot continue, aborting.
> 
> 
> /dev/mapper/MacVg-gentoo--var: clean, 22647/65536 files, 59083/262144 blocks
> /dev/mapper/MacVg-gentoo--home: clean, 8080/917504 files, 243397/3670016 
> blocks
> /dev/mapper/MacVg-data: clean, 5293/3145728 files, 8945157/12582912 blocks
>  * Operational error
>  [ !! ] 
> 
> I use LVM on LUKS container for my partitions and an initramfs built
> with genkernel.
> 
> My fstab:
> 
> /dev/MacVg/gentoo-root  /   ext4defaults0 1
> /dev/MacVg/gentoo-usr   /usrext4defaults0 2
> /dev/MacVg/gentoo-var   /varext4nodev,nosuid0 2
> /dev/MacVg/gentoo-home  /home   ext4nodev,nosuid0 2
> /dev/MacVg/data /data   ext4nodev,nosuid,noexec 0 2
> LABEL=EFI   /boot   vfatnoauto,umask=0022   0 2
> /dev/MacVg/swap noneswapdefaults0 0
> tmpfs   /tmptmpfs   nosuid,nodev,size=1G,mode=1777 0 0
> tmpfs   /var/tmp tmpfs  nosuid,nodev,size=8G,mode=1777 0 0 
> 
> Any ideas what is going on and how do I make the fsck check succeed?
> Maybe I should file it as an OpenRC bug but I'm not completely sure if
> it's not me doing something wrong.
> Thanks in advance for any help.
> 
> 1. https://forums.gentoo.org/viewtopic-t-1075174-highlight-.html
> 
> ---
> Andrew
> 


By far the easiest way to deal with this without having to predict if
maybe /usr is mounted or not, or if maybe your intiramfs has the correct
files in place and all sorts of other maybes, is the following:

- find any old LiveCD/installer/whatever on CD or thumb drive (the
gentoo minimal install CD works just fine, so does ubuntu-server
installer (it boots quite quickly)
- set your BIOS to boot from that device
- reboot
- use the fsck tool on that system (which is independent of your main
system) to fix the broken fs for /usr
- reboot as normal

Yes, you *could* fiddle with your initramfs to provide a shell and fs
tools. How often are you going to use it or test it? As you are not
RedHat with paying customers, I'd say "almost never". so rescue disk ftw
-- 
Alan McKinnon
alan.mckin...@gmail.com




Re: [gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread John Covici
On Sat, 13 Jan 2018 05:58:43 -0500,
Andrew Barchuk wrote:
> 
> Hi folks,
> 
> I've posted about this problem to the forums[1] without luck despite
> getting more than a thousand views so I thought I'll try here.
> 
> My system boots successfully but filesystem check fails for /usr which
> is on a separate partition:
> 
>  * Checking local filesystems  ...
> /dev/mapper/MacVg-gentoo--root: clean, 2390/65536 files, 30938/262144 blocks
> /dev/mapper/MacVg-gentoo--usr is mounted.
> e2fsck: Cannot continue, aborting.
> 
> 
> /dev/mapper/MacVg-gentoo--var: clean, 22647/65536 files, 59083/262144 blocks
> /dev/mapper/MacVg-gentoo--home: clean, 8080/917504 files, 243397/3670016 
> blocks
> /dev/mapper/MacVg-data: clean, 5293/3145728 files, 8945157/12582912 blocks
>  * Operational error
>  [ !! ] 
> 
> I use LVM on LUKS container for my partitions and an initramfs built
> with genkernel.
> 
> My fstab:
> 
> /dev/MacVg/gentoo-root  /   ext4defaults0 1
> /dev/MacVg/gentoo-usr   /usrext4defaults0 2
> /dev/MacVg/gentoo-var   /varext4nodev,nosuid0 2
> /dev/MacVg/gentoo-home  /home   ext4nodev,nosuid0 2
> /dev/MacVg/data /data   ext4nodev,nosuid,noexec 0 2
> LABEL=EFI   /boot   vfatnoauto,umask=0022   0 2
> /dev/MacVg/swap noneswapdefaults0 0
> tmpfs   /tmptmpfs   nosuid,nodev,size=1G,mode=1777 0 0
> tmpfs   /var/tmp tmpfs  nosuid,nodev,size=8G,mode=1777 0 0 
> 
> Any ideas what is going on and how do I make the fsck check succeed?
> Maybe I should file it as an OpenRC bug but I'm not completely sure if
> it's not me doing something wrong.
> Thanks in advance for any help.
> 
> 1. https://forums.gentoo.org/viewtopic-t-1075174-highlight-.html
> 

I bet you are using genkernel or gentoo-next to generate your initrd.
If so, its because the script they have mounts the /usr at the wrong
time, and you cannot do e2fsck to a mounted disk.  You might have
better luck using dracut -- be sure to have the use flag of -systemd
if you are using openrc.

-- 
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



[gentoo-user] fsck check of /usr on a separate partition fails during boot

2018-01-13 Thread Andrew Barchuk
Hi folks,

I've posted about this problem to the forums[1] without luck despite
getting more than a thousand views so I thought I'll try here.

My system boots successfully but filesystem check fails for /usr which
is on a separate partition:

 * Checking local filesystems  ...
/dev/mapper/MacVg-gentoo--root: clean, 2390/65536 files, 30938/262144 blocks
/dev/mapper/MacVg-gentoo--usr is mounted.
e2fsck: Cannot continue, aborting.


/dev/mapper/MacVg-gentoo--var: clean, 22647/65536 files, 59083/262144 blocks
/dev/mapper/MacVg-gentoo--home: clean, 8080/917504 files, 243397/3670016 blocks
/dev/mapper/MacVg-data: clean, 5293/3145728 files, 8945157/12582912 blocks
 * Operational error
 [ !! ] 

I use LVM on LUKS container for my partitions and an initramfs built
with genkernel.

My fstab:

/dev/MacVg/gentoo-root  /   ext4defaults0 1
/dev/MacVg/gentoo-usr   /usrext4defaults0 2
/dev/MacVg/gentoo-var   /varext4nodev,nosuid0 2
/dev/MacVg/gentoo-home  /home   ext4nodev,nosuid0 2
/dev/MacVg/data /data   ext4nodev,nosuid,noexec 0 2
LABEL=EFI   /boot   vfatnoauto,umask=0022   0 2
/dev/MacVg/swap noneswapdefaults0 0
tmpfs   /tmptmpfs   nosuid,nodev,size=1G,mode=1777 0 0
tmpfs   /var/tmp tmpfs  nosuid,nodev,size=8G,mode=1777 0 0 

Any ideas what is going on and how do I make the fsck check succeed?
Maybe I should file it as an OpenRC bug but I'm not completely sure if
it's not me doing something wrong.
Thanks in advance for any help.

1. https://forums.gentoo.org/viewtopic-t-1075174-highlight-.html

---
Andrew