File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 " )
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ mount | grep '/sys' &> /dev/null || (mkdir -p /sys; mount -t sysfs sysfs /sys)
2323mount | grep ' /tmp' & > /dev/null || (mkdir -p /tmp; mount -t tmpfs tmpfs /tmp)
2424mount | 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
You can’t perform that action at this time.
0 commit comments