First full build
This commit is contained in:
@@ -1,12 +1,14 @@
|
||||
#!/bin/bash -e
|
||||
|
||||
# Configure apt sources
|
||||
install -m 644 files/sources.list "${ROOTFS_DIR}/etc/apt/"
|
||||
install -m 644 files/raspi.list "${ROOTFS_DIR}/etc/apt/sources.list.d/"
|
||||
#install -m 644 files/oxmc.list "${ROOTFS_DIR}/etc/apt/sources.list.d/"
|
||||
install -m 644 files/oxmc.list "${ROOTFS_DIR}/etc/apt/sources.list.d/"
|
||||
sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list"
|
||||
sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list.d/raspi.list"
|
||||
#sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list.d/oxmc.list"
|
||||
sed -i "s/RELEASE/${RELEASE}/g" "${ROOTFS_DIR}/etc/apt/sources.list.d/oxmc.list"
|
||||
|
||||
# Configure apt proxy
|
||||
if [ -n "$APT_PROXY" ]; then
|
||||
install -m 644 files/51cache "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache"
|
||||
sed "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache" -i -e "s|APT_PROXY|${APT_PROXY}|"
|
||||
@@ -14,10 +16,18 @@ else
|
||||
rm -f "${ROOTFS_DIR}/etc/apt/apt.conf.d/51cache"
|
||||
fi
|
||||
|
||||
# Configure apt preferences
|
||||
install -m 644 files/apt-chillcraftos-prefs "${ROOTFS_DIR}/etc/apt/preferences.d/"
|
||||
|
||||
# Add raspberrypi-archive-keyring to apt
|
||||
cat files/raspberrypi.gpg.key | gpg --dearmor > "${STAGE_WORK_DIR}/raspberrypi-archive-stable.gpg"
|
||||
install -m 644 "${STAGE_WORK_DIR}/raspberrypi-archive-stable.gpg" "${ROOTFS_DIR}/etc/apt/trusted.gpg.d/"
|
||||
#cat files/oxmc.gpg.key | gpg --dearmor > "${STAGE_WORK_DIR}/oxmc.gpg"
|
||||
#install -m 644 "${STAGE_WORK_DIR}/oxmc.gpg" "${ROOTFS_DIR}/etc/apt/trusted.gpg.d/"
|
||||
|
||||
# Add oxmc-archive-keyring to apt
|
||||
cat files/oxmc.gpg.key | gpg --dearmor > "${STAGE_WORK_DIR}/oxmc.gpg"
|
||||
install -m 644 "${STAGE_WORK_DIR}/oxmc.gpg" "${ROOTFS_DIR}/etc/apt/trusted.gpg.d/"
|
||||
|
||||
# Add armhf and arm64 architectures, update and upgrade and cache policy
|
||||
on_chroot <<- \EOF
|
||||
ARCH="$(dpkg --print-architecture)"
|
||||
if [ "$ARCH" = "armhf" ]; then
|
||||
@@ -27,4 +37,5 @@ on_chroot <<- \EOF
|
||||
fi
|
||||
apt-get update
|
||||
apt-get dist-upgrade -y
|
||||
apt-cache policy
|
||||
EOF
|
||||
|
3
stage0/00-configure-apt/files/apt-chillcraftos-prefs
Normal file
3
stage0/00-configure-apt/files/apt-chillcraftos-prefs
Normal file
@@ -0,0 +1,3 @@
|
||||
Package: *
|
||||
Pin: release o=cdn.oxmc.me/apt, n=bookworm
|
||||
Pin-Priority: 1001
|
@@ -1,3 +1,3 @@
|
||||
deb http://apt.oxmc.me/ RELEASE main
|
||||
deb https://cdn.oxmc.me/apt RELEASE main
|
||||
# Uncomment line below then 'apt-get update' to enable 'apt-get source'
|
||||
#deb-src http://apt.oxmc.me/ RELEASE main
|
||||
#deb-src https://cdn.oxmc.me/apt RELEASE main
|
Reference in New Issue
Block a user