mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-19 14:51:49 +00:00
fix resolv.conf for ubuntu-touch initramfs creation
This commit is contained in:
parent
ef88505296
commit
c4064d69e0
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
|||||||
|
livecd-rootfs (2.139) UNRELEASED; urgency=low
|
||||||
|
|
||||||
|
* fix resolv.conf for ubuntu-touch initramfs creation
|
||||||
|
|
||||||
|
-- Oliver Grawert <ogra@ubuntu.com> Wed, 29 May 2013 12:10:53 +0200
|
||||||
|
|
||||||
livecd-rootfs (2.138) saucy; urgency=low
|
livecd-rootfs (2.138) saucy; urgency=low
|
||||||
|
|
||||||
* also move the sources.list.d dir out of the way on ubuntu-touch
|
* also move the sources.list.d dir out of the way on ubuntu-touch
|
||||||
|
@ -412,6 +412,13 @@ if [ "$PROJECT" = "ubuntu-touch" ] && [ "$ARCH" = "armhf" ]; then
|
|||||||
lb chroot_sysfs install "$@"
|
lb chroot_sysfs install "$@"
|
||||||
lb chroot_devpts install "$@"
|
lb chroot_devpts install "$@"
|
||||||
|
|
||||||
|
if [ -e chroot/etc/resolv.conf ]; then
|
||||||
|
mv chroot/etc/resolv.conf chroot/etc/resolv.conf.orig
|
||||||
|
fi
|
||||||
|
if [ -e /etc/resolv.conf ]; then
|
||||||
|
cp /etc/resolv.conf chroot/etc/resolv.conf
|
||||||
|
fi
|
||||||
|
|
||||||
mv "${sourceslist}" "${sourceslist}.orig"
|
mv "${sourceslist}" "${sourceslist}.orig"
|
||||||
mv "${sourceslist}.d" "${sourceslist}.d.orig"
|
mv "${sourceslist}.d" "${sourceslist}.d.orig"
|
||||||
echo "deb http://ftpmaster.internal/ubuntu/ $codename main universe" >$sourceslist
|
echo "deb http://ftpmaster.internal/ubuntu/ $codename main universe" >$sourceslist
|
||||||
@ -445,6 +452,11 @@ if [ "$PROJECT" = "ubuntu-touch" ] && [ "$ARCH" = "armhf" ]; then
|
|||||||
for file in $(find chroot/var/lib/apt/lists/ -name ftpmaster.internal*); do
|
for file in $(find chroot/var/lib/apt/lists/ -name ftpmaster.internal*); do
|
||||||
rm $file
|
rm $file
|
||||||
done
|
done
|
||||||
|
if [ -e chroot/etc/resolv.conf.orig ]; then
|
||||||
|
mv chroot/etc/resolv.conf.orig chroot/etc/resolv.conf
|
||||||
|
else
|
||||||
|
rm chroot/etc/resolv.conf
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# LTSP chroot building (only in 32bit and for Edubuntu (DVD))
|
# LTSP chroot building (only in 32bit and for Edubuntu (DVD))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user