Changeset 2699
- Timestamp:
- 03/05/08 16:46:31 (9 months ago)
- Files:
-
- trunk/distrib/gentoo/initpost (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/distrib/gentoo/initpost
r2674 r2699 52 52 53 53 54 # check if we have openrc 55 have_openrc=0 56 $_CHROOT_SH testfile /lib/rc/bin/is_older_than && have_openrc=1 57 58 54 59 # gentoo initstyle magic 55 60 initstyle=sysv … … 60 65 61 66 $_CAT "$__DISTRIBDIR"/gentoo/init-vserver.sh | \ 62 $_CHROOT_SH truncate /lib/rc scripts/sh/init-vserver.sh63 $_CHROOT_SH chmod 0755 /lib/rc scripts/sh/init-vserver.sh67 $_CHROOT_SH truncate /lib/rc/sh/init-vserver.sh 68 $_CHROOT_SH chmod 0755 /lib/rc/sh/init-vserver.sh 64 69 65 70 $_CAT "$__DISTRIBDIR"/gentoo/reboot.sh | \ … … 84 89 # unneeded runlevel scripts 85 90 echo ">>> Fixing default runlevel scripts ... " 86 $_CHROOT_SH rm /etc/runlevels/boot/{clock,consolefont,keymaps,modules,net.lo} 2>/dev/null || : 87 $_CHROOT_SH rm /etc/runlevels/default/{hdparm,netmount} 2>/dev/null || : 91 if test $have_openrc -ne 1; then 92 $_CHROOT_SH rm /etc/runlevels/boot/{clock,consolefont,keymaps,modules,net.lo} 2>/dev/null || : 93 $_CHROOT_SH rm /etc/runlevels/default/{hdparm,netmount} 2>/dev/null || : 94 fi 88 95 89 96 … … 92 99 echo ">>> Setting hostname ... " 93 100 chrootsed /etc/conf.d/hostname \ 94 -e "s: HOSTNAME=\"\(.*\)\":HOSTNAME=\"$(< "$cfgdir"/uts/nodename)\":"101 -e "s:\(HOSTNAME\)=\"\(.*\)\":\1=\"$(< "$cfgdir"/uts/nodename)\":i" 95 102 fi 96 103 … … 115 122 # fix fstab for checkfs/localmount in baselayout-2 116 123 # (does not affect any previous versions) 117 echo ">>> Fixing fstab ... " 118 echo "/dev/hdv1 / ufs defaults 0 0" | $_CHROOT_SH truncate /etc/fstab 119 124 if test $have_openrc -ne 1; then 125 echo ">>> Fixing fstab ... " 126 echo "/dev/hdv1 / ufs defaults 0 0" | $_CHROOT_SH truncate /etc/fstab 127 fi 120 128 121 129 # always satisfy net dependency in baselayout-2 122 130 # (does not affect any previous versions) 123 echo ">>> Providing dummy net dependency ... " 124 $_CAT "$__DISTRIBDIR"/gentoo/net.vserver | \ 125 $_CHROOT_SH truncate /etc/init.d/net.vserver 126 $_CHROOT_SH chmod 0755 /etc/init.d/net.vserver 127 $_CHROOT_SH link /etc/init.d/net.vserver /etc/runlevels/boot/net.vserver 131 if test $have_openrc -ne 1; then 132 echo ">>> Providing dummy net dependency ... " 133 $_CAT "$__DISTRIBDIR"/gentoo/net.vserver | \ 134 $_CHROOT_SH truncate /etc/init.d/net.vserver 135 $_CHROOT_SH chmod 0755 /etc/init.d/net.vserver 136 $_CHROOT_SH link /etc/init.d/net.vserver /etc/runlevels/boot/net.vserver 137 fi 128 138 129 139 popd &>/dev/null
