Skip to content
This repository was archived by the owner on Jan 12, 2021. It is now read-only.

Commit 8e66314

Browse files
committed
Merge branch 'release/0.1.3'
2 parents 00c29c9 + 579b4d2 commit 8e66314

File tree

8 files changed

+449
-418
lines changed

8 files changed

+449
-418
lines changed

Makefile.am

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1+
NETKIT_BUILD_RELEASE=0.1.3
12
NETKIT_KERNEL_RELEASE=K3.2
23
NETKIT_FS_RELEASE=F7.0
34

45
SUBARCH=i386
56

6-
KERNEL_ARCHIVE_FILE=netkit-ng-kernel-${SUBARCH}-${NETKIT_KERNEL_RELEASE}.tar.bz2
7-
FS_ARCHIVE_FILE=netkit-ng-filesystem-${SUBARCH}-${NETKIT_FS_RELEASE}.tar.bz2
7+
KERNEL_ARCHIVE_FILE=netkit-ng-kernel-${SUBARCH}-${NETKIT_KERNEL_RELEASE}-${NETKIT_BUILD_RELEASE}.tar.bz2
8+
FS_ARCHIVE_FILE=netkit-ng-filesystem-${SUBARCH}-${NETKIT_FS_RELEASE}-${NETKIT_BUILD_RELEASE}.tar.bz2

README.mdown

+2-70
Original file line numberDiff line numberDiff line change
@@ -1,71 +1,3 @@
1-
# Netkit UML build
1+
Netkit-NG kernel and fs build version 0.1.3
22

3-
## Introduction
4-
5-
Netkit development has stalled since some time and the scripts to build the fs
6-
and the kernel are now broken due to a bug in deboostrap which is not going to
7-
be fixed (the fs is based on the now deprecated debian Sid).
8-
9-
This project proposes a generic way to build and expand kernel and image for
10-
Netkit, levering build tools in debian. More specifically:
11-
12-
- kernel is build from source using debian package and patched with netkit
13-
patchs.
14-
- rootstrap builds the fs with new modules dedicated to netkit.
15-
16-
At the present time:
17-
- only wheezy is supported.
18-
- only i386 kernel and fs builds are supported.
19-
20-
## Warning
21-
22-
The kernel and the fs ONLY work with a modified version of `netkit-core`.
23-
24-
## Installation
25-
26-
The build is developped and tested on debian Wheezy.
27-
28-
It is recommanded to use a non-critical virtual machine, as the build script
29-
requires root user.
30-
31-
The build requires several tools which can be installed with the following
32-
commands (using root user):
33-
34-
apt-get install build-essentials rootstrap
35-
36-
Launch the build with the command make in the root directory of the project.
37-
38-
39-
40-
## Configuration
41-
42-
The following files can help an user to configure the build:
43-
44-
- `fs/filesystem-tweaks/` directory contains files which are copied in the fs.
45-
- `fs/disabled-services` desactivates `/etc/init.d` scripts in the fs.
46-
- `fs/packages-list` lists the packages to installed in the fs.
47-
- `fs/debconf-package-selections` contains the configuration applied to the
48-
packages.
49-
- `fs/packages-list` lists the packages to installed in the fs.
50-
- `kernel/config.i386` is the configuration of the kernel.
51-
- `kernel/patches/` directory contains the patches applied before kernel
52-
build.
53-
54-
## Bug
55-
56-
* The filesystem uses the sparse mode. On encrypted partition, the disk access can be very slow (very!).
57-
58-
## History
59-
60-
#### Version 0.1.2
61-
62-
* networking init.d script is enabled at startup
63-
64-
#### Version 0.1.1
65-
66-
* install directory is now 'netkit-ng'
67-
* add lxc and openswan
68-
69-
#### Version 0.1
70-
71-
* first official stable release
3+
Documentations are located here: http://netkit-ng.github.io/

fs/debconf-package-selections

