Rafael Calleja commited on
Commit
6b91076
·
1 Parent(s): 840bbe8

try moving files

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -0
Dockerfile CHANGED
@@ -50,6 +50,7 @@ RUN --security=insecure \
50
  export CASPER_GENERATE_UUID=1 && \
51
  eggs calamares -i -r -v && \
52
  SUDO_USER=ubuntu eggs produce --max --nointeractive --noicon --excludes=static,homes -v --release" && \
 
53
  export EXCLUDE_FILE=$(find ${ROOTFS}/home/eggs -name "*.iso" -type f -printf "%T@ %p\n" | sort -n | tail -1 | cut -d' ' -f2) && \
54
  find ${ROOTFS} -type f ! -path "${EXCLUDE_FILE}" -exec rm -rf {} + && \
55
  mv $(find ${ROOTFS}/home/eggs -name "*.iso" -type f -printf "%T@ %p\n" | sort -n | tail -1 | cut -d' ' -f2) /tmp/distro-live.iso
 
50
  export CASPER_GENERATE_UUID=1 && \
51
  eggs calamares -i -r -v && \
52
  SUDO_USER=ubuntu eggs produce --max --nointeractive --noicon --excludes=static,homes -v --release" && \
53
+ for m in $(mount | awk '{print $3}' | grep "^${ROOTFS}/home/eggs"); do umount -lf $m; done && \
54
  export EXCLUDE_FILE=$(find ${ROOTFS}/home/eggs -name "*.iso" -type f -printf "%T@ %p\n" | sort -n | tail -1 | cut -d' ' -f2) && \
55
  find ${ROOTFS} -type f ! -path "${EXCLUDE_FILE}" -exec rm -rf {} + && \
56
  mv $(find ${ROOTFS}/home/eggs -name "*.iso" -type f -printf "%T@ %p\n" | sort -n | tail -1 | cut -d' ' -f2) /tmp/distro-live.iso