Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit b4cc581

Browse files
author
Christophe - CC4
authored
fix : autorename not working when hostname is localhost
1 parent 212c5c9 commit b4cc581

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

stage2/06-auto-rename/01-run-chroot.sh

+5
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ __set_random_hostname() {
3131
3232
}
3333
34+
# Check if the hostname is localhost and if so, set a random hostname
35+
if [ "\$(hostname)" == "localhost" ]; then
36+
__set_random_hostname
37+
fi
38+
3439
# Check if the hostname is presentium-device and if so, set a random hostname
3540
if [ "\$(hostname)" == "presentium-device" ]; then
3641
__set_random_hostname

0 commit comments

Comments
 (0)