Skip to content

Commit 4ebd0b6

Browse files
fosslinuxlrvick
authored andcommitted
external sources arg
1 parent 7cfeddf commit 4ebd0b6

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

rootfs.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def create_configuration_file(args):
3737
config.write(f"INTERNAL_CI={args.internal_ci or False}\n")
3838
config.write(f"INTERACTIVE={args.interactive}\n")
3939
config.write(f"BARE_METAL={args.bare_metal}\n")
40+
config.write(f"EXTERNAL_SOURCES={args.external_sources}\n")
4041
if (args.bare_metal or args.qemu) and not args.kernel:
4142
if args.repo or args.external_sources:
4243
config.write("DISK=sdb1\n")

steps/improve/finalize_fhs.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ mount | grep '/sys' &> /dev/null || (mkdir -p /sys; mount -t sysfs sysfs /sys)
2323
mount | grep '/tmp' &> /dev/null || (mkdir -p /tmp; mount -t tmpfs tmpfs /tmp)
2424
mount | grep '/dev/shm' &> /dev/null || (mkdir -p /dev/shm; mount -t tmpfs tmpfs /dev/shm)
2525

26-
# Add /etc/resolv.conf
27-
echo 'nameserver 1.1.1.1' > /etc/resolv.conf
28-
echo 'nameserver 1.1.1.1' > /etc/resolv.conf.head
26+
if [ "${EXTERNAL_SOURCES}" = "False" ]; then
27+
# Add /etc/resolv.conf
28+
echo 'nameserver 1.1.1.1' > /etc/resolv.conf
29+
echo 'nameserver 1.1.1.1' > /etc/resolv.conf.head
30+
fi

0 commit comments

Comments
 (0)