From 36ea62f1fd9dda7c733c229e84ab1da37db370c2 Mon Sep 17 00:00:00 2001 From: Tiffany Yang Date: Thu, 3 Oct 2024 23:52:54 +0000 Subject: [PATCH] Revert "init: Wait for /dev/hvc1 during ARCVM first-stage mount" This reverts commit b885e4ad533ea4d12e18a0147d298be0cd8cec72. Reason for revert: No longer needed (using virtio-blk instead) Change-Id: I667f0d4f58060e781a5e9b21c778cd568b92971a --- init/first_stage_mount.cpp | 5 ----- init/selinux.cpp | 2 -- init/util.h | 5 ----- 3 files changed, 12 deletions(-) diff --git a/init/first_stage_mount.cpp b/init/first_stage_mount.cpp index 927b45f22..55cce6eaa 100644 --- a/init/first_stage_mount.cpp +++ b/init/first_stage_mount.cpp @@ -305,11 +305,6 @@ bool FirstStageMountVBootV2::InitDevices() { return false; } } - - if (IsArcvm() && !block_dev_init_.InitHvcDevice("hvc1")) { - return false; - } - return true; } diff --git a/init/selinux.cpp b/init/selinux.cpp index 01af2b64d..c2d9b8d28 100644 --- a/init/selinux.cpp +++ b/init/selinux.cpp @@ -474,8 +474,6 @@ void SelinuxRestoreContext() { RestoreconIfExists(SnapshotManager::GetGlobalRollbackIndicatorPath().c_str(), 0); RestoreconIfExists("/metadata/gsi", SELINUX_ANDROID_RESTORECON_RECURSE | SELINUX_ANDROID_RESTORECON_SKIP_SEHASH); - - RestoreconIfExists("/dev/hvc1", 0); } int SelinuxKlogCallback(int type, const char* fmt, ...) { diff --git a/init/util.h b/init/util.h index 056539181..aa24123df 100644 --- a/init/util.h +++ b/init/util.h @@ -18,7 +18,6 @@ #include #include -#include #include #include @@ -109,10 +108,6 @@ inline constexpr bool IsMicrodroid() { #endif } -inline bool IsArcvm() { - return !access("/is_arcvm", F_OK); -} - bool Has32BitAbi(); std::string GetApexNameFromFileName(const std::string& path);