diff --git a/boot/boot.sh b/boot/boot.sh index c964e410c415..8ed197ca2873 100644 --- a/boot/boot.sh +++ b/boot/boot.sh @@ -31,6 +31,9 @@ echo "cleaning utmp and wtmp..." echo "" > /var/run/utmp echo "" > /var/log/wtmp +echo "setting hotplug..." +cat /etc/sysconfig/hotplug > /proc/sys/kernel/hotplug + echo "loading USB controller modules..." @module_init_tools@/sbin/modprobe uhci-hcd diff --git a/fill-disk.sh b/fill-disk.sh index f009a68bcb20..18beb23d3187 100755 --- a/fill-disk.sh +++ b/fill-disk.sh @@ -146,7 +146,6 @@ make_dir 00755 /bin make_dir 00755 /boot make_dir 00755 /dev make_dir 00755 /dev/pts -make_dir 00755 /dev/input make_dir 00755 /etc # global non-constant configuration make_dir 00755 /etc/ssh make_dir 00755 /etc/sysconfig @@ -359,15 +358,25 @@ cp @kernel@/lib/modules/$version/modules.* $root/lib/modules/$version chmod 644 $root/lib/modules/$version/modules.* ### -### Do funky stuff with grub here. +### hotplug ### +echo "@hotplug@/sbin/hotplug" > $root/etc/sysconfig/hotplug ln -s @hotplug@/sbin/hotplug $root/sbin/hotplug ln -s @hotplug@/etc/hotplug $root/etc/hotplug ln -s @hotplug@/etc/hotplug.d $root/etc/hotplug.d + +### +### init +### + ln -s $device $root/dev/root ln -s @sysvinitPath@/sbin/init /sbin/init +### +### Do funky stuff with grub here. +### + echo installing bootloader grub-install --root-directory=${root} --no-floppy ${targetdrive} diff --git a/kernelscripts/kernel.nix b/kernelscripts/kernel.nix deleted file mode 100644 index 3a799a5ea4d1..000000000000 --- a/kernelscripts/kernel.nix +++ /dev/null @@ -1,6 +0,0 @@ -rec { - inherit (import /nixpkgs/trunk/pkgs/system/i686-linux.nix) - stdenv kernel ov511; - - everything = [kernel ov511]; -} diff --git a/kernelscripts/make-kernel.sh.in b/kernelscripts/make-kernel.sh.in deleted file mode 100755 index 681587f62dd7..000000000000 --- a/kernelscripts/make-kernel.sh.in +++ /dev/null @@ -1,36 +0,0 @@ -#! /bin/sh -e - -#archivesDir=$(@mktemp@/bin/mktemp -d) -archivesDir=/ - -cpwd=@coreutils@/bin/pwd - -storeExpr=$(@nix@/bin/nix-store -qR $(@nix@/bin/nix-store -r $(echo '(import ./kernel.nix).everything' | @nix@/bin/nix-instantiate -))) - -kernel=$(@nix@/bin/nix-store -r $(echo '(import ./kernel.nix).kernel' | @nix@/bin/nix-instantiate -)) - -ov511=$(@nix@/bin/nix-store -r $(echo '(import ./kernel.nix).ov511' | @nix@/bin/nix-instantiate -)) - -#echo making kernel stuff - -kernelVersion=$(cd $kernel/lib/modules/; @coreutils@/bin/ls -d *) -@coreutils@/bin/mkdir -p $archivesDir/lib/modules/$kernelVersion - -#echo $kernelVersion - -cd $kernel - -# make directories - -@findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" -type d | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/mkdir -p $archivesDir/% - -# link all files -@findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" -type f | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/ln -s $kernel/% $archivesDir/% - -# make directories - -cd $ov511 -@findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" -type d | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/mkdir -p $archivesDir/% - -# link all files -@findutils@/bin/find . -not -path "./lib/modules/$kernelVersion/build*" -type f | @findutils@/bin/xargs -n 1 -i% @coreutils@/bin/ln -s $ov511/% $archivesDir/%