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:
@@ -10,6 +10,15 @@ target desktop {
|
|||||||
launch /system/Deskbar
|
launch /system/Deskbar
|
||||||
legacy
|
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 {
|
target first_boot {
|
||||||
@@ -22,6 +31,7 @@ target installer {
|
|||||||
|
|
||||||
run {
|
run {
|
||||||
if {
|
if {
|
||||||
|
file_exists /system/bin/FirstBootPrompt
|
||||||
or {
|
or {
|
||||||
not file_exists /boot/home/config/settings/Locale\ settings
|
not file_exists /boot/home/config/settings/Locale\ settings
|
||||||
read_only
|
read_only
|
||||||
|
|||||||
Reference in New Issue
Block a user