From fffbc9a2352dc8e22049b3c3acc1fc6222f37b9b Mon Sep 17 00:00:00 2001 From: Vicente Cheng Date: Tue, 19 Sep 2023 10:26:51 +0800 Subject: [PATCH] common: always set log level to debug when we install - Always set the debug level when we use the elemental command. That does not make too many logs because the installation is oneshot behavior. Signed-off-by: Vicente Cheng (cherry picked from commit dc17aec2e9b27da1d7c702c5f3a4deb3f7d3cfd9) --- package/harvester-os/files/usr/sbin/harv-install | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/package/harvester-os/files/usr/sbin/harv-install b/package/harvester-os/files/usr/sbin/harv-install index bf66354b4..fc566fa37 100755 --- a/package/harvester-os/files/usr/sbin/harv-install +++ b/package/harvester-os/files/usr/sbin/harv-install @@ -5,10 +5,6 @@ ISOMNT=/run/initramfs/live TARGET=/run/cos/target DATA_DISK_FSLABEL="HARV_LH_DEFAULT" -# Update environment variables -export QUIET=${HARVESTER_SILENT:+"--quiet"} -export DEBUG=${HARVESTER_DEBUG:+"--debug"} - clear_disk_label() { # Clear the label of partitions that has $DATA_DISK_FSLABEL to prevent misidentification @@ -442,7 +438,7 @@ blkdeactivate --lvmoptions wholevg,retry --dmoptions force,retry --errors || tru clear_disk_label # Run elemental installer but do not let it fetch ISO and do not shutdown -elemental install --config-dir ${ELEMENTAL_CONFIG_DIR} ${QUIET} ${DEBUG} +elemental install --config-dir ${ELEMENTAL_CONFIG_DIR} --debug # Format the data disk if needed do_data_disk_format