-
Notifications
You must be signed in to change notification settings - Fork 20
Remove machine-id during image build and exit #78
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,4 @@ export LANG=C LC_CTYPE=C | |
|
|
||
| set -x | ||
| dnf clean all | ||
| rm -f /etc/machine-id /var/lib/dbus/machine-id | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,4 @@ export LANG=C LC_CTYPE=C | |
|
|
||
| set -x | ||
| dnf clean all | ||
| rm -f /etc/machine-id /var/lib/dbus/machine-id | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,4 @@ LANG=C | |
| LC_CTYPE=C | ||
| export LANG LC_CTYPE | ||
| apt-get clean | ||
| rm -f /etc/machine-id /var/lib/dbus/machine-id | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,3 +4,4 @@ LANG=C | |
| LC_CTYPE=C | ||
| export LANG LC_CTYPE | ||
| dnf clean all | ||
| rm -f /etc/machine-id /var/lib/dbus/machine-id | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,4 @@ | |
| export LANG=C LC_CTYPE=C | ||
| set -x | ||
| zypper clean -a | ||
| rm -f /etc/machine-id /var/lib/dbus/machine-id | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,4 @@ export LANG=C LC_CTYPE=C | |
|
|
||
| set -x | ||
| dnf clean all | ||
| rm -f /etc/machine-id /var/lib/dbus/machine-id | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -13,3 +13,4 @@ export LANG=C LC_CTYPE=C | |
|
|
||
| set -x | ||
| dnf clean all | ||
| rm -f /etc/machine-id /var/lib/dbus/machine-id | ||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -46,6 +46,7 @@ RUN zypper update -y \ | |||||||
|
|
||||||||
| COPY excludes /etc/warewulf/ | ||||||||
| COPY container_exit.sh /etc/warewulf/ | ||||||||
| RUN /etc/warewulf/container_exit.sh | ||||||||
|
||||||||
| RUN /etc/warewulf/container_exit.sh | |
| RUN chmod +x /etc/warewulf/container_exit.sh \ | |
| && /etc/warewulf/container_exit.sh |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -2,3 +2,4 @@ | |
| export LANG=C LC_CTYPE=C | ||
|
||
| set -x | ||
| zypper clean -a | ||
| rm -f /etc/machine-id /var/lib/dbus/machine-id | ||
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 is how I do it on Debian/Ubuntu, there was a reason but I don't recall. This should be tested before pushed. Not sure if my Debian/Ubuntu virtual cluster still works.
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.
Booted a Debian:12.0 node and it worked fine.
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.
Here's the guidance from the manpage:
It sounds like systemd writes "uninitialized" to the file temporarily during first boot, but I haven't found guidance to do it for images. Unless you can find a reason to do it, I recommend we remove it (or put an empty file there) for our images.
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.
I vote remove