Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Arch Linux
arch-boxes
Commits
b5877a9e
Verified
Commit
b5877a9e
authored
Oct 02, 2020
by
Kristian Klausen
🎉
Browse files
Use systemd-firstboot to set locale, timezone, hostname and keymap
parent
0fdc2131
Changes
2
Hide whitespace changes
Inline
Side-by-side
build-inside-vm.sh
View file @
b5877a9e
...
...
@@ -89,8 +89,9 @@ function postinstall() {
echo
"COMPRESSION=
\"
xz
\"
"
>>
"
${
MOUNT
}
/etc/mkinitcpio.conf"
arch-chroot
"
${
MOUNT
}
"
/usr/bin/mkinitcpio
-p
linux
echo
"archlinux"
>
"
${
MOUNT
}
/etc/hostname"
echo
"KEYMAP=us"
>
"
${
MOUNT
}
/etc/vconsole.conf"
sed
-i
-e
's/^#\(en_US.UTF-8\)/\1/'
"
${
MOUNT
}
/etc/locale.gen"
arch-chroot
"
${
MOUNT
}
"
/usr/bin/locale-gen
arch-chroot
"
${
MOUNT
}
"
/usr/bin/systemd-firstboot
--locale
=
en_US.UTF-8
--timezone
=
UTC
--hostname
=
archlinux
--keymap
=
us
ln
-sf
/var/run/systemd/resolve/resolv.conf
"
${
MOUNT
}
/etc/resolv.conf"
}
...
...
http/install-common.sh
View file @
b5877a9e
...
...
@@ -3,11 +3,6 @@
set
-e
set
-x
ln
-sf
/usr/share/zoneinfo/UTC /etc/localtime
sed
-i
-e
's/^#\(en_US.UTF-8\)/\1/'
/etc/locale.gen
locale-gen
echo
'LANG=en_US.UTF-8'
>
/etc/locale.conf
# setting the user credentials
useradd
-m
-U
"
${
NEWUSER
}
"
echo
-e
"
${
NEWUSER
}
\n
${
NEWUSER
}
"
| passwd
"
${
NEWUSER
}
"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment