Skip to content

Commit

Permalink
meta-hp: initramfs-boot-android: use a second file for rootfs detection
Browse files Browse the repository at this point in the history
In our case the distro name changed recently and with that the old file we used for rootfs
detection /etc/<distro name>-release was not available anymore and therefor we couldn't
detect the rootfs anymore.

Signed-off-by: Simon Busch <morphis@gravedo.de>
  • Loading branch information
morphis authored and shr-project committed Jan 13, 2015
1 parent 22ac479 commit a44f0ad
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -24,7 +24,7 @@ mount_rootfs() {
# sanity-check rootfs by checking that specific path exists
# (automatic pass if distro_rootfs_file is unset, since /rfs/
# mountpoint does exist)
if [ -e /rfs/${distro_rootfs_file} ]
if [ -e /rfs/${distro_rootfs_file} ] || [ -e /rfs/${distro_rootfs_file_old} ]
then
info "Using $ROOT as rootfs"
return 0 # success
Expand Down

0 comments on commit a44f0ad

Please sign in to comment.