set trusted=yes,check-date=no for cdrom pool during installation

The pool is loaded off the same media as the installer and the
filesystem being installed so there's no real loss of security doing
this and it makes it easier for people to master custom ISOs with extra
packages in the pool and systems with inaccurate clocks (that cannot
reach ntp.ubuntu.com).
This commit is contained in:
Michael Hudson-Doyle 2021-05-03 13:25:28 +12:00
parent 2719c57c1b
commit 29676d8c22
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ else
fi
cat > "$TARGET_MOUNT_POINT/etc/apt/sources.list" <<EOF
deb file:///cdrom $(lsb_release -sc) main restricted
deb [trusted=yes,check-date=no] file:///cdrom $(lsb_release -sc) main restricted
EOF
$PY -m curtin in-target -- apt-get update