mirror of
https://github.com/lxc/lxc-templates.git
synced 2025-04-30 03:07:19 +00:00
plamo: remove unnecesssary initpkg execution at container config
We do not have to re-execute initpkg at container configuration. The remaining initpkg script will be executed at container startup. Signed-off-by: KATOH Yasufumi <karma@jazz.email.ne.jp>
This commit is contained in:
parent
937758dba9
commit
50a41ba878
@ -281,18 +281,12 @@ configure_plamo7() {
|
|||||||
SERVICE="dhclient"
|
SERVICE="dhclient"
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
# initpkg
|
# remove initpkg that does not exec
|
||||||
noexec="shadow netconfig7 eudev openssh"
|
noexec="shadow netconfig7 eudev openssh"
|
||||||
for f in $noexec
|
for f in $noexec
|
||||||
do
|
do
|
||||||
rm -f $rootfs/var/log/initpkg/"$f"
|
rm -f $rootfs/var/log/initpkg/"$f"
|
||||||
done
|
done
|
||||||
pushd $rootfs
|
|
||||||
for f in var/log/initpkg/*
|
|
||||||
do
|
|
||||||
chroot $rootfs sh ./$f
|
|
||||||
done
|
|
||||||
popd
|
|
||||||
}
|
}
|
||||||
|
|
||||||
configure_plamo() {
|
configure_plamo() {
|
||||||
|
Loading…
Reference in New Issue
Block a user