LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE
User Name
Password
SUSE / openSUSE This Forum is for the discussion of Suse Linux.

Notices


Reply
  Search this Thread
Old 07-31-2019, 05:10 PM   #16
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Original Poster
Rep: Reputation: Disabled

note that when I
Code:
nano /etc/default/grub
I see that the code line is different from what I see when I "-e" at startup.
Meaning that the /etc/default/grub text is not the one used at boot.
 
Old 07-31-2019, 05:19 PM   #17
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
I would google the error message "FIPS integrity test failed". There are several results.

Quote:
Originally Posted by eric.vanh View Post
note that when I
Code:
nano /etc/default/grub
I see that the code line is different from what I see when I "-e" at startup.
Meaning that the /etc/default/grub text is not the one used at boot.
Which code line? And how do the lines differ?

Last edited by berndbausch; 07-31-2019 at 05:56 PM.
 
Old 07-31-2019, 05:20 PM   #18
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Original Poster
Rep: Reputation: Disabled
And I can no longer access the boot loader settings via YAST ...
Code:
Internal error. Please report a bug report with logs.
Run save_y2logs to get complete logs.

Caller: /usr/lib64/ruby/gems/2.5.0/gems/cfa-0.7.0/lib/cfa/augeas_parser.rb:455:in `report_activity_error!'

Details: Augeas parsing error: Get did not match entire input at /etc/default/grub:11:0, lens /usr/share/augeas/lenses/dist/sysconfig.aug:65.12-.71:
is it because the change with "-e" at boot time ?
 
Old 07-31-2019, 05:45 PM   #19
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Original Poster
Rep: Reputation: Disabled
What I have when I "-e" at boot time is definitely not what's in /etc/default/grub

Now I have to "-e" the boot line everytime I boot
 
Old 07-31-2019, 06:01 PM   #20
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
Quote:
Originally Posted by eric.vanh View Post
Details: Augeas parsing error: Get did not match entire input at /etc/default/grub:11:0
Syntax error in /etc/grub/default, perhaps? At line 11, or around that line?

Also check if this dracut error could be related:
Code:
/boot/.vmlinuz-4.12(...)-default.hmac does not exist
I do have the suspicion that your attempts to generate a grub configuration fail. Does the grub.cfg file correspond to the default? Are you sure that you are configuring the correct grub.cfg?

Last edited by berndbausch; 07-31-2019 at 06:05 PM.
 
Old 07-31-2019, 06:38 PM   #21
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by berndbausch View Post
I would google the error message "FIPS integrity test failed". There are several results.



Which code line? And how do the lines differ?
In "-e" at boot, I see that fips=1 is still in 2nd position
=> In /etc/default/grab I definitely have it at the very end, as I've been (corrected) told

In "-e" at boot, I see that "splash=verbose" and "quiet" are still there,
=> In /etc/default/grab I've removed them

In "-e" at boot, I see that "boot=/dev/sda1" is not here
=> In /etc/default/grab I have that "boot=/dev/sda1" just before fips=1 at the end

Now my only way to boot is to -e and remove fips=1 each time

Last edited by eric.vanh; 07-31-2019 at 07:11 PM. Reason: wordmissing
 
Old 07-31-2019, 06:50 PM   #22
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Original Poster
Rep: Reputation: Disabled
Arrow

Quote:
Originally Posted by berndbausch View Post
Syntax error in /etc/grub/default, perhaps? At line 11, or around that line?
Could very well be, but I can't access it ... because of the error.
I want to access bootloder via YAST because I'm pretty sure that what I write in YAST doesn't go to etc/defaut/grub

Quote:
Originally Posted by berndbausch View Post
Also check if this dracut error could be related:
Code:
/boot/.vmlinuz-4.12(...)-default.hmac does not exist
That error message comes up only when I boot with fips=1.
I can't go any further as the system halts (won't boot)
Quote:
Originally Posted by berndbausch View Post
I do have the suspicion that your attempts to generate a grub configuration fail. Does the grub.cfg file correspond to the default? Are you sure that you are configuring the correct grub.cfg?
I mod the /etc/default/grub/grub.conf file, but didn't touch any grub.cfg file, so yes, it correspond to the default

EDIT: BTW: I see that /etc/default/grub2 is empty despite I use grub2 ??

Last edited by eric.vanh; 07-31-2019 at 07:10 PM. Reason: added info about grub2
 
Old 07-31-2019, 07:40 PM   #23
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Original Poster
Rep: Reputation: Disabled
from: https://www.suse.com/documentation/s...rub_basic.html
Code:
/etc/grub.conf

    This file contains the commands, parameters and options the GRUB shell needs for installing the boot loader correctly. 
/etc/sysconfig/bootloader

    This file is read by the perl-bootloader library which is used when configuring the boot loader with YaST and every time a new kernel is installed. It contains configuration options (such as kernel parameters) that will be added by default to the boot loader configuration file.
I think I mod "/etc/sysconfig/bootloader" when I accessed through YAST the bootloader menu

And these changes have not been transfered to /etc/default/grub

Last edited by eric.vanh; 08-01-2019 at 08:37 AM.
 
Old 07-31-2019, 08:00 PM   #24
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Original Poster
Rep: Reputation: Disabled
After having edited /etc/default/grub, update the main configuration file with grub2-mkconfig -o /boot/grub2/grub.cfg

Did the trick, my grab config file was indeed not transferred to the boot menu.

Anyway, now I can boot again, but still with no fips.
I will go back to look into FIPS integrity test failed

BTW: How to I "recall" what was on the splash screen ?

Last edited by eric.vanh; 07-31-2019 at 08:08 PM. Reason: result
 
Old 07-31-2019, 09:12 PM   #25
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Original Poster
Rep: Reputation: Disabled
Exclamation

Quote:
Originally Posted by berndbausch View Post
Syntax error in /etc/grub/default, perhaps? At line 11, or around that line?
I've mod my /etc/default/grab file to the bare minimum
Code:
  • GRUB_CMDLINE_LINUX_DEFAULT=" resume=/dev/disk/by-uuid/e0221bcd-7f4a-4cbc-a14e-87190cb99ae7 mitigations=auto" GRUB_CMDLINE_LINUX=""
And updated it into boot with grub2-mkconfig -o /boot/grub2/grub.cfg

But still can't access bootloader via YAST, same error/bug report:

Quote:
Internal error. Please report a bug report with logs.
Run save_y2logs to get complete logs.

Caller: /usr/lib64/ruby/gems/2.5.0/gems/cfa-0.7.0/lib/cfa/augeas_parser.rb:455:in `report_activity_error!'

