X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=configs%2Fdebxo-kde%2Fhooks;h=a3b46cb63e0c4c5302eae7a589d5151d722aef9f;hb=54798e0b3702d4d8226ff670bc7aaa4413c2e53c;hp=0af18b5de94f2ff821f31b8b0d60bfdcb298c24a;hpb=931a6a70beba07b763ee392b92daa57443401070;p=xodist diff --git a/configs/debxo-kde/hooks b/configs/debxo-kde/hooks index 0af18b5..a3b46cb 100644 --- a/configs/debxo-kde/hooks +++ b/configs/debxo-kde/hooks @@ -24,7 +24,10 @@ customize_chroot_hook() # put here. $ROOT_DIR should be prefixed to any paths. mkdir ${ROOT_DIR}/ofw - + + # OFW needs this to boot w/ partitions + ln -s . ${ROOT_DIR}/boot/boot + # Apt can't deal w/ jffs2's lack of mmap, so we keep apt's cache on tmpfs # (see ). mkdir ${ROOT_DIR}/var/cache/apt/cache @@ -42,7 +45,8 @@ Dir { }; EOF - + # add archive key for lenny-backports + wget -O - http://backports.org/debian/archive.key | (chroot ${ROOT_DIR} apt-key add -) } package_configure_hook() @@ -66,11 +70,8 @@ msr EOF # install some custom packages that aren't on mirrors. ugly hack! - k="http://lunge.mit.edu/~dilinger/debxo-0.2/initramfs-tools_0.92l.2_all.deb - http://lunge.mit.edu/~dilinger/debxo-0.2/ofw-config_0.1_all.deb - http://lunge.mit.edu/~dilinger/debxo-0.4/linux-2.6.25.15_2.6.25.15-165_i386.deb - http://lunge.mit.edu/~dilinger/debxo-0.5/xserver-xorg-video-geode_2.11.0-0.3_i386.deb - http://lunge.mit.edu/~dilinger/debxo-0.5/autox_0.1_all.deb" + k="http://lunge.mit.edu/~dilinger/debxo-0.2/ofw-config_0.1_all.deb + http://lunge.mit.edu/~dilinger/debxo-0.4/linux-2.6.25.15_2.6.25.15-165_i386.deb" mkdir -p cache for i in $k; do pkg=$(basename ${i}) @@ -82,10 +83,6 @@ EOF rm -f ${ROOT_DIR}/${pkg} done - # take some packages that are okay to upgrade off hold - echo xserver-xorg-video-geode install | (chroot ${ROOT_DIR} dpkg --set-selections) - echo autox install | (chroot ${ROOT_DIR} dpkg --set-selections) - # No longer a need for xorg.conf rm -f ${ROOT_DIR}/etc/X11/xorg.conf @@ -94,9 +91,9 @@ EOF cp 30-keymap-olpc.fdi ${ROOT_DIR}/usr/share/hal/fdi/information/10freedesktop/ fi - # configure autox - if [ -f ${ROOT_DIR}/etc/default/autox ]; then - sed --in-place "s/USER=$/USER=${DEFUSER}/" ${ROOT_DIR}/etc/default/autox + # configure kdm + if [ -d ${ROOT_DIR}/etc/kde3/kdm ]; then + sed --in-place "s/AllowNullPasswd=false/AllowNullPasswd=true/;s/#AutoLoginEnable=true/AutoLoginEnable=true/;s/#AutoLoginUser=fred/AutoLoginUser=${DEFUSER}/" ${ROOT_DIR}/etc/kde3/kdm/kdmrc fi }