mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-05-16 05:11:31 +00:00
snap: move the seeding block down, so that it is common to all flavours
This commit is contained in:
parent
07873ec528
commit
26612d0b26
@ -306,24 +306,9 @@ case $PROJECT in
|
|||||||
add_task install minimal standard ubuntu-desktop
|
add_task install minimal standard ubuntu-desktop
|
||||||
LIVE_TASK='ubuntu-live'
|
LIVE_TASK='ubuntu-live'
|
||||||
BASE_SEED='desktop'
|
BASE_SEED='desktop'
|
||||||
SEEDS_EXPANDED=$(inheritance ${BASE_SEED})
|
|
||||||
case $ARCH in
|
case $ARCH in
|
||||||
amd64) add_package live $SIGNED_KERNEL_PACKAGE ;;
|
amd64) add_package live $SIGNED_KERNEL_PACKAGE ;;
|
||||||
esac
|
esac
|
||||||
for seed in ${SEEDS_EXPANDED}; do
|
|
||||||
echo "snap: considering ${seed}"
|
|
||||||
file=config/germinate-output/${seed}.snaps
|
|
||||||
[ -e "${file}" ] || continue
|
|
||||||
# extract the first column (snap package name) from germinate's output
|
|
||||||
# translate the human-readable "foo (classic)" into a
|
|
||||||
# more machine readable "foo/classic"
|
|
||||||
seed_snaps=$(sed -rn '1,/-----/d;/-----/,$d; s/(.*) \|.*/\1/; s, \(classic\),/classic,; p' "${file}")
|
|
||||||
for snap in ${seed_snaps}; do
|
|
||||||
echo "snap: found ${snap}"
|
|
||||||
ALL_SNAPS="${ALL_SNAPS:+${ALL_SNAPS} }${snap}"
|
|
||||||
done
|
|
||||||
done
|
|
||||||
echo "${ALL_SNAPS}" > config/seeded-snaps
|
|
||||||
;;
|
;;
|
||||||
|
|
||||||
ubuntu-desktop-next)
|
ubuntu-desktop-next)
|
||||||
@ -654,6 +639,24 @@ case $PROJECT in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ -n "${BASE_SEED}" ]; then
|
||||||
|
SEEDS_EXPANDED=$(inheritance ${BASE_SEED})
|
||||||
|
for seed in ${SEEDS_EXPANDED}; do
|
||||||
|
echo "snap: considering ${seed}"
|
||||||
|
file=config/germinate-output/${seed}.snaps
|
||||||
|
[ -e "${file}" ] || continue
|
||||||
|
# extract the first column (snap package name) from germinate's output
|
||||||
|
# translate the human-readable "foo (classic)" into a
|
||||||
|
# more machine readable "foo/classic"
|
||||||
|
seed_snaps=$(sed -rn '1,/-----/d;/-----/,$d; s/(.*) \|.*/\1/; s, \(classic\),/classic,; p' "${file}")
|
||||||
|
for snap in ${seed_snaps}; do
|
||||||
|
echo "snap: found ${snap}"
|
||||||
|
ALL_SNAPS="${ALL_SNAPS:+${ALL_SNAPS} }${snap}"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
echo "${ALL_SNAPS}" > config/seeded-snaps
|
||||||
|
fi
|
||||||
|
|
||||||
export APT_OPTIONS
|
export APT_OPTIONS
|
||||||
|
|
||||||
if [ "$PREINSTALLED" != "true" ] && [ "$LIVE_TASK" ]; then
|
if [ "$PREINSTALLED" != "true" ] && [ "$LIVE_TASK" ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user