Create installer link in live mode, check existence.

* FirstBootPrompt as well as the Installer do not exist on the
  minimum image, so take this into account when making the startup
  target decisions.
This commit is contained in:
Axel Dörfler 2015-07-10 17:08:50 +02:00
parent a7ef196cf1
commit 1ec3f11d97

View File

@ -10,6 +10,15 @@ target desktop {
launch /system/Deskbar
legacy
}
job create-installer-link {
# When run from a read-only medium a.k.a. live desktop
if {
read_only
file_exists /boot/system/apps/Installer
}
launch /bin/ln -sf /boot/system/apps/Installer /boot/home/Desktop/Installer
}
}
target first_boot {
@ -22,6 +31,7 @@ target installer {
run {
if {
file_exists /system/bin/FirstBootPrompt
or {
not file_exists /boot/home/config/settings/Locale\ settings
read_only