bugfix-1.9.2++

This commit is contained in:
6543 2018-05-10 17:27:36 +02:00
parent d4b7654769
commit 127d682cfb
2 changed files with 12 additions and 0 deletions

9
src/func/chroot Normal file → Executable file
View 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
}

View File

@ -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