Compare commits

..

No commits in common. "6d81507a99286fee374881c02f78192f630cc17d" and "99be1f49afe75fdc6e0fc370b74fcda78c1f81ec" have entirely different histories.

2 changed files with 4 additions and 12 deletions

View File

@ -84,25 +84,18 @@ for fileIndex in ${!COPY[@]}; do
#DESTPATH="$ROOTFS""$DESTPATH" #DESTPATH="$ROOTFS""$DESTPATH"
PARENTPATHDEST="$(dirname "$PATHDEST")" PARENTPATHDEST="$(dirname "$PATHDEST")"
mkdir -p "$PARENTPATHDEST" mkdir -p "$PARENTPATHDEST"
cp --dereference -r "$PATHSRC" "$PATHDEST" cp -r "$PATHSRC" "$PATHDEST"
done done
CMD="$1" CMD="$1"
shift shift
if [[ "$CMD" != "" ]]; then if [[ "$CMD" != "" ]]; then
lxc-start -n "$VMNAME" lxc-execute -n "$VMNAME" -- "$CMD" "$@"
lxc-attach -n "$VMNAME" -- "$CMD" "$@" [ $KEEP -eq 0 ] && lxc-destroy -n "$VMNAME"
if [ $KEEP -eq 0 ]; then
lxc-stop --kill "$VMNAME"
lxc-destroy -n "$VMNAME"
fi
else else
lxc-start -n "$VMNAME" lxc-start -n "$VMNAME"
lxc-attach -n "$VMNAME" bash lxc-attach -n "$VMNAME" bash
if [ $KEEP -eq 0 ]; then [ $KEEP -eq 0 ] && lxc-stop --kill "$VMNAME" && lxc-destroy -n "$VMNAME"
lxc-stop --kill "$VMNAME"
lxc-destroy -n "$VMNAME"
fi
fi fi

View File

@ -6,7 +6,6 @@ ExecStart=/usr/sbin/ramdisk.sh start
ExecStop=/usr/sbin/ramdisk.sh stop ExecStop=/usr/sbin/ramdisk.sh stop
Restart=on-failure Restart=on-failure
RestartPreventExitStatus=255 RestartPreventExitStatus=255
RemainAfterExit=yes
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target