diff --git a/Makefile b/Makefile index 059e9d9..acedd4e 100644 --- a/Makefile +++ b/Makefile @@ -278,6 +278,12 @@ build-software: systools issue etc-update.conf $(CRITICAL) $(WORLD) $(gcc_config) EDITOR=/usr/bin/nano $(inroot) etc-update $(MAKE) -C $(APPLIANCE) postinstall +ifeq ($(UDEV),NO) + rm -f $(CHROOT)/etc/runlevels/sysinit/udev + $(inroot) $(EMERGE) -c sys-fs/udev +else + ln -sf /etc/init.d/udev $(CHROOT)/etc/runlevels/sysinit/udev +endif ifeq ($(ENABLE_SSHD),YES) $(inroot) /sbin/rc-update add sshd default endif @@ -302,7 +308,7 @@ endif device-map: $(RAW_IMAGE) echo '(hd0) ' $(RAW_IMAGE) > device-map -image: $(STAGE4_TARBALL) partitions device-map grub.shell dev.tar.bz2 motd.sh +image: $(STAGE4_TARBALL) partitions device-map grub.shell motd.sh @./echo Installing files to $(RAW_IMAGE) mkdir -p loop mount -o noatime $(NBD_DEV)p1 loop @@ -310,12 +316,6 @@ image: $(STAGE4_TARBALL) partitions device-map grub.shell dev.tar.bz2 motd.sh ./motd.sh $(EXTERNAL_KERNEL) $(VIRTIO) $(DISK_SIZE) $(SWAP_SIZE) $(UDEV) $(DASH) $(ARCH) > loop/etc/motd ifneq ($(EXTERNAL_KERNEL),YES) loop/sbin/grub --device-map=device-map --no-floppy --batch < grub.shell -endif -ifeq ($(UDEV),NO) - tar jxf dev.tar.bz2 -C loop/dev - rm -f loop/etc/runlevels/sysinit/udev -else - ln -sf /etc/init.d/udev loop/etc/runlevels/sysinit/udev endif umount -l loop rmdir loop diff --git a/dev.tar.bz2 b/dev.tar.bz2 deleted file mode 100644 index 0a3dead..0000000 Binary files a/dev.tar.bz2 and /dev/null differ