File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 33
33
34
34
import requests
35
35
import vyos .defaults
36
+ from vyos .system .image import is_live_boot
36
37
37
38
from vyos .utils .file import read_file
38
39
from vyos .utils .file import read_json
39
40
from vyos .utils .process import popen
40
- from vyos .utils .process import run
41
41
from vyos .utils .process import DEVNULL
42
42
43
43
version_file = os .path .join (vyos .defaults .directories ['data' ], 'version.json' )
@@ -85,7 +85,7 @@ def get_full_version_data(fname=version_file):
85
85
# In installed images, the squashfs image file is named after its image version,
86
86
# while on livecd it's just "filesystem.squashfs", that's how we tell a livecd boot
87
87
# from an installed image
88
- if run ( """ grep -e '^overlay.*/filesystem.squashfs' /proc/mounts >/dev/null """ ) == 0 :
88
+ if is_live_boot () :
89
89
boot_via = "livecd"
90
90
else :
91
91
boot_via = "installed image"
You can’t perform that action at this time.
0 commit comments