Skip to content

Commit

Permalink
Disable cgroupsv2, enable cloud-init
Browse files Browse the repository at this point in the history
  • Loading branch information
ClashTheBunny committed Apr 20, 2024
1 parent fd6aa6c commit df776ac
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions jetson-nano_funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ function finalize_image_jetson-nano() {
done
$SUDO chroot "${MOUNTPOINT}" bash -c "dpkg -i --force-confnew --force-depends --force-overwrite /nvidia-l4t-init*.deb"

sed -i -e 's#rw rootwait#systemd.unified_cgroup_hierarchy=0 cgroup_enable=cpuset cgroup_enable=cpu cgroup_memory=1 cgroup_enable=memory rw rootwait#g' "${MOUNTPOINT}/boot/extlinux/extlinux.conf"

# $SUDO chroot "${MOUNTPOINT}" groupdel trusty
# $SUDO chroot "${MOUNTPOINT}" groupdel crypto

Expand All @@ -52,11 +54,14 @@ function finalize_image_jetson-nano() {
git clone https://gist.github.com/5c81708b05fb4f68aecba7367b3bf033.git cloud-init/
set +f
$SUDO cp ./cloud-init/* "${MOUNTPOINT}/boot/"
sed -i -e 's#rw rootwait#ds=nocloud;s=/boot/ rw rootwait#g' "${MOUNTPOINT}/boot/extlinux/extlinux.conf"

set -f
)

rm -rf cloud-init


chroot_tear_down

$SUDO "${TEMPDIR}/jetson_driver_package/Linux_for_Tegra/tools/jetson-disk-image-creator.sh" -o "debian-${BOARD}.img" -b "${BOARD}" -r "$REVISION"
Expand Down

0 comments on commit df776ac

Please sign in to comment.