summaryrefslogtreecommitdiff
path: root/mkarchroot
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2007-10-21 21:08:55 -0500
committerAaron Griffin <aaronmgriffin@gmail.com>2007-10-21 21:08:55 -0500
commit0b7d43615be10f99f5a98fedc3bc323d0f4e76b8 (patch)
treee4929f50fa8fbbde5b4b710bd84047e4f63153b3 /mkarchroot
parent34ee028d046c1df50fd075dade02ed178b8ed54a (diff)
downloaddevtools32-0b7d43615be10f99f5a98fedc3bc323d0f4e76b8.tar.xz
Added GPL headers
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
Diffstat (limited to 'mkarchroot')
-rwxr-xr-xmkarchroot12
1 files changed, 10 insertions, 2 deletions
diff --git a/mkarchroot b/mkarchroot
index ec08542..588fc73 100755
--- a/mkarchroot
+++ b/mkarchroot
@@ -1,4 +1,12 @@
#!/bin/sh
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; version 2 of the License.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
FORCE="n"
RUN=""
@@ -137,8 +145,8 @@ else
fi
echo "generating default locales"
- sed -i "s|^#\(.*$LANG\)|\1|g" /etc/locale.gen
- locale-gen
+ sed -i "s|^#\(.*$LANG\)|\1|g" "${working_dir}/etc/locale.gen"
+ chroot "${working_dir}" locale-gen
if [ ! -e "${working_dir}/.arch-chroot" ]; then
date +%s > "${working_dir}/.arch-chroot"