invoke lsb_release from /target when configuring cdrom source for apt

for some reason lsb_release in the snap is a bit busted.

For https://bugs.launchpad.net/subiquity/+bug/1946790
This commit is contained in:
Michael Hudson-Doyle 2021-10-13 09:39:11 +13:00
parent 31fa83e79e
commit adeaf9df50
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 [check-date=no] file:///cdrom $(lsb_release -sc) main restricted
deb [check-date=no] file:///cdrom $(chroot $TARGET_MOUNT_POINT lsb_release -sc) main restricted
EOF
$PY -m curtin in-target -- apt-get update