- # mount "rovema_pc.img":
- bash dev027_kernel5_15/mountImage "$PWD/rovema_pc.img"
- mount
- #
- # enter chroot:
- #
- time chroot "$PWD/Part_1" /bin/bash
- #
- # inside chroot
- #
- # mount fs required for dpkg
- mount proc /proc -t proc
- mount devpts /dev/pts -t devpts
- # mount package dir
- mount -t nfs -overs=4.2 derfwpc5131:/export/home/rmainz /mnt
- # install new packages
- cd mnt/work/jessie_target_packages/
- dpkg -i binfmt-support_2.1.5-1_i386.deb
- dpkg -i gisnfsutils_1.0-1.deb
- dpkg -i *.deb
- # install new kernel
- cd new_kernel/
- dpkg -i --root=/ linux-headers-6.5.0-rt5-rovema012-ga38e9947696e_6.5.0-ga38e9947696e-1_i386.deb
- dpkg -i --root=/ linux-libc-dev_6.5.0-ga38e9947696e-1_i386.deb
- dpkg -i --root=/ linux-image-6.5.0-rt5-rovema012-ga38e9947696e_6.5.0-ga38e9947696e-1_i386.deb
- #
- # prepare leaving chroot:
- #
- # kill processes
- pkill autofs
- pkill nscd
- # unmount fs:
- cd /
- umount mnt
- umount dev/pts
- umount proc/sys/fs/binfmt_misc
- umount proc
- #
- # leave chroot
- #
- exit
- # outside chroot
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)
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.