Commit e3c22686 authored by Ralph Ronnquist's avatar Ralph Ronnquist

Moved "example" to be "vdev-initramfs" and changed make files accordingly.

parent ec0766df
......@@ -2,10 +2,10 @@ How to Install vdev
===================
This document is meant to help both packagers and individuals wishing
to install vdev from source do so as painlessly as possible. However,
the reader is expected to have basic command-line proficiency,
familiarity with their bootloader of choice, and familiarity with
installing and removing system services.
to install `vdev` from source to do so as painlessly as possible.
However, the reader is expected to have basic command-line
proficiency, familiarity with their bootloader of choice, and
familiarity with installing and removing system services.
The steps in this document are lightly tested, and are **specific to
Devuan**. Please report bugs to the Devuan mailing list.
......@@ -13,26 +13,35 @@ Devuan**. Please report bugs to the Devuan mailing list.
Step 1: Set up the system and build packages
--------------------------------------------
# apt-get install git build-essential dh-make dpkg-dev
# git clone git@git.devuan.org:ralph.ronnquist/vdev
# cd vdev
# make -f debian.mk
# apt-get install git build-essential dh-make dpkg-dev
# git clone git@git.devuan.org:ralph.ronnquist/vdev
# cd vdev
# make deb
Note that, if it makes sense to you, you can use the alternative
command "`make jail`" instead, to have the building deposit files into
a `firejail` overlay, instead of cluttering up the workspace.
Step 2: Install packages and set up initramfs
---------------------------------------------
**NOTE:** These steps will disable udev. If vdev does not work
correctly for you, you are expected to know how to restore udev.
**NOTE:** This will disable `udev`. If `vdev` does not work correctly
for you, you are expected to know how to restore `udev`. See below.
# dpkg -i *.deb
Note that the installation runs the (`vdev`) script
`/usr/share/vdev/vdev-install.sh vdev` for making the choice of using
`vdev` without uninstalling `udev`, apart from removing `udev` scripts
for the `initramfs` building. You can use the same script with either
`udev` or `vdev` as argument, to change back to using `udev` or
`vdev`. This will rebuild the `initramfs` each time.
# dpkg -i *.deb
# update-rc.d udev disable
# update-rc.d udev-finish disable
# update-rc.d vdev enable S
Step 3: Uninstall vdev
----------------------
Step 3: Uninstall and restore
-----------------------------
The following is possibly the safest way to unistall `vdev`:
# apt-get purge vdev-initramfs
# apt-get install --reinstall initramfs-tools
# update-rc.d udev enable S
# update-rc.d udev-finish enable S
# /usr/share/vdev/vdev-install.sh udev
# apt-get purge vdev-initramfs vdevd libudev1-compat
# apt-get install --reinstall initramfs-tools udev
......@@ -4,30 +4,33 @@ include buildconf.mk
all:
$(MAKE) -C vdevd
$(MAKE) -C fs
$(MAKE) -C example
$(MAKE) -C vdev-initramfs
$(MAKE) -C hwdb
.PHONY: install
install:
$(MAKE) -C vdevd install
$(MAKE) -C fs install
$(MAKE) -C example install
$(MAKE) -C vdev-initramfs install
$(MAKE) -C hwdb install
.PHONY: clean
clean:
$(MAKE) -C vdevd clean
$(MAKE) -C fs clean
$(MAKE) -C example clean
$(MAKE) -C vdev-initramfs clean
$(MAKE) -C hwdb clean
.PHONY: uninstall
uninstall:
$(MAKE) -C vdevd uninstall
$(MAKE) -C fs uninstall
$(MAKE) -C example uninstall
$(MAKE) -C vdev-initramfs uninstall
$(MAKE) -C hwdb uninstall
.PHONY: deb
.PHONY: deb jail
deb:
make -f debian.mk
jail:
firejail --overlay make -f debian.mk
......@@ -20,7 +20,7 @@ libudev1-compat_$(VERSION)_$(ARCH).deb:
$(MAKE) -C libudev-compat -f ../debian.mk deb PACKAGE=libudev1-compat
vdev-initramfs_$(VERSION)_$(ARCH).deb:
$(MAKE) -C example -f ../debian.mk deb PACKAGE=vdev-initramfs
$(MAKE) -C vdev-initramfs -f ../debian.mk deb PACKAGE=vdev-initramfs
vdevfs_$(VERSION)_$(ARCH).deb:
$(MAKE) -C fs -f ../debian.mk deb PACKAGE=vdevfs
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment