mirror of
https://git.launchpad.net/livecd-rootfs
synced 2025-04-07 17:21:55 +00:00
live-build/functions: Update snap seed.yaml format to comply with yaml spec
This commit is contained in:
parent
829716a6d7
commit
936c3dbc79
@ -386,13 +386,14 @@ _snap_preseed() {
|
||||
# Add the snap to the seed.yaml
|
||||
! [ -e $seed_yaml ] && echo "snaps:" > $seed_yaml
|
||||
cat <<EOF >> $seed_yaml
|
||||
- name: ${SNAP_NAME}
|
||||
channel: ${CHANNEL}
|
||||
-
|
||||
name: ${SNAP_NAME}
|
||||
channel: ${CHANNEL}
|
||||
EOF
|
||||
|
||||
case ${SNAP} in */classic) echo " classic: true" >> $seed_yaml;; esac
|
||||
case ${SNAP} in */classic) echo " classic: true" >> $seed_yaml;; esac
|
||||
|
||||
echo -n " file: " >> $seed_yaml
|
||||
echo -n " file: " >> $seed_yaml
|
||||
(cd $snaps_dir; ls -1 ${SNAP_NAME}_*.snap) >> $seed_yaml
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user