Dongsu Park 4d59b8715b bootstrap_sdk: skip uploading non-existent directory to fix Rust builds
Previously before https://github.com/kinvolk/flatcar-scripts/pull/134,
`bootstrap_sdk` was looking at the wrong path
(/usr/lib/rust-*/rustlib/aarch64-unknown-linux-gnu instead of
/usr/lib/rustlib/aarch64-unknown-linux-gnu). As a result, Rust got always
removed and rebuilt in `install_cross_rust`, which resulted in
`flatcar-sdk/crossdev/dev-lang/rust/rust-1.54.0-1.xpak` being created.

Now legitimate changes of https://github.com/kinvolk/flatcar-scripts/pull/134
prevent the rebuild from happening. The path already exists in a stage4
SDK build, because the seed stage already has cross-compilers so the
Rust upgrade has all the right cross-paths.

That's why SDK builds with only stage4 failed when it tries uploading Rust
packages like the following. On the other hand, full SDK builds with stage1
to 4 worked well, because in that case Rust is rebuilt anyway.

```
INFO    bootstrap_sdk: Uploading cross toolchain packages to
gs://flatcar-jenkins/developer/sdk/amd64/2021.08.04+dev-flatcar-master-3209
CommandException: No URLs matched:
/mnt/host/source/src/build/catalyst/packages/flatcar-sdk/crossdev/*
CommandException: No URLs matched:
/tmp/tmp.xyjXbCFhUc//mnt/host/source/src/build/catalyst/packages/flatcar-sdk/crossdev/*.sig
CommandException: 2 files/objects could not be transferred.
```

To fix that, we have to skip uploading packages when the crossdev
directory does not exist.

Debugged and suggested by @jepio
2021-08-10 12:18:58 +02:00
2020-09-02 08:10:50 -04:00
2019-11-07 19:40:01 +01:00
2019-12-04 14:59:11 +01:00
2021-02-17 13:26:36 +01:00
2021-02-17 13:26:36 +01:00
2021-02-17 13:26:36 +01:00
2021-02-17 13:26:36 +01:00
2021-02-04 16:57:17 +01:00
2018-01-04 12:20:11 -08:00
2019-11-07 19:40:01 +01:00
2019-12-04 14:59:11 +01:00
2019-11-07 19:40:01 +01:00
2019-11-07 19:40:01 +01:00
2019-12-04 14:59:11 +01:00
2019-11-07 19:40:01 +01:00
2021-02-17 13:26:36 +01:00
2014-01-19 12:25:11 -08:00
2021-02-17 13:26:36 +01:00
2021-02-17 13:26:36 +01:00
2019-11-07 19:40:01 +01:00
2021-02-17 13:26:36 +01:00

Flatcar Container Linux SDK scripts

Welcome to the scripts repo, your starting place for most things here in the Flatcar Container Linux SDK. To get started you can find our documentation on the Flatcar docs website.

Description
image build and composition scripts for Flatcar Container Linux
Readme BSD-3-Clause 165 MiB
Languages
Shell 93.1%
Python 6.9%