From 60e3490fccb3102231f94d4a24c91fd3b9c937a3 Mon Sep 17 00:00:00 2001 From: Jelle van der Waa Date: Mon, 28 Nov 2022 17:49:50 +0100 Subject: [PATCH] Drop ignore rootfs from checkpoint Ignoring the rootfs is only supported with an export as the man page describes: IMPORTANT: This OPTION only works in combination with --export, -e. --- src/ContainerCheckpointModal.jsx | 5 ----- test/check-application | 2 -- 2 files changed, 7 deletions(-) diff --git a/src/ContainerCheckpointModal.jsx b/src/ContainerCheckpointModal.jsx index 6711edda5..8dadad08c 100644 --- a/src/ContainerCheckpointModal.jsx +++ b/src/ContainerCheckpointModal.jsx @@ -13,7 +13,6 @@ const ContainerCheckpointModal = ({ containerWillCheckpoint, onAddNotification } const [keep, setKeep] = useState(false); const [leaveRunning, setLeaveRunning] = useState(false); const [tcpEstablished, setTcpEstablished] = useState(false); - const [ignoreRootFS, setIgnoreRootFS] = useState(false); const handleCheckpointContainer = () => { setProgress(true); @@ -21,7 +20,6 @@ const ContainerCheckpointModal = ({ containerWillCheckpoint, onAddNotification } keep, leaveRunning, tcpEstablished, - ignoreRootFS, }) .catch(ex => { const error = cockpit.format(_("Failed to checkpoint container $0"), containerWillCheckpoint.Names); @@ -59,9 +57,6 @@ const ContainerCheckpointModal = ({ containerWillCheckpoint, onAddNotification } - ); diff --git a/test/check-application b/test/check-application index 153f7edb5..a1d555f4f 100755 --- a/test/check-application +++ b/test/check-application @@ -1132,7 +1132,6 @@ class TestApplication(testlib.MachineCase): self.performContainerAction("busybox:latest", "Checkpoint") b.set_checked('.pf-c-modal-box input#checkpoint-dialog-keep', True) b.set_checked('.pf-c-modal-box input#checkpoint-dialog-tcpEstablished', True) - b.set_checked('.pf-c-modal-box input#checkpoint-dialog-ignoreRootFS', True) b.click('.pf-c-modal-box button:contains(Checkpoint)') b.wait_not_present('.modal_dialog') @@ -1175,7 +1174,6 @@ class TestApplication(testlib.MachineCase): self.performContainerAction("swamped-crate", "Checkpoint") b.set_checked('.pf-c-modal-box input#checkpoint-dialog-keep', True) b.set_checked('.pf-c-modal-box input#checkpoint-dialog-tcpEstablished', True) - b.set_checked('.pf-c-modal-box input#checkpoint-dialog-ignoreRootFS', True) b.click('.pf-c-modal-box button:contains(Checkpoint)') with b.wait_timeout(300):