Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 89a4e04e authored by Robert Nelson's avatar Robert Nelson
Browse files

chroot: this needs to be behind the chroot_generic_startup_scripts=enable option


Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 68c19476
Branches
Tags
No related merge requests found
...@@ -525,23 +525,27 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__ ...@@ -525,23 +525,27 @@ cat > ${DIR}/chroot_script.sh <<-__EOF__
;; ;;
esac esac
pkg="git-core" if [ "x${chroot_generic_startup_scripts}" = "xenable" ] ; then
dpkg_check
if [ "x\${pkg_is_not_installed}" = "x" ] ; then pkg="git-core"
dpkg_check
if [ "x\${pkg_is_not_installed}" = "x" ] ; then
mkdir -p /opt/scripts/ || true mkdir -p /opt/scripts/ || true
qemu_command="git clone https://github.com/RobertCNelson/boot-scripts /opt/scripts/ --depth 1 || true" qemu_command="git clone https://github.com/RobertCNelson/boot-scripts /opt/scripts/ --depth 1 || true"
qemu_warning qemu_warning
git clone https://github.com/RobertCNelson/boot-scripts /opt/scripts/ --depth 1 || true git clone https://github.com/RobertCNelson/boot-scripts /opt/scripts/ --depth 1 || true
sync sync
if [ -f /opt/scripts/.git/config ] ; then if [ -f /opt/scripts/.git/config ] ; then
echo "/opt/scripts/ : https://github.com/RobertCNelson/boot-scripts" >> /opt/source/list.txt echo "/opt/scripts/ : https://github.com/RobertCNelson/boot-scripts" >> /opt/source/list.txt
chown -R ${user_name}:${user_name} /opt/scripts/ chown -R ${user_name}:${user_name} /opt/scripts/
fi
else
dpkg_package_missing
fi fi
else
dpkg_package_missing
fi fi
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment