Browse files

Launch ReadOnlyBootPrompt if $freshInstallIndicator exists.

That file will exist on every read-only media, first boot of writable images
(usb,vmdk), and (if installing directly to partition via the build system or a
mounted image file) hard disk.

The last scenario (of installing directly to hard disk through the build system
or mounted image file) may not be ideal, but it generally tends to be an
advanced installation method. Additionally, it will occur only on first boot.

Fixes #8945.
  • Loading branch information...
1 parent 0643798 commit afc33db942eed3f9219781eb467500278610fe3a @mmadia mmadia committed Jan 20, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 data/system/boot/Bootscript
@@ -117,7 +117,8 @@ if [ "$SAFEMODE" != "yes" ]; then
# Now ask the user if he wants to run the Installer or continue to the Desktop.
-if [ "$isReadOnly" = "yes" ]; then
+if [ "$isReadOnly" = "yes" -o -e $freshInstallIndicator ]; then
# Create Installer link (using the write overlay)
ln -sf /boot/system/apps/Installer /boot/home/Desktop/Installer
@@ -190,7 +191,6 @@ fi
# Check for fresh install and run post install scripts.
if [ -e $freshInstallIndicator ]; then
# wait a moment for things to calm down a bit
sleep 3

0 comments on commit afc33db

Please sign in to comment.