-
Notifications
You must be signed in to change notification settings - Fork 7
Consolidate on-prem-installer deb packages #363
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
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Halim, Abdul <abdul.halim@intel.com>
Signed-off-by: Halim, Abdul <abdul.halim@intel.com>
Signed-off-by: Halim, Abdul <abdul.halim@intel.com>
Signed-off-by: Halim, Abdul <abdul.halim@intel.com>
Signed-off-by: Halim, Abdul <abdul.halim@intel.com>
Signed-off-by: Halim, Abdul <abdul.halim@intel.com>
Signed-off-by: Halim, Abdul <abdul.halim@intel.com>
This reverts commit d975dde.
Signed-off-by: Halim, Abdul <abdul.halim@intel.com>
This reverts commit cd02597.
Signed-off-by: Halim, Abdul <abdul.halim@intel.com>
Signed-off-by: Halim, Abdul <abdul.halim@intel.com>
Signed-off-by: Halim, Abdul <abdul.halim@intel.com>
Signed-off-by: Halim, Abdul <abdul.halim@intel.com>
Signed-off-by: Halim, Abdul <abdul.halim@intel.com>
Signed-off-by: Halim, Abdul <abdul.halim@intel.com>
Reviewing now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. These are some non-blocking comments but looks good otherwise
🥇
# disable loading of kernel modules at boot | ||
rm -fr /etc/modules-load.d/lv-snapshots.conf | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Enable kernel modules required for LV snapshots | ||
func configModules() error { | ||
fmt.Println("config kernel modules...") | ||
|
||
mods, err := os.OpenFile("/etc/modules-load.d/lv-snapshots.conf", os.O_RDWR|os.O_CREATE|os.O_TRUNC, 0o644) | ||
if err != nil { | ||
return err | ||
} | ||
defer mods.Close() | ||
|
||
if _, err = mods.WriteString("dm-snapshot\ndm-mirror\n"); err != nil { | ||
return err | ||
} | ||
|
||
if err = sh.RunV("modprobe", "dm-snapshot"); err != nil { | ||
return err | ||
} | ||
if err = sh.RunV("modprobe", "dm-mirror"); err != nil { | ||
return err | ||
} | ||
|
||
return nil | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will also be deleted in #381
"-d", "jq,libpq5,apparmor,lvm2,mosquitto,net-tools,ntp,openssh-server", //nolint:misspell | ||
"-d", "software-properties-common,tpm2-abrmd,tpm2-tools,unzip", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious, where did these deps come from? We can probably audit and remove these later.
Like how does RKE2 depend on openssh-server? 😆
Description
Consolidate on-prem-installer deb packages:
This PR depends on #352 which needs to be merged first
Fixes # (issue)
Any Newly Introduced Dependencies
Please describe any newly introduced 3rd party dependencies in this change. List their name, license information and how they are used in the project.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist: