lildebi icon indicating copy to clipboard operation
lildebi copied to clipboard

support ubuntu

Open eighthave opened this issue 11 years ago • 2 comments

Its possible to also install Ubuntu using cdebootstrap, but there might be some little details where things are different from Debian. For example, Ubuntu uses upstart as its init system, while Debian was using SysV and is switching to systemd in jessie.

Here's one Ubuntu detail from DebianKit's andromize-lxde package:

        # Adapt upstart jobs to chrooted environments
        dpkg-divert --local --rename --add /sbin/initctl
        ln -sf /bin/true /sbin/initctl

eighthave avatar Sep 30 '14 19:09 eighthave

Ubuntu is not really well supported by cdebootstrap or debootstrap since those are both Debian tools which Ubuntu has not really adopted. For supporting Ubuntu, I think a better approach is to skip cdebootstrap altogether and instead download and install the ubuntu-core tarball.

Then the GPG verification process will also be different. It'll be something like this (totally untested):

wget http://cdimage.ubuntu.com/ubuntu-core/releases/12.04/release/ubuntu-core-12.04.5-core-armhf.tar.gz
wget http://cdimage.ubuntu.com/ubuntu-core/releases/12.04/release/SHA256SUMS.gpg
wget http://cdimage.ubuntu.com/ubuntu-core/releases/12.04/release/SHA256SUMS
gpgv SHA256SUMS.gpg SHA256SUMS
grep ubuntu-core-12.04.5-core-armhf.tar.gz SHA256SUMS > ubuntu-core-12.04.5-core-armhf.tar.gz.sha256
sha256sum -c ubuntu-core-12.04.5-core-armhf.tar.gz.sha256

eighthave avatar Feb 19 '15 10:02 eighthave

ya I was facing issue while trying cdebootstrap with Ubuntu precise. @eighthave: I have sent an email about that.

SDkie avatar Feb 19 '15 10:02 SDkie