#8945: Make ReadOnlyBootPrompt show up also on writable devices if no locale settings are found -----------------------------------------------+--------------------------- Reporter: dsjonny | Owner: stippi Type: enhancement | Status: new Priority: normal | Milestone: R1 Component: Applications/ReadOnlyBootPrompt | Version: Resolution: | R1/Development Blocked By: | Keywords: Has a Patch: 0 | Blocking: | Platform: All -----------------------------------------------+--------------------------- Comment (by mmadia): Regarding the patch, using "/boot/home/config/settings/Locale settings" is not applicable. For english users who have no need to launch Locale (or change any settings), the settings file will never be created. Thus, ReadOnlyBootPrompt will always launch However, would utilizing {{{ freshInstallIndicator=/boot/common/settings/fresh_install }}} suffice? 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 intsallation method. Additionally, it will occur only on the first boot. Thoughts? {{{ diff --git a/data/system/boot/Bootscript b/data/system/boot/Bootscript index 3a52cb2..d0f130e 100644 --- a/data/system/boot/Bootscript +++ b/data/system/boot/Bootscript @@ -117,7 +117,8 @@ if [ "$SAFEMODE" != "yes" ]; then fi # 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) ln -sf /boot/system/apps/Installer /boot/home/Desktop/Installer @@ -190,7 +191,6 @@ fi # Check for fresh install and run post install scripts. postInstallDir=/boot/common/boot/post_install -freshInstallIndicator=/boot/common/settings/fresh_install if [ -e $freshInstallIndicator ]; then # wait a moment for things to calm down a bit sleep 3 }}} -- Ticket URL: <http://dev.haiku-os.org/ticket/8945#comment:15> Haiku <http://dev.haiku-os.org> Haiku - the operating system.