Fix /sbin label

This commit is contained in:
Howard Wu 2022-09-22 19:46:23 +08:00
parent 1917586e6b
commit f3ed2d7a83

View File

@ -467,7 +467,7 @@ fi
if [ "$ROOT_SOL" = 'magisk' ] || [ "$ROOT_SOL" = '' ]; then if [ "$ROOT_SOL" = 'magisk' ] || [ "$ROOT_SOL" = '' ]; then
echo "Integrate Magisk" echo "Integrate Magisk"
sudo mkdir "$MOUNT_DIR"/sbin sudo mkdir "$MOUNT_DIR"/sbin
sudo setfattr -n security.selinux -v "u:object_r:system_file:s0" "$MOUNT_DIR"/sbin || abort sudo setfattr -n security.selinux -v "u:object_r:rootfs:s0" "$MOUNT_DIR"/sbin || abort
sudo chown root:root "$MOUNT_DIR"/sbin sudo chown root:root "$MOUNT_DIR"/sbin
sudo chmod 0700 "$MOUNT_DIR"/sbin sudo chmod 0700 "$MOUNT_DIR"/sbin
sudo cp "$WORK_DIR"/magisk/magisk/* "$MOUNT_DIR"/sbin/ sudo cp "$WORK_DIR"/magisk/magisk/* "$MOUNT_DIR"/sbin/