Details: Augeas parsing error: Get did not match entire input at /etc/default/grub:11:0, lens /usr/share/augeas/lenses/dist/sysconfig.aug:65.12-.71:

Last edited by eric.vanh; 08-01-2019 at 08:38 AM.
 
Old 08-01-2019, 09:23 AM   #26
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Original Poster
Rep: Reputation: Disabled
I've created a bug report for the PERL error reading YAST bootloader.
I've seen this error mentioned in different versions, and for differents reasons
https://bugzilla.opensuse.org/show_bug.cgi?id=1143853

I will wait to have this solved before resuming my fips=1 thread/try
 
Old 08-01-2019, 12:10 PM   #27
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Original Poster
Rep: Reputation: Disabled
my /etc/default/grub file is now :
Code:
GRUB_CMDLINE_LINUX_DEFAULT="resume=/dev/disk/by-uuid/e0221bcd-7f4a-4cbc-a14e-87190cb99ae7 mitigations=auto fips=1 boot=uuid=DAF4-B957"
GRUB_CMDLINE_LINUX=""
and it boots !
Still have a red error message on the splash but still can't read it (too fast)
Still doesn't have /proc/sys/crypto created (and therefore /proc/sys/crypto/fips_enabled doesn't exist)
So even though the system does boots (with parameter fips=1) the FIPS mode is not enabled

I think I will give up ...
 
Old 08-01-2019, 07:13 PM   #28
berndbausch
LQ Addict
 
Registered: Nov 2013
Location: Tokyo
Distribution: Mostly Ubuntu and Centos
Posts: 6,316

Rep: Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002Reputation: 2002
You mix too many symptoms. There is something wrong with your Yast and/or /etc/default/grub. You system didn't boot (I see that it does now). When it boots, FIPS is not enabled.

Personally, I am lost because of the problem mix. When I ask you for clarification, you reply back with other problems.

My suggestion: Focus on one error at the time. If Yast doesn't work, configure Grub manually and address the Yast problem later.

If an error message goes past too quickly while booting, try booting into single user mode. Check the kernel message buffer (dmesg command) for any error or warning, or any message related to crypto.

There are still messages like "FIPS integrity test failed" and "hmac file not found", which you reported earlier. Search for these messages on the internet and identify search results that fit your system.
 
Old 08-02-2019, 12:13 AM   #29
eric.vanh
Member
 
Registered: Jan 2016
Location: Montreal,CAN
Distribution: Suse Leap 15.1 & Win10
Posts: 110

Original Poster
Rep: Reputation: Disabled
Arrow

Quote:
Originally Posted by berndbausch View Post
You mix too many symptoms. There is something wrong with your Yast and/or /etc/default/grub. You system didn't boot (I see that it does now). When it boots, FIPS is not enabled.

Personally, I am lost because of the problem mix. When I ask you for clarification, you reply back with other problems.

My suggestion: Focus on one error at the time. If Yast doesn't work, configure Grub manually and address the Yast problem later.

If an error message goes past too quickly while booting, try booting into single user mode. Check the kernel message buffer (dmesg command) for any error or warning, or any message related to crypto.

There are still messages like "FIPS integrity test failed" and "hmac file not found", which you reported earlier. Search for these messages on the internet and identify search results that fit your system.
I do have many problems with Leap since day one, yes, and I've solved some so far, but many remains ...
For the YAST vs. /etc/default/grub, I can't access YAST "bootloader" option (perl reading error) but I can edit -and did- the grab file and uploaded it into the bootloader with grub2-mkconfig -o /boot/grub2/grub.cfg

Now (remaining problem 1) I have fips=1 in my grub and my system does boot (it didn't before) but systctl doesn't write /crypto/fips_enabled in /proc/sys/ so fips mode is not on.

other problems are:
YAST doesn't allow me to access bootloader option
(dmesg command) doesn't show me any error message I see during boot splash
 
  


Reply

Tags
/proc, cryptography, leap, openssh, security



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
whats the difference between /proc/sys and /sys sigint-ninja Linux - Newbie 1 01-15-2015 10:38 PM
/proc/sys/vm/nr_hugepages not getting set mohitanchlia Linux - Server 4 05-21-2009 09:42 AM
Boot hang after 'proc on /proc type proc (rw)' Hagoromo Slackware 13 10-05-2007 05:03 PM
/proc/sys/net/ipv4/ip_local_port_range suse 10.1 not set at boot PredatorX Linux - Networking 4 11-29-2006 01:54 AM
add aes /proc/crypto to permanently Melsync Linux - Security 7 07-20-2006 05:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > SUSE / openSUSE

All times are GMT -5. The time now is 09:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration