[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#533046: live-initramfs: cron services in live system



Package: live-initramfs
Version: 1.157.2+20090608.075451
Severity: minor



-- Package-specific info:

-- System Information:
Debian Release: 5.0.1
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/2 CPU cores)
Locale: LANG=pt_PT.UTF-8, LC_CTYPE=pt_PT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages live-initramfs depends on:
ii  busybox                   1:1.10.2-2     Tiny utilities for small and embed
ii  file                      4.26-1         Determines file type using "magic"
ii  initramfs-tools           0.92o          tools for generating an initramfs
ii  sudo                      1.6.9p17-2     Provide limited super user privile
ii  udev                      0.125-7+lenny1 /dev/ and hotplug management daemo
ii  user-setup                1.23           Set up initial user and password

Versions of packages live-initramfs recommends:
ii  cryptsetup                  2:1.0.6-7    configures encrypted block devices
ii  eject                       2.1.5+deb1-4 ejects CDs and operates CD-Changer
ii  uuid-runtime                1.41.3-1     universally unique id library
ii  wget                        1.11.4-2     retrieves files from the web

Versions of packages live-initramfs suggests:
pn  curlftpfs                     <none>     (no description available)
pn  genext2fs                     <none>     (no description available)
pn  httpfs2                       <none>     (no description available)
ii  loop-aes-utils                2.13.1-4   Tools for mounting and manipulatin
pn  mtd-tools                     <none>     (no description available)
ii  squashfs-tools                1:3.3-7    Tool to create and append to squas

-- no debconf information

Hello,

this is the first time I use reportbug so excuse me if something is 
wrong and please correct this.

I'm using live-helper from live.debian.net/debian/ repository, 
stable-live version in an updated lenny 5.0.1 live system build.

After login in, the system starts to be loaded with cron jobs. I was 
going to create a hook to stop cron execution and, while I was digging 
live-initramfs for examples to how to do it, I've found it was already 
made in /usr/share/initramfs-tools/scripts/live-bottom/25configure_init:

	# This has the nice side effect of the 
cron.{daily,weekly,monthly} jobs in
	# /etc/crontab remaining disabled, yet also not run by anacron
	if [ -x /root/usr/sbin/anacron ]
	then
		chroot /root dpkg-divert --add --rename --quiet 
/usr/sbin/anacron
		ln -s /bin/true /usr/sbin/anacron
	fi

>From what I see the link isn't working because it's not linking in the 
/root filesystem. I guess it should be:

		ln -s /root/bin/true /root/usr/sbin/anacron



Reply to: