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.
This commit is contained in:
Matt Madia 2013-01-20 18:03:31 -05:00
parent 06437987e0
commit afc33db942

View File

@ -117,7 +117,8 @@ if [ "$SAFEMODE" != "yes" ]; then
fi fi
# Now ask the user if he wants to run the Installer or continue to the Desktop. # Now ask the user if he wants to run the Installer or continue to the Desktop.
if [ "$isReadOnly" = "yes" ]; then freshInstallIndicator=/boot/common/settings/fresh_install
if [ "$isReadOnly" = "yes" -o -e $freshInstallIndicator ]; then
# Create Installer link (using the write overlay) # Create Installer link (using the write overlay)
ln -sf /boot/system/apps/Installer /boot/home/Desktop/Installer ln -sf /boot/system/apps/Installer /boot/home/Desktop/Installer
@ -190,7 +191,6 @@ fi
# Check for fresh install and run post install scripts. # Check for fresh install and run post install scripts.
postInstallDir=/boot/common/boot/post_install postInstallDir=/boot/common/boot/post_install
freshInstallIndicator=/boot/common/settings/fresh_install
if [ -e $freshInstallIndicator ]; then if [ -e $freshInstallIndicator ]; then
# wait a moment for things to calm down a bit # wait a moment for things to calm down a bit
sleep 3 sleep 3