Add support to mount /boot for systems that have a mountable /boot.
This is checked at runtime to see if /boot is a mountable parition (i.e not mtd), if so it adds an entry into /etc/fstab. This will allow us to mount /boot from an edify script and push certain files without completely imaging the parition which can contain other files such as the bootloader (u-boot), and recovery kernel and ramdisks as is the case with the encore (NookColor) Test on NookColor and passion. Correct entry was added to the NC and not added to the passion as expected. Change-Id: I9850dee866b77653bf400bb5193905e55da3f25f
This commit is contained in:
parent
066a1027a4
commit
6d0604bf34
@ -9,6 +9,7 @@ on init
|
||||
|
||||
symlink /system/etc /etc
|
||||
|
||||
mkdir /boot
|
||||
mkdir /sdcard
|
||||
mkdir /sd-ext
|
||||
mkdir /datadata
|
||||
|
@ -986,6 +986,9 @@ void create_fstab()
|
||||
LOGW("Unable to create /etc/fstab!\n");
|
||||
return;
|
||||
}
|
||||
Volume *vol = volume_for_path("/boot");
|
||||
if (NULL != vol && strcmp(vol->fs_type, "mtd") != 0)
|
||||
write_fstab_root("/boot", file);
|
||||
write_fstab_root("/cache", file);
|
||||
write_fstab_root("/data", file);
|
||||
if (has_datadata()) {
|
||||
|
Loading…
Reference in New Issue
Block a user