Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken AutoYaST #279

Closed
5 tasks done
thehejik opened this issue May 29, 2019 · 9 comments
Closed
5 tasks done

Fix broken AutoYaST #279

thehejik opened this issue May 29, 2019 · 9 comments

Comments

@thehejik
Copy link
Contributor

thehejik commented May 29, 2019

After merging of #197 I found few problems with the AutoYaST profile which needs to be addressed.

I will be extending following list.

Important

  • Doesn't work due bsc#1136861 chrony not configured: ref. doc, or use following block from cloned system
  <ntp-client>
    <ntp_policy>auto</ntp_policy>
    <ntp_servers config:type="list">
      <ntp_server>
        <address>pool.ntp.org</address>
        <iburst config:type="boolean">true</iburst>
        <offline config:type="boolean">false</offline>
      </ntp_server>
    </ntp_servers>
    <ntp_sync>systemd</ntp_sync>
  </ntp-client>
  • This block for enabling recommended packages fixes all the issue with following missing packages:
<software>
...
  <install_recommended config:type="boolean">true</install_recommended>
...
</software>
  • sudo not installed
  • chrony not installed
  • glibc-locale not installed -> after login as sles user -bash: warning: setlocale: .*: No such file or directory
  • SUSEConnect not installed (mainly needed for de-registration)
  • ca-certificates+ deps not installed (hence unable to install anything over zypper)
  • grub2-snapper-plugin not installed - missing snapper support in grub2
  • snapper-zypp-plugin not installed - snapper doesn't create snapshots when installing|updating packages

Minor

  • unify value placeholders - either use <!-- replace this comment with a public ssh key --> or [email] | [sles-reg-code] | [caasp-reg-code]method
  • [sles-reg-code] shouldn't be needed - try to use [caasp-reg-code] directly instead
  • we should distinguish between legacy/BIOS and EFI based machines (2 profiles?) - for eg. we do not need esp partition on BIOS machine
@thehejik thehejik changed the title AutoYaST improvments AutoYaST improvements May 29, 2019
@thehejik thehejik changed the title AutoYaST improvements Fix broken AutoYaST May 30, 2019
@jordimassaguerpla
Copy link
Member

@thehejik Can you create a PR with the fixes? So @Klaven can review it?

@thehejik
Copy link
Contributor Author

I'm on it but ntp configuration over autoyast is not working, I filed a SLE15-SP1 bug for that https://bugzilla.suse.com/show_bug.cgi?id=1136861

@Klaven
Copy link

Klaven commented May 30, 2019

@thehejik some of those things are installed via the patterns like sudo. Also some seem not needed unless you have a btrfs filesystem like snapper. I think this warrants a larger conversation as we are starting to do some things that are very specific, like BIOS and EFI. How many versions will we support in the end?

@Klaven
Copy link

Klaven commented May 30, 2019

also. install recommended is true by default. no need to set it to true as that is the default behavior.

@Klaven
Copy link

Klaven commented May 30, 2019

@thehejik also maybe you wrote this before the yast file was merged because at one point it had install_recommended=false. this was removed for the final version. Please look at it how it was merged.

@jordimassaguerpla
Copy link
Member

@thehejik and @Klaven : IIUC, all is already fixed in the latest version except for the NTP and the UEFI vs legacy BIOS.

@Klaven agreed on updating the documentation regarding UEFI vs legacy BIOS.

@thehejik let us know when you have more info on the NTP

Sounds like a plan ;)

Let me know if I missed anything.

@thehejik
Copy link
Contributor Author

thehejik commented May 31, 2019

@Klaven please comment in the PR directly #283

@thehejik
Copy link
Contributor Author

thehejik commented Jun 3, 2019

@Klaven I successfully validated on KVM with EFI fw that the system installed by using autoyast from #283 (improved version with ntp) is fully EFI compatible - even with SecureBoot enabled.

$ mokutil --sb-state
SecureBoot enabled

@thehejik
Copy link
Contributor Author

thehejik commented Jun 4, 2019

The PR was merged, closing

@thehejik thehejik closed this as completed Jun 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants