Use busybox for dhcp and acpi.
This commit is contained in:
parent
4eeb3c6028
commit
d2eb7124a7
20
Makefile
20
Makefile
|
@ -142,7 +142,7 @@ ifdef stage4-exists
|
||||||
else
|
else
|
||||||
mkdir -p $(DOWNLOAD_DIR)
|
mkdir -p $(DOWNLOAD_DIR)
|
||||||
rsync --no-motd $(RSYNC_MIRROR)/releases/`echo $(ARCH)|sed 's/i.86/x86/'`/autobuilds/latest-stage3.txt $(DOWNLOAD_DIR)
|
rsync --no-motd $(RSYNC_MIRROR)/releases/`echo $(ARCH)|sed 's/i.86/x86/'`/autobuilds/latest-stage3.txt $(DOWNLOAD_DIR)
|
||||||
rsync --no-motd $(RSYNC_MIRROR)/releases/`echo $(ARCH)|sed 's/i.86/x86/'`/autobuilds/`tail -n 1 $(DOWNLOAD_DIR)/latest-stage3.txt` $(DOWNLOAD_DIR)/stage3-$(ARCH)-latest.tar.bz2
|
rsync --no-motd $(RSYNC_MIRROR)/releases/`echo $(ARCH)|sed 's/i.86/x86/'`/autobuilds/`grep $(ARCH) $(DOWNLOAD_DIR)/latest-stage3.txt|grep -v multilib` $(DOWNLOAD_DIR)/stage3-$(ARCH)-latest.tar.bz2
|
||||||
@./echo Using stage3 tarball
|
@./echo Using stage3 tarball
|
||||||
tar xjpf $(DOWNLOAD_DIR)/stage3-$(ARCH)-latest.tar.bz2 -C $(CHROOT)
|
tar xjpf $(DOWNLOAD_DIR)/stage3-$(ARCH)-latest.tar.bz2 -C $(CHROOT)
|
||||||
endif
|
endif
|
||||||
|
@ -189,7 +189,7 @@ $(CHROOT)/etc/fstab: fstab preproot
|
||||||
$(CHROOT)/etc/conf.d/hostname: preproot
|
$(CHROOT)/etc/conf.d/hostname: preproot
|
||||||
echo hostname=\"$(HOSTNAME)\" > $(CHROOT)/etc/conf.d/hostname
|
echo hostname=\"$(HOSTNAME)\" > $(CHROOT)/etc/conf.d/hostname
|
||||||
|
|
||||||
sysconfig: preproot $(SWAP_FILE) $(CHROOT)/etc/fstab $(CHROOT)/etc/conf.d/hostname
|
sysconfig: preproot acpi.start $(SWAP_FILE) $(CHROOT)/etc/fstab $(CHROOT)/etc/conf.d/hostname
|
||||||
@echo $(VIRTIO)
|
@echo $(VIRTIO)
|
||||||
ifeq ($(VIRTIO),YES)
|
ifeq ($(VIRTIO),YES)
|
||||||
sed -i 's/sda/vda/' $(CHROOT)/etc/fstab
|
sed -i 's/sda/vda/' $(CHROOT)/etc/fstab
|
||||||
|
@ -204,25 +204,23 @@ ifeq ($(HEADLESS),YES)
|
||||||
rm -f $(CHROOT)/etc/runlevels/boot/keymaps
|
rm -f $(CHROOT)/etc/runlevels/boot/keymaps
|
||||||
endif
|
endif
|
||||||
echo 'modules="dhclient"' > $(CHROOT)/etc/conf.d/net
|
echo 'modules="dhclient"' > $(CHROOT)/etc/conf.d/net
|
||||||
echo 'config_eth0="dhcp"' >> $(CHROOT)/etc/conf.d/net
|
echo 'config_eth0="udhcpc"' >> $(CHROOT)/etc/conf.d/net
|
||||||
echo 'dhcp_eth0="release"' >> $(CHROOT)/etc/conf.d/net
|
echo 'dhcp_eth0="release"' >> $(CHROOT)/etc/conf.d/net
|
||||||
$(inroot) ln -nsf net.lo /etc/init.d/net.eth0
|
$(inroot) ln -nsf net.lo /etc/init.d/net.eth0
|
||||||
$(inroot) ln -nsf /etc/init.d/net.eth0 /etc/runlevels/default/net.eth0
|
$(inroot) ln -nsf /etc/init.d/net.eth0 /etc/runlevels/default/net.eth0
|
||||||
$(inroot) rm -f /etc/runlevels/boot/consolefont
|
$(inroot) rm -f /etc/runlevels/boot/consolefont
|
||||||
|
cp -a acpi.start $(CHROOT)/etc/local.d
|
||||||
touch sysconfig
|
touch sysconfig
|
||||||
|
|
||||||
systools: sysconfig compile_options
|
systools: sysconfig compile_options
|
||||||
@./echo Installing standard system tools
|
@./echo Installing standard system tools
|
||||||
$(inroot) $(EMERGE) -n $(USEPKG) app-admin/metalog
|
$(inroot) $(EMERGE) -n $(USEPKG) app-admin/metalog
|
||||||
$(inroot) /sbin/rc-update add metalog default
|
$(inroot) /sbin/rc-update add metalog default
|
||||||
$(inroot) $(EMERGE) -n $(USEPKG) sys-power/acpid
|
|
||||||
$(inroot) /sbin/rc-update add acpid default
|
|
||||||
$(inroot) $(EMERGE) -n $(USEPKG) net-misc/dhcp
|
|
||||||
ifeq ($(DASH),YES)
|
ifeq ($(DASH),YES)
|
||||||
if ! test -e "$(STAGE4_TARBALL)"; \
|
if ! test -e "$(STAGE4_TARBALL)"; \
|
||||||
then $(inroot) $(EMERGE) -n $(USEPKG) app-shells/dash; \
|
then $(inroot) $(EMERGE) -n $(USEPKG) app-shells/dash; \
|
||||||
echo /bin/dash >> $(CHROOT)/etc/shells; \
|
echo /bin/dash >> $(CHROOT)/etc/shells; \
|
||||||
$(inroot) chsh -s /bin/dash root; \
|
$(inroot) chsh -s /bin/sh root; \
|
||||||
fi
|
fi
|
||||||
$(inroot) ln -sf dash /bin/sh
|
$(inroot) ln -sf dash /bin/sh
|
||||||
endif
|
endif
|
||||||
|
@ -251,7 +249,11 @@ build-software: systools issue etc-update.conf $(CRITICAL) $(WORLD)
|
||||||
# the stage3 so may not be installed yet
|
# the stage3 so may not be installed yet
|
||||||
#$(inroot) $(EMERGE) -1n $(USEPKG) app-arch/xz-utils
|
#$(inroot) $(EMERGE) -1n $(USEPKG) app-arch/xz-utils
|
||||||
|
|
||||||
$(inroot) $(EMERGE) $(USEPKG) --update --newuse --deep `cat $(WORLD)` $(EXTRA_WORLD)
|
if test `cat $(WORLD)` ; then \
|
||||||
|
$(inroot) $(EMERGE) $(USEPKG) --update --newuse --deep `cat $(WORLD)` $(EXTRA_WORLD); \
|
||||||
|
else \
|
||||||
|
true; \
|
||||||
|
fi
|
||||||
$(gcc_config)
|
$(gcc_config)
|
||||||
|
|
||||||
@./echo Running revdep-rebuild
|
@./echo Running revdep-rebuild
|
||||||
|
@ -273,7 +275,7 @@ endif
|
||||||
ifeq ($(PRUNE_CRITICAL),YES)
|
ifeq ($(PRUNE_CRITICAL),YES)
|
||||||
$(inroot) $(EMERGE) -C `cat $(CRITICAL)`
|
$(inroot) $(EMERGE) -C `cat $(CRITICAL)`
|
||||||
ifeq ($(DASH),YES)
|
ifeq ($(DASH),YES)
|
||||||
$(inroot) $(EMERGE) -C app-shells/bash
|
$(inroot) $(EMERGE) -c app-shells/bash
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
script="/etc/acpi/PWRF/00000080"
|
||||||
|
if [ ! -f $script ] ; then
|
||||||
|
mkdir -p `dirname $script`
|
||||||
|
echo '#!/bin/sh\n/sbin/halt\n' > $script
|
||||||
|
chmod +x $script
|
||||||
|
fi
|
||||||
|
|
||||||
|
busybox acpid
|
|
@ -1,5 +1,4 @@
|
||||||
dev-db/postgresql-server:9.2
|
dev-db/postgresql-server:9.2
|
||||||
net-misc/dhcp
|
|
||||||
www-apache/mod_wsgi
|
www-apache/mod_wsgi
|
||||||
dev-python/django
|
dev-python/django
|
||||||
dev-python/psycopg
|
dev-python/psycopg
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
dev-db/postgresql-server:9.2
|
dev-db/postgresql-server:9.2
|
||||||
dev-php/pecl-uploadprogress
|
dev-php/pecl-uploadprogress
|
||||||
mail-mta/ssmtp
|
mail-mta/ssmtp
|
||||||
net-misc/dhcp
|
|
||||||
www-apps/drupal
|
www-apps/drupal
|
||||||
|
|
|
@ -1,2 +1 @@
|
||||||
net-misc/dhcp
|
|
||||||
dev-db/mongodb
|
dev-db/mongodb
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
net-misc/dhcp
|
|
||||||
www-apps/owncloud
|
www-apps/owncloud
|
||||||
www-servers/apache
|
www-servers/apache
|
||||||
|
|
|
@ -3,6 +3,5 @@ dev-python/flup
|
||||||
dev-python/python-mpd
|
dev-python/python-mpd
|
||||||
media-libs/mutagen
|
media-libs/mutagen
|
||||||
media-sound/mpd
|
media-sound/mpd
|
||||||
net-misc/dhcp
|
|
||||||
net-misc/ntp
|
net-misc/ntp
|
||||||
www-servers/lighttpd
|
www-servers/lighttpd
|
||||||
|
|
1
x/world
1
x/world
|
@ -1,4 +1,3 @@
|
||||||
net-misc/dhcp
|
|
||||||
x11-apps/xcalc
|
x11-apps/xcalc
|
||||||
x11-apps/xdm
|
x11-apps/xdm
|
||||||
x11-apps/xedit
|
x11-apps/xedit
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
app-editors/leafpad
|
app-editors/leafpad
|
||||||
app-office/orage
|
app-office/orage
|
||||||
net-misc/dhcp
|
|
||||||
www-client/firefox
|
www-client/firefox
|
||||||
x11-apps/xdm
|
x11-apps/xdm
|
||||||
x11-apps/xrandr
|
x11-apps/xrandr
|
||||||
|
|
Loading…
Reference in New Issue