projects
/
grml-debootstrap.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use cdn.debian.net as default mirror
[grml-debootstrap.git]
/
chroot-script
diff --git
a/chroot-script
b/chroot-script
index
abfad4b
..
7a26927
100755
(executable)
--- a/
chroot-script
+++ b/
chroot-script
@@
-357,8
+357,6
@@
hostname() {
if [ -r /etc/postfix/main.cf ] ; then
# adjust hostname related options:
sed -i "s/grml/$HOSTNAME/g" /etc/postfix/main.cf
if [ -r /etc/postfix/main.cf ] ; then
# adjust hostname related options:
sed -i "s/grml/$HOSTNAME/g" /etc/postfix/main.cf
- sed -i "s/^myhostname = .*/myhostname = $HOSTNAME/" /etc/postfix/main.cf
- sed -i "s/^mydestination = .*/mydestination = localdomain, localhost, localhost.localdomain, $HOSTNAME/" /etc/postfix/main.cf
# listen on loopback interface only:
sed -i "s/^inet_interfaces = .*/inet_interfaces = loopback-only/" /etc/postfix/main.cf
# listen on loopback interface only:
sed -i "s/^inet_interfaces = .*/inet_interfaces = loopback-only/" /etc/postfix/main.cf
@@
-418,6
+416,7
@@
grub() {
UPDATEGRUB='/sbin/update-grub'
fi
$UPDATEGRUB -y
UPDATEGRUB='/sbin/update-grub'
fi
$UPDATEGRUB -y
+
if [ -f /boot/grub/menu.lst ] ; then
sed -i "s/^# groot=.*/# groot=(${GROOT})/g" /boot/grub/menu.lst
case "$TARGET" in
if [ -f /boot/grub/menu.lst ] ; then
sed -i "s/^# groot=.*/# groot=(${GROOT})/g" /boot/grub/menu.lst
case "$TARGET" in