-
Notifications
You must be signed in to change notification settings - Fork 14
Using EN
The installation script does everything you need to start selected services in the chroot environment. Services that will start with the NAS are listed in the file /DataVolume/debian/chroot-services.list, one service per line.
Specifically, chroot-services.list lists the files in /DataVolume/debian/etc/init.d/
Even if there are no services in the chroot-environment, it's necessary to have a startup script to mount the required directory:
/etc/init.d/chroot_debian.sh start
To enter the chroot, type chroot /DataVolume/debian. After typing ls / you will see the local filesystem is no longer accessible. You'll also see that your prompt has changed to (chroot-debian) ~ #.
It is already possible to use apt-get to update, install, remove, etc; and dpkg --reconfigure packages: when the script finishes, Debian Stable will be installed, and can be used with very few restrictions. Since everything takes place in a chroot (an isolated filesystem sandbox), nothing you do will change the firmware. After finishing configuration of new services don't forget to add their names to the chroot-services.list. To exit the chroot and return to the firmware environment, type exit or hit [Ctrl]-[D].
/etc/init.d/chroot_debian.sh stop
- Re-add the chroot startup scripts with the following command
/DataVolume/debian/chroot_debian.sh install
- Start the chroot again with the following command:
/etc/init.d/chroot_debian.sh start
- Stop services and remove their startup script
/etc/init.d/chroot_debian.sh stop
/etc/init.d/chroot_debian.sh remove
- Remove the installed Debian Jessie system from the filesystem:
rm -fr /DataVolume/debian/