Add internal repository for testing

Signed-off-by: Dongjin Kim <tobetter@gmail.com>
Change-Id: Idd57aa96772d2fff07641dcd82cdfedbf7bfd903
This commit is contained in:
Dongjin Kim
2020-07-12 18:59:17 +09:00
parent 6ab89c1e98
commit 9963ff65f7
2 changed files with 16 additions and 0 deletions

11
fixups/S00-internal-repository Executable file
View File

@@ -0,0 +1,11 @@
#!/bin/sh
INTERNAL_APT=/etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list
if [ -f ${INTERNAL_APT} ]; then
sed -i "/internal/d" ${INTERNAL_APT}
fi
cat>>${INTERNAL_APT}<<__EOF
deb http://ppa.linuxfactory.or.kr focal internal
__EOF

View File

@@ -201,6 +201,10 @@ do_preinstall() {
${fixup}
done
if [ "x${INTERNAL}" = "x" ]; then
rm -f ${rootfs_mnt}${fixups_dir}/S00-internal-repository
fi
QEMU_BINARY=$(qemu_binary ${ARCH})
if [ ! "x${QEMU_BINARY}" = "x" ]; then
@@ -217,6 +221,7 @@ do_postinstall() {
rm -f ${rootfs_mnt}/${QEMU_BINARY}
fi
rm -rf ${rootfs_mnt}${fixups_dir}
rm -rf ${rootfs_mnt}/etc/apt/sources.list.d/ppa_linuxfactory_or_kr.list
}
do_cleanup() {