Skip to content

Commit

Permalink
persistent add disk mounts to udm-boot
Browse files Browse the repository at this point in the history
  • Loading branch information
spali committed Dec 26, 2020
1 parent 6b1ae69 commit c64a75b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions on-boot-script/dpkg-build-files/host/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ podman tag $iid udm-boot
# cleanup old udm-boot container
/mnt/data/udm-boot/uninstall.sh

if [ -d /mnt/data_ext ]; then
mount_ext='--mount type=bind,source=/mnt/data_ext,target=/mnt/data_ext,rw=true'
fi

# create new udm-boot container
/usr/bin/podman create \
--conmon-pidfile "/run/udm-boot.service-pid" \
Expand All @@ -33,6 +37,8 @@ podman tag $iid udm-boot
--mount "type=bind,source=/var/run,target=/mnt/host_var_run,ro=true" \
--mount "type=bind,source=/mnt/data/udm-boot/data/var/lib/containers,target=/var/lib/containers,rw=true" \
--mount "type=bind,source=/mnt/data/udm-boot/data/etc/systemd/system,target=/etc/systemd/system,rw=true" \
--mount "type=bind,source=/mnt/data,target=/mnt/data,rw=true" \
${mount_ext} \
udm-boot

# cleanup and move legacy udm-boot files
Expand Down

0 comments on commit c64a75b

Please sign in to comment.