pastebin - collaborative debugging tool
rovema.kpaste.net RSS


new_image: Modify "rovema_pc.img" via chroot
Posted by Anonymous on Wed 18th Oct 2023 14:13
raw | new post
modification of post by Anonymous (view diff)

  1. # mount "rovema_pc.img":
  2. bash dev027_kernel5_15/mountImage "$PWD/rovema_pc.img"
  3. mount
  4.  
  5. #
  6. # enter chroot:
  7. #
  8. time chroot "$PWD/Part_1" /bin/bash
  9.  
  10. #
  11. # inside chroot
  12. #
  13.  
  14. # mount fs required for dpkg
  15. mount proc /proc -t proc
  16. mount devpts /dev/pts -t devpts
  17. # mount package dir
  18. mount -t nfs -overs=4.2 derfwpc5131:/export/home/rmainz /mnt
  19. # install new packages
  20. cd mnt/work/jessie_target_packages/
  21. dpkg -i binfmt-support_2.1.5-1_i386.deb
  22. dpkg -i gisnfsutils_1.0-1.deb
  23. dpkg -i *.deb
  24. # install new kernel
  25. cd new_kernel/
  26. dpkg -i --root=/ linux-headers-6.5.0-rt5-rovema012-ga38e9947696e_6.5.0-ga38e9947696e-1_i386.deb
  27. dpkg -i --root=/ linux-libc-dev_6.5.0-ga38e9947696e-1_i386.deb
  28. dpkg -i --root=/ linux-image-6.5.0-rt5-rovema012-ga38e9947696e_6.5.0-ga38e9947696e-1_i386.deb
  29.  
  30. #
  31. # prepare leaving chroot:
  32. #
  33.  
  34. # kill processes
  35. pkill autofs
  36. pkill nscd
  37. # unmount fs:
  38. cd /
  39. umount mnt
  40. umount dev/pts
  41. umount proc/sys/fs/binfmt_misc
  42. umount proc
  43.  
  44. #
  45. # leave chroot
  46. #
  47. exit
  48. # outside chroot

Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at