Skip to content

Commit

Permalink
chore(builder): enable openrc service startup parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
ihexon committed Dec 17, 2024
1 parent 1a1c98b commit b44f256
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions target_builder/macos_arm64
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,19 @@ copy_layer() {
}
} && cd $workspace

cd $output && {
sudo -E proot $qemu_flag --rootfs=./target_rootfs \
-b /dev:/dev \
-b /sys:/sys \
-b /proc:/proc \
-b /etc/resolv.conf:/etc/resolv.conf \
-w /root \
-0 /bin/su -c "echo rc_parallel=YES >> /etc/rc.conf" || {
echo "Error: enable rc_parallel failed"
exit 100
}
} && cd $workspace

set +x
sync # must do sync !
}
Expand Down

0 comments on commit b44f256

Please sign in to comment.