Skip to content

Commit 9c0e59e

Browse files
committed
disable network mounts
1 parent 0679d55 commit 9c0e59e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

atomic-update

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ from shlex import quote
2828
import xml.etree.ElementTree as ET
2929

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

0 commit comments

Comments
 (0)