+382-343
Large diffs are not rendered by default.

fs/disabled-services

+3
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ dbus
66
dnsmasq
77
ebtables
88
freeradius
9+
ipsec
910
lvm2
1011
lxc
1112
mrd6
@@ -24,3 +25,5 @@ snmpd
2425
squid
2526
ssh
2627
x11-common
28+
xl2tpd
29+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Secrets for authentication using CHAP
2+
# client server secret IP addresses
3+
4+
5+
+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#
2+
# /etc/ppp/pap-secrets
3+
#
4+
# This is a pap-secrets file to be used with the AUTO_PPP function of
5+
# mgetty. mgetty-0.99 is preconfigured to startup pppd with the login option
6+
# which will cause pppd to consult /etc/passwd (and /etc/shadow in turn)
7+
# after a user has passed this file. Don't be disturbed therefore by the fact
8+
# that this file defines logins with any password for users. /etc/passwd
9+
# (again, /etc/shadow, too) will catch passwd mismatches.
10+
#
11+
# This file should block ALL users that should not be able to do AUTO_PPP.
12+
# AUTO_PPP bypasses the usual login program so it's necessary to list all
13+
# system userids with regular passwords here.
14+
#
15+
# ATTENTION: The definitions here can allow users to login without a
16+
# password if you don't use the login option of pppd! The mgetty Debian
17+
# package already provides this option; make sure you don't change that.
18+
19+
# INBOUND connections
20+
21+
# Every regular user can use PPP and has to use passwords from /etc/passwd
22+
* hostname "" *
23+
24+
# UserIDs that cannot use PPP at all. Check your /etc/passwd and add any
25+
# other accounts that should not be able to use pppd!
26+
guest hostname "*" -
27+
master hostname "*" -
28+
root hostname "*" -
29+
support hostname "*" -
30+
stats hostname "*" -
31+
32+
# OUTBOUND connections
33+
34+
# Here you should add your userid password to connect to your providers via
35+
# PAP. The * means that the password is to be used for ANY host you connect
36+
# to. Thus you do not have to worry about the foreign machine name. Just
37+
# replace password with your password.
38+
# If you have different providers with different passwords then you better
39+
# remove the following line.
40+
41+
#-HOSTNAME- * password
42+
43+
44+

fs/modules/netkit

+5
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ chroot $TARGET mount -t proc proc /proc
2525
# load debconf-package-selections
2626
cat $WORKDIR/debconf-package-selections | chroot $TARGET debconf-set-selections
2727

28+
# fix ppp install error: install dummy files
29+
mkdir -p $TARGET/etc/ppp/
30+
cp $WORKDIR/filesystem-tweaks/etc/ppp/chap-secrets $TARGET/etc/ppp/chap-secrets
31+
cp $WORKDIR/filesystem-tweaks/etc/ppp/pap-secrets $TARGET/etc/ppp/pap-secrets
32+
2833
# install packages in packages-list
2934
if test "$install" = "true"; then
3035
packages_list=`cat $WORKDIR/packages-list | grep -v '#'`

fs/packages-list

+5-3
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ bzip2
1212
console-common
1313
console-data
1414
console-tools
15+
curl
1516
dnsmasq
1617
dnsutils
1718
ebtables
@@ -46,9 +47,11 @@ nmap
4647
openssh-client
4748
openssh-server
4849
openssl
49-
openswan
50+
strongswan
5051
openvpn
5152
pdns-recursor
53+
ppp
54+
pppoe
5255
proftpd-basic
5356
psmisc
5457
python
@@ -80,8 +83,7 @@ tshark
8083
ucarp
8184
vim
8285
vlan
86+
xl2tpd
8387
zsh
8488
# smcroute -- removed because of smcroute conflict
8589
# pimd -- removed because of pimd conflict
86-
# ppp -- error during configuration
87-
# pppoe -- error during configuration

0 commit comments

Comments
 (0)