bugfix-1.9.2++
This commit is contained in:
parent
d4b7654769
commit
127d682cfb
9
src/func/chroot
Normal file → Executable file
9
src/func/chroot
Normal file → Executable file
@ -1,3 +1,7 @@
|
||||
#!/bin/bash
|
||||
#remaster lib
|
||||
[ -d "<LIBDIR>" ] || { echo "LIBDIR not exist"; exit 1; }
|
||||
|
||||
## overload chroot with lxc
|
||||
function chroot() {
|
||||
lxc-attach -n _remaster_ -- "$2" "$3" "$4" "$5" "$6" "$7"
|
||||
@ -21,3 +25,8 @@ function chroot_config() {
|
||||
echo "lxc.network.flags = up"
|
||||
echo "lxc.network.hwaddr = 00:16:3e:5a:ba:1e"
|
||||
}
|
||||
|
||||
[ -n "$1" ] && {
|
||||
echo param
|
||||
$1
|
||||
}
|
||||
|
@ -566,6 +566,9 @@ function iso_create_desinfect2017() {
|
||||
|
||||
### chroot ###
|
||||
|
||||
## overload chroot with lxc
|
||||
source <LIBDIR>/func/chroot
|
||||
|
||||
#chroot_initial [chroot_dir]
|
||||
source <LIBDIR>/func/chroot_initial
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user