-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
186f633
commit c81daff
Showing
3 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
|
||
hostn=$(cat /etc/hostname) | ||
echo -ne " | ||
# Standard host addresses | ||
127.0.0.1 localhost | ||
::1 localhost ip6-localhost ip6-loopback | ||
ff02::1 ip6-allnodes | ||
ff02::2 ip6-allrouters | ||
# This host address | ||
127.0.1.1 ${hostn} | ||
" >/etc/hosts |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -74,15 +74,17 @@ timeout: 999 | |
# ignored; the slowloris command has a different timeout from the | ||
# other commands in the list): | ||
script: | ||
- command: "/usr/bin/local/fix-hosts" | ||
- "-rm ${ROOT}/etc/sudoers.d/g_wheel" | ||
- "-rm -r ${ROOT}/etc/systemd/system/[email protected]" | ||
- "-rm -r ${ROOT}/etc/systemd/system/multi-user.target.wants/pacman-init.service" | ||
- "-rm -r ${ROOT}/etc/systemd/system/pacman-init.service" | ||
- "-rm ${ROOT}/etc/systemd/system/etc-pacman.d-gnupg.mount" | ||
- "-rm ${ROOT}/etc/polkit-1/rules.d/49-nopasswd-calamares.rules" | ||
# Remove calamares and installer | ||
# Remove calamares and installer and helpers | ||
- "-rm ${ROOT}/var/log/Calamares*" | ||
- "-rm /usr/local/bin/installer" | ||
- "-rm /usr/bin/local/fix-hosts" | ||
# remove the /root/.bashrc lines from ### AUTOMATED INSTALLATION START ### to ### AUTOMATED INSTALLATION END ### | ||
- command: "sed -i '/### AUTOMATED INSTALLATION START ###/,/### AUTOMATED INSTALLATION END ###/d' ${ROOT}/root/.bashrc" | ||
# Re-Apply dotfiles to new user | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters