Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
140 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
#!/bin/sh | ||
dmsetup create --concise "$(/usr/bin/parse-android-dynparts /dev/sda10)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=Setup dynamic partitions | ||
Before=system.mount system_ext.mount vendor.mount product.mount local-fs.target systemd-modules-load.service droid-hal-init.service | ||
DefaultDependencies=no | ||
|
||
[Service] | ||
Type=oneshot | ||
RemainAfterExit=yes | ||
ExecStart=/bin/bash /usr/bin/droid/dmsetup.sh | ||
|
||
[Install] | ||
WantedBy=droid-hal-init.service |
1 change: 1 addition & 0 deletions
1
sparse/usr/lib/systemd/system/local-fs.target.wants/dmsetup.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../dmsetup.service |
1 change: 1 addition & 0 deletions
1
sparse/usr/lib/systemd/system/local-fs.target.wants/odm_root.mount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../odm_root.mount |
1 change: 1 addition & 0 deletions
1
sparse/usr/lib/systemd/system/local-fs.target.wants/product.mount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../product.mount |
1 change: 1 addition & 0 deletions
1
sparse/usr/lib/systemd/system/local-fs.target.wants/system.mount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../system.mount |
1 change: 1 addition & 0 deletions
1
sparse/usr/lib/systemd/system/local-fs.target.wants/system_ext.mount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../system_ext.mount |
1 change: 1 addition & 0 deletions
1
sparse/usr/lib/systemd/system/local-fs.target.wants/system_root.mount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../system_root.mount |
1 change: 1 addition & 0 deletions
1
sparse/usr/lib/systemd/system/local-fs.target.wants/vendor.mount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
../vendor.mount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[Unit] | ||
Description=Droid mount for /odm_root | ||
Before=local-fs.target systemd-modules-load.service | ||
|
||
[Mount] | ||
What=/dev/mapper/dynpart-odm_a | ||
Where=/odm_root | ||
Type=ext4 | ||
Options=ro,barrier=1,discard | ||
# Options had SELinux context option: | ||
|
||
# Default is 90 which makes mount period too long in case of | ||
# errors so drop it down a notch. | ||
TimeoutSec=10 | ||
|
||
[Install] | ||
WantedBy=local-fs.target | ||
|
||
# From ./out/target/product/FP4/vendor/etc/fstab.default : | ||
# odm /odm ext4 ro,barrier=1,discard wait,slotselect,avb=vbmeta_system,logical,first_stage_mount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[Unit] | ||
Description=Droid mount for /product | ||
Before=local-fs.target systemd-modules-load.service | ||
|
||
[Mount] | ||
What=/dev/mapper/dynpart-product_a | ||
Where=/product | ||
Type=ext4 | ||
Options=ro,barrier=1,discard | ||
# Options had SELinux context option: | ||
|
||
# Default is 90 which makes mount period too long in case of | ||
# errors so drop it down a notch. | ||
TimeoutSec=10 | ||
|
||
[Install] | ||
WantedBy=local-fs.target | ||
|
||
# From ./out/target/product/FP4/vendor/etc/fstab.default : | ||
# product /product ext4 ro,barrier=1,discard wait,slotselect,avb=vbmeta_system,logical,first_stage_mount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[Unit] | ||
Description=Droid mount for /system | ||
Before=local-fs.target systemd-modules-load.service | ||
|
||
[Mount] | ||
What=/system_root/system | ||
Where=/system | ||
Type=none | ||
Options=bind | ||
|
||
# Default is 90 which makes mount period too long in case of | ||
# errors so drop it down a notch. | ||
TimeoutSec=10 | ||
|
||
[Install] | ||
WantedBy=local-fs.target | ||
|
||
# From ./out/target/product/FP4/vendor/etc/fstab.default : | ||
# system /system ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[Unit] | ||
Description=Droid mount for /system_ext | ||
Before=local-fs.target systemd-modules-load.service | ||
|
||
[Mount] | ||
What=/dev/mapper/dynpart-system_ext_a | ||
Where=/system_ext | ||
Type=ext4 | ||
Options=ro,barrier=1 | ||
# Options had SELinux context option: | ||
|
||
# Default is 90 which makes mount period too long in case of | ||
# errors so drop it down a notch. | ||
TimeoutSec=10 | ||
|
||
[Install] | ||
WantedBy=local-fs.target | ||
|
||
# From ./out/target/product/FP4/vendor/etc/fstab.default : | ||
# system_ext /system_ext ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,first_stage_mount |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[Unit] | ||
Description=Droid mount for /system | ||
Before=local-fs.target systemd-modules-load.service | ||
|
||
[Mount] | ||
What=/dev/mapper/dynpart-system_a | ||
Where=/system_root | ||
Type=ext4 | ||
Options=ro,barrier=1 | ||
# Options had SELinux context option: | ||
|
||
# Default is 90 which makes mount period too long in case of | ||
# errors so drop it down a notch. | ||
TimeoutSec=10 | ||
|
||
[Install] | ||
WantedBy=local-fs.target | ||
|
||
# From ./out/target/product/FP4/vendor/etc/fstab.default : | ||
# system /system ext4 ro,barrier=1 wait,slotselect,avb=vbmeta_system,logical,first_stage_mount,avb_keys=/avb/q-gsi.avbpubkey:/avb/r-gsi.avbpubkey:/avb/s-gsi.avbpubkey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
[Unit] | ||
Description=Droid mount for /vendor | ||
Before=local-fs.target systemd-modules-load.service | ||
|
||
[Mount] | ||
What=/dev/mapper/dynpart-vendor_a | ||
Where=/vendor | ||
Type=ext4 | ||
Options=ro,barrier=1,discard | ||
# Options had SELinux context option: | ||
|
||
# Default is 90 which makes mount period too long in case of | ||
# errors so drop it down a notch. | ||
TimeoutSec=10 | ||
|
||
[Install] | ||
WantedBy=local-fs.target | ||
|
||
# From ./out/target/product/FP4/vendor/etc/fstab.default : | ||
# vendor /vendor ext4 ro,barrier=1,discard wait,slotselect,avb,logical,first_stage_mount |