Magellan Linux

Diff of /trunk/mlivecdbuild/mlivecdbuild2.sh

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2098 by niro, Thu Mar 28 15:39:45 2013 UTC revision 2122 by niro, Thu May 16 13:23:45 2013 UTC
# Line 198  prepare_iso() Line 198  prepare_iso()
198   if [[ -z $(chroot ${CDCHROOTDIR} getent group lock) ]]   if [[ -z $(chroot ${CDCHROOTDIR} getent group lock) ]]
199   then   then
200   echo "adding missing group 'lock'"   echo "adding missing group 'lock'"
201   chroot ${CDCHROOTDIR}  groupadd -g 54 lock   chroot ${CDCHROOTDIR} /usr/lib/mage/mgroupadd -o "-g 54" lock
202   fi   fi
203   # dbus plugdev group   # dbus plugdev group
204   if [[ -z $(chroot ${CDCHROOTDIR} getent group plugdev) ]]   if [[ -z $(chroot ${CDCHROOTDIR} getent group plugdev) ]]
205   then   then
206   echo "adding missing group 'plugdev'"   echo "adding missing group 'plugdev'"
207   chroot ${CDCHROOTDIR}  groupadd -g 302 plugdev   chroot ${CDCHROOTDIR} /usr/lib/mage/mgroupadd -o "-g 302" plugdev
208   fi   fi
209   # dbus messagebus group   # dbus messagebus group
210   if [[ -z $(chroot ${CDCHROOTDIR} getent group messagebus) ]]   if [[ -z $(chroot ${CDCHROOTDIR} getent group messagebus) ]]
211   then   then
212   echo "adding missing group 'messagebus'"   echo "adding missing group 'messagebus'"
213   chroot ${CDCHROOTDIR}  groupadd -g 300 messagebus   chroot ${CDCHROOTDIR} /usr/lib/mage/mgroupadd -o "-g 300" messagebus
214   fi   fi
215   # dbus messagebus user   # dbus messagebus user
216   if [[ -z $(chroot ${CDCHROOTDIR} getent passwd messagebus) ]]   if [[ -z $(chroot ${CDCHROOTDIR} getent passwd messagebus) ]]
217   then   then
218   echo "adding missing user 'messagebus'"   echo "adding missing user 'messagebus'"
219   chroot ${CDCHROOTDIR}  useradd -u 300 -g messagebus -d /dev/null -s /bin/false messagebus   chroot ${CDCHROOTDIR} /usr/lib/mage/museradd -o "-u 300 -g messagebus -d /dev/null -s /bin/false" messagebus
220   fi   fi
221   fi   fi
222   install -m 0644 $(get_profile fstab) ${CDCHROOTDIR}/etc/fstab || die   install -m 0644 $(get_profile fstab) ${CDCHROOTDIR}/etc/fstab || die
# Line 353  generate_rootfs() Line 353  generate_rootfs()
353    
354   # copy everything to the image file and preserve permissions   # copy everything to the image file and preserve permissions
355   ( cd ${CDCHROOTDIR} && tar cpf - . ) | ( cd ${LIVECDROOT}/loop/mnt && tar xvpf - )   ( cd ${CDCHROOTDIR} && tar cpf - . ) | ( cd ${LIVECDROOT}/loop/mnt && tar xvpf - )
356     sleep 3
357    
358   # now umount everything and create the squashfs image   # now umount everything and create the squashfs image
359   umount ${LIVECDROOT}/loop/mnt || die   umount ${LIVECDROOT}/loop/mnt || die

Legend:
Removed from v.2098  
changed lines
  Added in v.2122