projects
/
grml-debootstrap.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8a519f7
)
Adjust usage of sed
author
Michael Prokop
<devnull@localhost>
Fri, 29 Aug 2008 13:10:00 +0000
(15:10 +0200)
committer
Michael Prokop
<devnull@localhost>
Fri, 29 Aug 2008 13:10:00 +0000
(15:10 +0200)
grml-debootstrap
patch
|
blob
|
history
diff --git
a/grml-debootstrap
b/grml-debootstrap
index
31e7482
..
e2dbc6a
100755
(executable)
--- a/
grml-debootstrap
+++ b/
grml-debootstrap
@@
-694,10
+694,10
@@
preparechroot() {
# make sure we have our files for later use via chroot-script
cp /etc/debootstrap/config $MNTPOINT/etc/debootstrap/
# make sure we adjust the configuration variables accordingly:
# make sure we have our files for later use via chroot-script
cp /etc/debootstrap/config $MNTPOINT/etc/debootstrap/
# make sure we adjust the configuration variables accordingly:
- sed -i "s
/RELEASE=.*/RELEASE=\"$RELEASE\"/
" $MNTPOINT/etc/debootstrap/config
- sed -i "s
/TARGET=.*/TARGET=\"$TARGET\"/
" $MNTPOINT/etc/debootstrap/config
- sed -i "s
/GRUB=.*/GRUB=\"$GRUB\"/
" $MNTPOINT/etc/debootstrap/config
- sed -i "s
/GROOT=.*/GROOT=\"$GROOT\"/
" $MNTPOINT/etc/debootstrap/config
+ sed -i "s
#RELEASE=.*#RELEASE=\"$RELEASE\"#
" $MNTPOINT/etc/debootstrap/config
+ sed -i "s
#TARGET=.*#TARGET=\"$TARGET\"#
" $MNTPOINT/etc/debootstrap/config
+ sed -i "s
#GRUB=.*#GRUB=\"$GRUB\"#
" $MNTPOINT/etc/debootstrap/config
+ sed -i "s
#GROOT=.*#GROOT=\"$GROOT\"#
" $MNTPOINT/etc/debootstrap/config
cp /etc/debootstrap/packages $MNTPOINT/etc/debootstrap/packages
cp /etc/debootstrap/packages $MNTPOINT/etc/debootstrap/packages
@@
-712,7
+712,7
@@
preparechroot() {
# provide system's /etc/hosts to the target:
if ! [ -f "$MNTPOINT/etc/hosts" ] ; then
cp /etc/hosts $MNTPOINT/etc/hosts
# provide system's /etc/hosts to the target:
if ! [ -f "$MNTPOINT/etc/hosts" ] ; then
cp /etc/hosts $MNTPOINT/etc/hosts
- sed -i "s
/127.0.0.1 .*/127.0.0.1 localhost $HOSTNAME/
" /etc/hosts
+ sed -i "s
#127.0.0.1 .*#127.0.0.1 localhost $HOSTNAME#
" /etc/hosts
fi
# setup default locales
fi
# setup default locales