Commit 73f61f06 authored by Franco Fichtner's avatar Franco Fichtner

util: keep the probing file, it prevents spurious writes

parent 98ed70d8
...@@ -1566,12 +1566,15 @@ function is_install_media() ...@@ -1566,12 +1566,15 @@ function is_install_media()
* Despite unionfs underneath, / is still not writeable, * Despite unionfs underneath, / is still not writeable,
* making the following the perfect test for install media. * making the following the perfect test for install media.
*/ */
$file = '/.probe.for.install.media'; $file = '/.probe.for.install.media';
if (file_exists($file)) {
return false;
}
$fd = @fopen($file, 'w'); $fd = @fopen($file, 'w');
if ($fd) { if ($fd) {
fclose($fd); fclose($fd);
unlink($file);
return false; return false;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment