Skip to content

Commit

Permalink
disable network mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
pavinjosdev committed Apr 11, 2024
1 parent 0679d55 commit 9c0e59e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions atomic-update
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ from shlex import quote
import xml.etree.ElementTree as ET

# Constants
VERSION = "0.1.8"
VERSION = "0.1.9"
ZYPPER_PID_FILE = "/run/zypp.pid"
VALID_CMD = ["dup", "run", "rollback"]
VALID_OPT = ["--reboot", "--apply", "--shell", "--continue", "--no-verify", \
Expand Down Expand Up @@ -395,7 +395,7 @@ if COMMAND in ["dup", "run"]:
commands = f"""
mount -o subvol={snap_subvol} {rootfs_device} {TMP_MOUNT_DIR};
for i in dev proc run sys; do mount --rbind --make-rslave /$i {TMP_MOUNT_DIR}/$i; done;
chroot {TMP_MOUNT_DIR} mount -a;
chroot {TMP_MOUNT_DIR} mount -a -O no_netdev;
"""
shell_exec(commands)
# verify snapshot prior to performing update
Expand Down

0 comments on commit 9c0e59e

Please sign in to comment.