Hi,
Following the developer guide for chromium OS, I am facing an issue in ./build_image... stage regarding the lsb_release.
Following is an excerpt build_image log showcasing the error:
```
13:31:03.508 INFO : Running: /mnt/host/source/chromite/bin/cros_set_lsb_release --sysroot=/mnt/host/source/src/b
uild/images/reven/R122-15727.0.0-d2023_12_30_132703-a1/rootfs --board=reven --unibuild --keyset=devkeys --version_s
tring=15727.0.0 --auserver= --devserver= --buildbot_build=N/A --track=developer-build --branch_number=0 --build_num
ber=15727 --chrome_milestone=122 --patch_number=0
13:31:03.689: WARNING: please check your /etc/hosts file; resolving your hostname (fedora) failed: [Errno -3] Tempo
rary failure in name resolution
13:31:03.699: INFO: run: sudo 'CROS_CACHEDIR=/mnt/host/source/.cache' 'PARALLEL_EMERGE_STATUS_FILE=/tmp/tmp4z39fu38
/status_file' -- setfattr -n security.selinux -v u:object_r:cros_conf_file:s0 /mnt/host/source/src/build/images/rev
en/R122-15727.0.0-d2023_12_30_132703-a1/rootfs/etc/lsb-release
setfattr: /mnt/host/source/src/build/images/reven/R122-15727.0.0-d2023_12_30_132703-a1/rootfs/etc/lsb-release: Inva
lid argument
cros_set_lsb_release: Unhandled exception:
Traceback (most recent call last):
File "/mnt/host/source/chromite/bin/cros_set_lsb_release", line 213, in <module>
DoMain()
File "/mnt/host/source/chromite/bin/cros_set_lsb_release", line 209, in DoMain
commandline.ScriptWrapperMain(FindTarget)
File "/mnt/host/source/chromite/lib/commandline.py", line 1556, in ScriptWrapperMain
ret = target(argv[1:])
File "/mnt/host/source/chromite/scripts/cros_set_lsb_release.py", line 255, in main
image_lib.WriteLsbRelease(opts.sysroot, fields)
File "/mnt/host/source/chromite/lib/image_lib.py", line 603, in WriteLsbRelease
cros_build_lib.sudo_run(
File "/mnt/host/source/chromite/lib/cros_build_lib.py", line 465, in sudo_run
return run(sudo_cmd, **kwargs)
File "/usr/lib/python3.8/contextlib.py", line 75, in inner
return func(*args, **kwds)
File "/mnt/host/source/chromite/lib/cros_build_lib.py", line 990, in run
raise RunCommandError(msg, cmd_result)
chromite.lib.cros_build_lib.RunCommandError: return code: 1; command: sudo 'CROS_CACHEDIR=/mnt/host/source/.cache'
'PARALLEL_EMERGE_STATUS_FILE=/tmp/tmp4z39fu38/status_file' -- setfattr -n security.selinux -v u:object_r:cros_conf_
file:s0 /mnt/host/source/src/build/images/reven/R122-15727.0.0-d2023_12_30_132703-a1/rootfs/etc/lsb-release
cmd=['sudo', 'CROS_CACHEDIR=/mnt/host/source/.cache', 'PARALLEL_EMERGE_STATUS_FILE=/tmp/tmp4z39fu38/status_file', '
--', 'setfattr', '-n', 'security.selinux', '-v', 'u:object_r:cros_conf_file:s0', '/mnt/host/source/src/build/images
/reven/R122-15727.0.0-d2023_12_30_132703-a1/rootfs/etc/lsb-release']
13:31:03.736 INFO : Elapsed time (cros_set_lsb_release): 0m0s
13:31:03.739 ERROR : Sat Dec 30 13:31:03 MST 2023
13:31:03.743 ERROR : PGID PPID PID ELAPSED TIME %CPU COMMAND
13:31:03.743 ERROR : 2 1 2 04:01 00:00:00 0.0 /usr/lib/python-exec/python3.8/python3 /mn
t/host/source/chromite/bin/cros build-image --board=reven --noenable_rootfs_verification
13:31:03.743 ERROR : 2 2 3 04:01 00:00:00 0.0 \_ /bin/bash /mnt/host/source/src/scripts
/build_image.sh --script-is-run-only-by-chromite-and-not-users --board reven --noenable_rootfs_verification --disk_
layout default --boot_args noinitrd --loglevel 7 --jobs 16 chromiumos_image.bin
13:31:03.743 ERROR : 2 3 273102 00:00 00:00:00 0.0 \_ ps f -o pgid,ppid,pid,etime,cputim
e,%cpu,command
13:31:03.745 ERROR : Arguments of 3: '--script-is-run-only-by-chromite-and-not-users' '--board' 'reven' '--noena
ble_rootfs_verification' '--disk_layout' 'default' '--boot_args' 'noinitrd' '--loglevel' '7' '--jobs' '16' 'chromiu
mos_image.bin'
13:31:03.746 ERROR : Backtrace: (most recent call is last)
13:31:03.748 ERROR : build_image.sh:111:main(), called: info_run 'create_base_image' 'chromiumos_base_image.bin'
'1'
13:31:03.750 ERROR : common.sh:147:info_run(), called: create_base_image 'chromiumos_base_image.bin' '1'
13:31:03.753 ERROR : base_image_util.sh:520:create_base_image(), called: info_run '/mnt/host/source/chromite/bin
/cros_set_lsb_release' '--sysroot=/mnt/host/source/src/build/images/reven/R122-15727.0.0-d2023_12_30_132703-a1/root
fs' '--board=reven' '--unibuild' '--keyset=devkeys' '--version_string=15727.0.0' '--auserver=' '--devserver=' '--bu
ildbot_build=N/A' '--track=developer-build' '--branch_number=0' '--build_number=15727' '--chrome_milestone=122' '--
patch_number=0'
13:31:03.755 ERROR : common.sh:152:info_run(), called: die 'Command (cros_set_lsb_release) failed (rc=1)'
13:31:03.756 ERROR :
13:31:03.758 ERROR : Error was:
13:31:03.760 ERROR : Command (cros_set_lsb_release) failed (rc=1)
Entering /mnt/host/source/src/scripts/mount_gpt_image.sh --unmount --from /mnt/host/source/src/build/images/reven/R
122-15727.0.0-d2023_12_30_132703-a1/chromiumos_base_image.bin --rootfs_mountpt /mnt/host/source/src/build/images/re
ven/R122-15727.0.0-d2023_12_30_132703-a1/rootfs --stateful_mountpt /mnt/host/source/src/build/images/reven/R122-157
27.0.0-d2023_12_30_132703-a1/stateful --esp_mountpt /mnt/host/source/src/build/images/reven/R122-15727.0.0-d2023_12
_30_132703-a1/esp --delete_mountpts
13:31:03.881 INFO : Unmounting image from /mnt/host/source/src/build/images/reven/R122-15727.0.0-d2023_12_30_132
703-a1/stateful and /mnt/host/source/src/build/images/reven/R122-15727.0.0-d2023_12_30_132703-a1/rootfs
```