Skip to content

Commit

Permalink
Add CMDLINE the jetson way!
Browse files Browse the repository at this point in the history
  • Loading branch information
ClashTheBunny committed Apr 20, 2024
1 parent df776ac commit b8c0df3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions jetson-nano_funcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,6 @@ 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 @@ -54,7 +52,6 @@ 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
)
Expand All @@ -64,6 +61,7 @@ function finalize_image_jetson-nano() {

chroot_tear_down

sed -i 's#BUILD_SD_IMAGE=1#BUILD_SD_IMAGE=1 CMDLINE="ds=nocloud;s=/boot/ systemd.unified_cgroup_hierarchy=0 cgroup_enable=cpuset cgroup_enable=cpu cgroup_memory=1 cgroup_enable=memory"#g' "${TEMPDIR}/jetson_driver_package/Linux_for_Tegra/tools/jetson-disk-image-creator.sh"
$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 b8c0df3

Please sign in to comment.