Skip to content
Snippets Groups Projects
Commit 36ca0db3 authored by Pavel Vondruska's avatar Pavel Vondruska
Browse files

Initial commit

parents
No related branches found
No related tags found
No related merge requests found
Pipeline #1344 passed
build:bullseye:
image: debian:bullseye
script:
- ./make.sh
artifacts:
paths:
- build/*
Exluded /auto from statfs
Index: facter-3.14.12/lib/src/facts/linux/filesystem_resolver.cc
===================================================================
--- facter-3.14.12.orig/lib/src/facts/linux/filesystem_resolver.cc
+++ facter-3.14.12/lib/src/facts/linux/filesystem_resolver.cc
@@ -79,7 +79,7 @@ namespace facter { namespace facts { nam
string mtype = ptr->mnt_type;
// Skip over any non-tmpfs mount under /proc or /sys
- if (mtype != "tmpfs" && (boost::starts_with(ptr->mnt_dir, "/proc") || boost::starts_with(ptr->mnt_dir, "/sys"))) {
+ if (mtype != "tmpfs" && (boost::starts_with(ptr->mnt_dir, "/proc") || boost::starts_with(ptr->mnt_dir, "/sys") || boost::starts_with(ptr->mnt_dir, "/auto"))) {
continue;
}
make.sh 0 → 100755
#!/bin/bash
set -x
# Nastaveni promennych, pokud je SINVERSION zakomentovana, pokusime se odhadnout nejnovejsi
export DEBIAN_FRONTEND=noninteractive
# Nacteni promennych o bezicim systemu vcetne verzi
. /etc/os-release
# Od Debian 11 Bullseye ma debian-security trochu jinou cestu, abychom mohli pouzit heredoc, rozskocime si pres funkci
function get_debian_security() {
if [ "${VERSION_ID}" -lt "11" ]; then echo "${VERSION_CODENAME}/updates"; else echo "${VERSION_CODENAME}-security"; fi
}
# Vygenerovani sources.list podle verze Debianu
cat > /etc/apt/sources.list << EOSOURCES
deb http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME} main contrib non-free
deb http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME}-updates main contrib non-free
deb http://ftp.zcu.cz/pub/linux/debian-security $(get_debian_security) main contrib non-free
deb-src http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME} main contrib non-free
deb-src http://ftp.zcu.cz/pub/linux/debian ${VERSION_CODENAME}-updates main contrib non-free
deb-src http://ftp.zcu.cz/pub/linux/debian-security $(get_debian_security) main contrib non-free
EOSOURCES
# Instalace buildovacich veci a zavislosti
apt update -qqq
apt install -yqqq git devscripts build-essential
apt source facter
cp 01-statfs-skip-auto.diff facter-3.14.12/debian/patches
cd facter-3.14.12
echo '01-statfs-skip-auto.diff' >> debian/patches/series
dch --newversion "3.14.12-1+dex1" "[ Dex ]"
dch --append "Skip /auto from statfs"
mk-build-deps --install --tool='apt-get -o Debug::pkgProblemResolver=yes --yes' debian/control
# Build balicku
dpkg-buildpackage -uc -us -b
cd ..
mkdir build
mv *.deb build/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment