Only enable serial console when HEADLESS=YES

This commit is contained in:
Albert Hopkins 2011-07-01 13:58:26 -04:00
parent 1063bb69f1
commit 581a30ec7f
2 changed files with 1 additions and 2 deletions

View File

@ -177,8 +177,8 @@ ifeq ($(VIRTIO),YES)
sed -i '/^rc_sys=/d' "$(CHROOT)/etc/rc.conf"
echo 'rc_sys=""' >> "$(CHROOT)/etc/rc.conf"
endif
sed -i 's/^#s0:/s0:/' $(CHROOT)/etc/inittab
ifeq ($(HEADLESS),YES)
sed -i 's/^#s0:/s0:/' $(CHROOT)/etc/inittab
sed -ri 's/^(c[0-9]:)/\#\1/' $(CHROOT)/etc/inittab
endif
echo 'modules="dhclient"' > $(CHROOT)/etc/conf.d/net

1
fstab
View File

@ -1,4 +1,3 @@
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/sda1 / ext4 noatime 1 1
/.swap none swap sw 0 0
/dev/shm /dev/shm tmpfs nodev,nosuid,noexec 0 0