iopsys-feed/iopupgrade/files/sbin/iopu_chroot_env
Kenneth Johansson 27800f2100 iop upgrade: add -r option to jump into a chroot of other system.
useful for developing testing upgrade configuration migration.
2019-01-16 18:35:16 +01:00

18 lines
478 B
Bash
Executable file

#!/bin/sh
# this is run when "iopr -r" is executed.
# intended to just show what environment is actually started.
cat /etc/banner
echo "/tmp/oldroot:"
echo " Contains the running root filesystem. It is live so files are in use"
echo " Anything copying/reading files from there needs to make sure it is done safely."
echo ""
Color_Off='\033[0m' # Text Reset
Red='\033[0;31m' # Red
PS1="${Red}chroot_new${Color_Off}:\w\#"
export PS1
export Red
export Color_Off