Skip to content

Commit

Permalink
Revert "Updated Devuan to ceres"
Browse files Browse the repository at this point in the history
This reverts commit d2df6e1.
  • Loading branch information
dimkr committed Apr 10, 2019
1 parent a01be71 commit 72a3891
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 16 deletions.
8 changes: 4 additions & 4 deletions README.md
Expand Up @@ -41,20 +41,20 @@ Usage

This downloads the root file system tarball and creates two Devuan disk images:

1. devuan-ceres-c201-libre-16GB.img, a 16 GB image suitable for persistent installation; its size should be exactly the size of the internal SSD
2. devuan-ceres-c201-libre-2GB.img, a 2 GB image suitable for booting the laptop off USB
1. devuan-ascii-c201-libre-16GB.img, a 16 GB image suitable for persistent installation; its size should be exactly the size of the internal SSD
2. devuan-ascii-c201-libre-2GB.img, a 2 GB image suitable for booting the laptop off USB

To produce a bootable media, write the 2 GB image to a flash drive (of at least 2 GB):

# dd if=$SOMEWHERE/devuan-ceres-c201-libre-2GB.img of=/dev/$DEVICE bs=50M
# dd if=$SOMEWHERE/devuan-ascii-c201-libre-2GB.img of=/dev/$DEVICE bs=50M

During the first boot, packages will be installed and configured. Once packages are configured, the login prompt will appear; the root password is blank.

The 2 GB image (yes, the smaller one) contains the larger, 16 GB one under /. This way, it is possible to boot the laptop through USB, then install Devuan persistently without having to download or store the large image separately.

Persistent installation is performed using dd, too:

# dd if=/devuan-ceres-c201-libre-16GB.img of=/dev/mmcblk0
# dd if=/devuan-ascii-c201-libre-16GB.img of=/dev/mmcblk0

Graphical Desktop
=================
Expand Down
20 changes: 10 additions & 10 deletions devsus.sh
Expand Up @@ -2,7 +2,7 @@

# this file is part of Devsus.
#
# Copyright 2017, 2018, 2019 Dima Krasner
# Copyright 2017, 2018 Dima Krasner
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -36,7 +36,7 @@ cleanup() {
}

install_devuan() {
debootstrap --arch=armhf --foreign --variant=minbase --include=eudev,kmod,net-tools,inetutils-ping,traceroute,iproute2,isc-dhcp-client,wpasupplicant,iw,alsa-utils,cgpt,elvis-tiny,less,psmisc,netcat-traditional,ca-certificates,bzip2,xz-utils,unscd,dbus,dbus-x11,bluez,pulseaudio,pulseaudio-module-bluetooth,elogind,libpam-elogind,ntp,xserver-xorg-core,xserver-xorg-input-libinput,xserver-xorg-video-fbdev,libgl1-mesa-dri,xserver-xorg-input-synaptics,xinit,x11-xserver-utils,ratpoison,xbindkeys,xvkbd,rxvt-unicode,htop,firefox-esr,mupdf,locales,man-db,dmz-cursor-theme,apt-transport-https ceres $1 http://packages.devuan.org/merged
debootstrap --arch=armhf --foreign --variant=minbase --include=eudev,kmod,net-tools,inetutils-ping,traceroute,iproute2,isc-dhcp-client,wpasupplicant,iw,alsa-utils,cgpt,elvis-tiny,less,psmisc,netcat-traditional,ca-certificates,bzip2,xz-utils,unscd,dbus,dbus-x11,bluez,pulseaudio,pulseaudio-module-bluetooth,elogind,libpam-elogind,ntp,xserver-xorg-core,xserver-xorg-input-libinput,xserver-xorg-video-fbdev,libgl1-mesa-dri,xserver-xorg-input-synaptics,xinit,x11-xserver-utils,ratpoison,xbindkeys,xvkbd,rxvt-unicode,htop,firefox-esr,mupdf,locales,man-db,dmz-cursor-theme,apt-transport-https ascii $1 http://packages.devuan.org/merged

install -D -m 644 devsus/sources.list $1/opt/devsus/sources.list
for i in 80disable-recommends 99-brightness.rules 98-mac.rules fstab .xbindkeysrc htoprc .Xresources .ratpoisonrc 99-hinting.conf index.theme devsus-settings.js devsus.cfg
Expand Down Expand Up @@ -133,9 +133,9 @@ then
tar -c devsus-rootfs | gzip -1 > devsus-rootfs.tar.gz

# create 2GB and 16GB images with the Chrome OS partition layout
create_image devuan-ceres-c201-libre-2GB.img 50M 40
create_image devuan-ceres-c201-libre-16GB.img 512 30785536
GZIP=-1 tar -cSzf devsus-templates.tar.gz devuan-ceres-c201-libre-2GB.img devuan-ceres-c201-libre-16GB.img
create_image devuan-ascii-c201-libre-2GB.img 50M 40
create_image devuan-ascii-c201-libre-16GB.img 512 30785536
GZIP=-1 tar -cSzf devsus-templates.tar.gz devuan-ascii-c201-libre-2GB.img devuan-ascii-c201-libre-16GB.img
else
branch=`git symbolic-ref --short HEAD`
commit=`git log --format=%h -1`
Expand All @@ -149,20 +149,20 @@ else

# mount the / partition of both images
off=$(((8192 + 65536) * 512))
mount -o loop,noatime,offset=$off devuan-ceres-c201-libre-2GB.img $outmnt
mount -o loop,noatime,offset=$off devuan-ceres-c201-libre-16GB.img $inmnt
mount -o loop,noatime,offset=$off devuan-ascii-c201-libre-2GB.img $outmnt
mount -o loop,noatime,offset=$off devuan-ascii-c201-libre-16GB.img $inmnt

# unpack Devuan
tar -C $outmnt -xf dl/devsus-rootfs.tar.gz --strip-components=1
cp -a $outmnt/* $inmnt/

# put the kernel in the kernel partition
dd if=$outmnt/boot/vmlinux.kpart of=devuan-ceres-c201-libre-2GB.img conv=notrunc seek=8192
dd if=$outmnt/boot/vmlinux.kpart of=devuan-ceres-c201-libre-16GB.img conv=notrunc seek=8192
dd if=$outmnt/boot/vmlinux.kpart of=devuan-ascii-c201-libre-2GB.img conv=notrunc seek=8192
dd if=$outmnt/boot/vmlinux.kpart of=devuan-ascii-c201-libre-16GB.img conv=notrunc seek=8192

umount -l $inmnt
rmdir $inmnt

# put the 16GB image inside the 2GB one
cp -f --sparse=always devuan-ceres-c201-libre-16GB.img $outmnt/
cp -f --sparse=always devuan-ascii-c201-libre-16GB.img $outmnt/
fi
4 changes: 2 additions & 2 deletions devsus/sources.list
@@ -1,2 +1,2 @@
deb https://pkgmaster.devuan.org/merged ceres main
deb https://pkgmaster.devuan.org/merged ceres-updates main
deb https://pkgmaster.devuan.org/merged ascii main
deb https://pkgmaster.devuan.org/merged ascii-updates main

0 comments on commit 72a3891

Please sign in to comment.