mirror of
git://soft.sys114.com/odroid-stamper
synced 2025-12-19 01:48:42 +09:00
Add internal repository for testing
Signed-off-by: Dongjin Kim <tobetter@gmail.com> Change-Id: Idd57aa96772d2fff07641dcd82cdfedbf7bfd903
This commit is contained in:
11
fixups/S00-internal-repository
Executable file
11
fixups/S00-internal-repository
Executable 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
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user