Browse Source

bugfix-1.9.2++

feature-lxc
6543 4 years ago
parent
commit
127d682cfb
  1. 9
      src/func/chroot
  2. 3
      src/remaster.sh

9
src/func/chroot

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

3
src/remaster.sh

@ -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…
Cancel
Save