Browse Source
Merge pull request #226 from drewmoseley/master
MKOSI
revert-252-rm-only-tag-2.2.x
Kristian Amlie
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with
8 additions and
4 deletions
-
mender-convert-modify
-
scripts/bootstrap-rootfs-overlay-demo-server.sh
-
scripts/bootstrap-rootfs-overlay-hosted-server.sh
-
scripts/bootstrap-rootfs-overlay-production-server.sh
|
@ -169,10 +169,14 @@ EOF |
|
|
# functionality, but lets get rid of them to avoid confusion. |
|
|
# functionality, but lets get rid of them to avoid confusion. |
|
|
# |
|
|
# |
|
|
# There is no Mender integration for EFI boot or systemd-boot. |
|
|
# There is no Mender integration for EFI boot or systemd-boot. |
|
|
sudo rm -rf work/boot/loader |
|
|
sudo rm -rf work/boot/loader work/rootfs/boot/loader |
|
|
sudo rm -rf work/boot/EFI/Linux |
|
|
sudo rm -rf work/boot/EFI/Linux |
|
|
sudo rm -rf work/boot/EFI/systemd |
|
|
sudo rm -rf work/boot/EFI/systemd |
|
|
sudo rm -rf work/boot/NvVars |
|
|
sudo rm -rf work/boot/NvVars |
|
|
|
|
|
for empty_dir in $(cd work/boot; find . -maxdepth 1 -type d -empty); do |
|
|
|
|
|
sudo rmdir work/boot/$empty_dir |
|
|
|
|
|
sudo rm work/rootfs/boot/$empty_dir |
|
|
|
|
|
done |
|
|
|
|
|
|
|
|
log_info "Installing GRUB" |
|
|
log_info "Installing GRUB" |
|
|
|
|
|
|
|
|
|
@ -52,7 +52,7 @@ if [ -z "${server_ip}" ]; then |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
sudo chown -R $(id -u).$(id -g) ${output_dir} |
|
|
[ -e ${output_dir} ] && sudo chown -R $(id -u).$(id -g) ${output_dir} |
|
|
mkdir -p ${output_dir}/etc/mender |
|
|
mkdir -p ${output_dir}/etc/mender |
|
|
cat <<- EOF > ${output_dir}/etc/mender/mender.conf |
|
|
cat <<- EOF > ${output_dir}/etc/mender/mender.conf |
|
|
{ |
|
|
{ |
|
|
|
@ -53,7 +53,7 @@ if [ -z "${tenant_token}" ]; then |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
sudo chown -R $(id -u).$(id -g) ${output_dir} |
|
|
[ -e ${output_dir} ] && sudo chown -R $(id -u).$(id -g) ${output_dir} |
|
|
mkdir -p ${output_dir}/etc/mender |
|
|
mkdir -p ${output_dir}/etc/mender |
|
|
cat <<- EOF > ${output_dir}/etc/mender/mender.conf |
|
|
cat <<- EOF > ${output_dir}/etc/mender/mender.conf |
|
|
{ |
|
|
{ |
|
|
|
@ -57,7 +57,7 @@ if [ -z "${server_url}" ]; then |
|
|
exit 1 |
|
|
exit 1 |
|
|
fi |
|
|
fi |
|
|
|
|
|
|
|
|
sudo chown -R $(id -u).$(id -g) ${output_dir} |
|
|
[ -e ${output_dir} ] && sudo chown -R $(id -u).$(id -g) ${output_dir} |
|
|
mkdir -p ${output_dir}/etc/mender |
|
|
mkdir -p ${output_dir}/etc/mender |
|
|
cat <<- EOF > ${output_dir}/etc/mender/mender.conf |
|
|
cat <<- EOF > ${output_dir}/etc/mender/mender.conf |
|
|
{ |
|
|
{ |
|
|