Skip to content

Commit

Permalink
common: always set log level to debug when we install
Browse files Browse the repository at this point in the history
    - 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 <[email protected]>
  • Loading branch information
Vicente-Cheng authored and bk201 committed Nov 1, 2023
1 parent 2d399fa commit dc17aec
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions package/harvester-os/files/usr/sbin/harv-install
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit dc17aec

Please sign in to comment.