Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

aix27249/chroot_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripts for chroot'ed build environments

What is it

These scripts are used to properly start chroot'ed build environment, and basically do two things:

  • bind special directories like /proc, /dev to chroot envs,
  • start ssh servers from chroot

How to use

  1. You need to set up ssh config manually in each environment you use. So, do next steps:
  • chroot into environment
  • edit /etc/ssh/sshd_config and change port number to some unique one
  • Run these command to initialize ssh keys (replace lib64 with lib, if environment is x86): rc-update -u ; touch /lib64/rc/init.d/softlevel ; rc-service sshd start
  1. Add users and set passwords for everyone

  2. Put everything scripts from scripts folder to some location and edit it to match your reality (paths should be absolute)

  3. Put local.d/cluster.start into your base system's /etc/local.d/ and edit paths

  4. Copy fakeuname/* near your x86 environments, maybe edit it, and run ./update-uname.sh. You should re-run this script each time when coreutils is updated inside any of x86 environments.

  5. At this point, you can login via ssh, for example: ssh -p 12345 localhost

  6. Reboot if you want to test that boot startup is set properly.

Enjoy!

About

Scripts used to manage chroot'ed build environments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published