diff options
-rwxr-xr-x | scripts/install/install-functions | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/install/install-functions b/scripts/install/install-functions index 1929d1b3..90355974 100755 --- a/scripts/install/install-functions +++ b/scripts/install/install-functions @@ -271,7 +271,10 @@ is_disk_based_boot() # returns true if it's a live cd boot is_live_cd_boot () { - if grep -q ' /live/image [^ ]\+ ro' /proc/mounts; then + # Poor check, but whatever. The point is that on installed system + # the image file normally is named after the current version, + # while on livecd it's just "filesystem.squashfs" + if grep -q -e '^overlayfs.*/filesystem.squashfs' /proc/mounts; then return 0 else return 1 |