chroot login shell fix
This commit is contained in:
		
							parent
							
								
									9b3f7eeada
								
							
						
					
					
						commit
						217db9ebd9
					
				
					 2 changed files with 6 additions and 21 deletions
				
			
		|  | @ -57,10 +57,12 @@ mkdir ${root}/etc/profile.d | |||
| 
 | ||||
| cp ${root}/../dont_use_here/profile ${root}/etc/profile | ||||
| 
 | ||||
| 
 | ||||
| cat << EOF > ${root}/login_shell | ||||
| exec -a "-ash" /bin/ash | ||||
| EOF | ||||
| 
 | ||||
| echo "---------------------" | ||||
| echo "finished chroot_fetch" | ||||
| echo "---------------------" | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
| 
 | ||||
|  |  | |||
|  | @ -19,24 +19,7 @@ then | |||
| fi | ||||
| 
 | ||||
| 
 | ||||
| if false; then | ||||
| sudo chroot ./ /usr/bin/env -i \ | ||||
|                 HOME="/root"   \ | ||||
|                 TERM="$TERM"   \ | ||||
|                 PS1='chroot: '        \ | ||||
|                 PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" \ | ||||
|                 /bin/bash -l +h | ||||
| fi | ||||
| if false; then | ||||
| sudo chroot ./ /usr/bin/env -i \ | ||||
|                /bin/bash source /etc/profile\ | ||||
|                /bin/bash -l +h | ||||
| fi | ||||
| 
 | ||||
| sudo chroot ./ /bin/bash -l | ||||
| 
 | ||||
| 
 | ||||
| cd .. | ||||
| sudo chroot ./ /bin/ash login_shell | ||||
| 
 | ||||
| sudo umount root/tmp/ | ||||
| sudo umount root/proc/ | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue