Initial commit
This commit is contained in:
commit
9d92a48629
5
.gitignore
vendored
Normal file
5
.gitignore
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
output*
|
||||
overlay*
|
||||
buildroot
|
||||
download
|
||||
*.qcow2
|
344
COPYING
Normal file
344
COPYING
Normal file
@ -0,0 +1,344 @@
|
||||
Manila-test-image is distributed under the terms of the GNU General
|
||||
Public License version 2, reproduced below.
|
||||
|
||||
-----------------------------------------------------------------
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 2, June 1991
|
||||
|
||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
License is intended to guarantee your freedom to share and change free
|
||||
software--to make sure the software is free for all its users. This
|
||||
General Public License applies to most of the Free Software
|
||||
Foundation's software and to any other program whose authors commit to
|
||||
using it. (Some other Free Software Foundation software is covered by
|
||||
the GNU Lesser General Public License instead.) You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
this service if you wish), that you receive source code or can get it
|
||||
if you want it, that you can change the software or use pieces of it
|
||||
in new free programs; and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
anyone to deny you these rights or to ask you to surrender the rights.
|
||||
These restrictions translate to certain responsibilities for you if you
|
||||
distribute copies of the software, or if you modify it.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must give the recipients all the rights that
|
||||
you have. You must make sure that they, too, receive or can get the
|
||||
source code. And you must show them these terms so they know their
|
||||
rights.
|
||||
|
||||
We protect your rights with two steps: (1) copyright the software, and
|
||||
(2) offer you this license which gives you legal permission to copy,
|
||||
distribute and/or modify the software.
|
||||
|
||||
Also, for each author's protection and ours, we want to make certain
|
||||
that everyone understands that there is no warranty for this free
|
||||
software. If the software is modified by someone else and passed on, we
|
||||
want its recipients to know that what they have is not the original, so
|
||||
that any problems introduced by others will not reflect on the original
|
||||
authors' reputations.
|
||||
|
||||
Finally, any free program is threatened constantly by software
|
||||
patents. We wish to avoid the danger that redistributors of a free
|
||||
program will individually obtain patent licenses, in effect making the
|
||||
program proprietary. To prevent this, we have made it clear that any
|
||||
patent must be licensed for everyone's free use or not licensed at all.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License applies to any program or other work which contains
|
||||
a notice placed by the copyright holder saying it may be distributed
|
||||
under the terms of this General Public License. The "Program", below,
|
||||
refers to any such program or work, and a "work based on the Program"
|
||||
means either the Program or any derivative work under copyright law:
|
||||
that is to say, a work containing the Program or a portion of it,
|
||||
either verbatim or with modifications and/or translated into another
|
||||
language. (Hereinafter, translation is included without limitation in
|
||||
the term "modification".) Each licensee is addressed as "you".
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running the Program is not restricted, and the output from the Program
|
||||
is covered only if its contents constitute a work based on the
|
||||
Program (independent of having been made by running the Program).
|
||||
Whether that is true depends on what the Program does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Program's
|
||||
source code as you receive it, in any medium, provided that you
|
||||
conspicuously and appropriately publish on each copy an appropriate
|
||||
copyright notice and disclaimer of warranty; keep intact all the
|
||||
notices that refer to this License and to the absence of any warranty;
|
||||
and give any other recipients of the Program a copy of this License
|
||||
along with the Program.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy, and
|
||||
you may at your option offer warranty protection in exchange for a fee.
|
||||
|
||||
2. You may modify your copy or copies of the Program or any portion
|
||||
of it, thus forming a work based on the Program, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) You must cause the modified files to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
b) You must cause any work that you distribute or publish, that in
|
||||
whole or in part contains or is derived from the Program or any
|
||||
part thereof, to be licensed as a whole at no charge to all third
|
||||
parties under the terms of this License.
|
||||
|
||||
c) If the modified program normally reads commands interactively
|
||||
when run, you must cause it, when started running for such
|
||||
interactive use in the most ordinary way, to print or display an
|
||||
announcement including an appropriate copyright notice and a
|
||||
notice that there is no warranty (or else, saying that you provide
|
||||
a warranty) and that users may redistribute the program under
|
||||
these conditions, and telling the user how to view a copy of this
|
||||
License. (Exception: if the Program itself is interactive but
|
||||
does not normally print such an announcement, your work based on
|
||||
the Program is not required to print an announcement.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Program,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Program, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Program.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Program
|
||||
with the Program (or with a work based on the Program) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may copy and distribute the Program (or a work based on it,
|
||||
under Section 2) in object code or executable form under the terms of
|
||||
Sections 1 and 2 above provided that you also do one of the following:
|
||||
|
||||
a) Accompany it with the complete corresponding machine-readable
|
||||
source code, which must be distributed under the terms of Sections
|
||||
1 and 2 above on a medium customarily used for software interchange; or,
|
||||
|
||||
b) Accompany it with a written offer, valid for at least three
|
||||
years, to give any third party, for a charge no more than your
|
||||
cost of physically performing source distribution, a complete
|
||||
machine-readable copy of the corresponding source code, to be
|
||||
distributed under the terms of Sections 1 and 2 above on a medium
|
||||
customarily used for software interchange; or,
|
||||
|
||||
c) Accompany it with the information you received as to the offer
|
||||
to distribute corresponding source code. (This alternative is
|
||||
allowed only for noncommercial distribution and only if you
|
||||
received the program in object code or executable form with such
|
||||
an offer, in accord with Subsection b above.)
|
||||
|
||||
The source code for a work means the preferred form of the work for
|
||||
making modifications to it. For an executable work, complete source
|
||||
code means all the source code for all modules it contains, plus any
|
||||
associated interface definition files, plus the scripts used to
|
||||
control compilation and installation of the executable. However, as a
|
||||
special exception, the source code distributed need not include
|
||||
anything that is normally distributed (in either source or binary
|
||||
form) with the major components (compiler, kernel, and so on) of the
|
||||
operating system on which the executable runs, unless that component
|
||||
itself accompanies the executable.
|
||||
|
||||
If distribution of executable or object code is made by offering
|
||||
access to copy from a designated place, then offering equivalent
|
||||
access to copy the source code from the same place counts as
|
||||
distribution of the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
4. You may not copy, modify, sublicense, or distribute the Program
|
||||
except as expressly provided under this License. Any attempt
|
||||
otherwise to copy, modify, sublicense or distribute the Program is
|
||||
void, and will automatically terminate your rights under this License.
|
||||
However, parties who have received copies, or rights, from you under
|
||||
this License will not have their licenses terminated so long as such
|
||||
parties remain in full compliance.
|
||||
|
||||
5. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Program or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Program (or any work based on the
|
||||
Program), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Program or works based on it.
|
||||
|
||||
6. Each time you redistribute the Program (or any work based on the
|
||||
Program), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute or modify the Program subject to
|
||||
these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties to
|
||||
this License.
|
||||
|
||||
7. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Program at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Program by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Program.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under
|
||||
any particular circumstance, the balance of the section is intended to
|
||||
apply and the section as a whole is intended to apply in other
|
||||
circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system, which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
8. If the distribution and/or use of the Program is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Program under this License
|
||||
may add an explicit geographical distribution limitation excluding
|
||||
those countries, so that distribution is permitted only in or among
|
||||
countries not thus excluded. In such case, this License incorporates
|
||||
the limitation as if written in the body of this License.
|
||||
|
||||
9. The Free Software Foundation may publish revised and/or new versions
|
||||
of the General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Program
|
||||
specifies a version number of this License which applies to it and "any
|
||||
later version", you have the option of following the terms and conditions
|
||||
either of that version or of any later version published by the Free
|
||||
Software Foundation. If the Program does not specify a version number of
|
||||
this License, you may choose any version ever published by the Free Software
|
||||
Foundation.
|
||||
|
||||
10. If you wish to incorporate parts of the Program into other free
|
||||
programs whose distribution conditions are different, write to the author
|
||||
to ask for permission. For software which is copyrighted by the Free
|
||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||
make exceptions for this. Our decision will be guided by the two goals
|
||||
of preserving the free status of all derivatives of our free software and
|
||||
of promoting the sharing and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||
REPAIR OR CORRECTION.
|
||||
|
||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||
POSSIBILITY OF SUCH DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
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
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License along
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program is interactive, make it output a short notice like this
|
||||
when it starts in an interactive mode:
|
||||
|
||||
Gnomovision version 69, Copyright (C) year name of author
|
||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, the commands you use may
|
||||
be called something other than `show w' and `show c'; they could even be
|
||||
mouse-clicks or menu items--whatever suits your program.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1989
|
||||
Ty Coon, President of Vice
|
||||
|
||||
This General Public License does not permit incorporating your program into
|
||||
proprietary programs. If your program is a subroutine library, you may
|
||||
consider it more useful to permit linking proprietary applications with the
|
||||
library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License.
|
50
README
Normal file
50
README
Normal file
@ -0,0 +1,50 @@
|
||||
|
||||
This project contains scripts and configs to create a small bootable
|
||||
Linux image, primarily for the purposes of testing Manila.
|
||||
|
||||
It uses buildroot to do nearly all of the hard work.
|
||||
|
||||
The built Linux image is optimized for size, and targets the i386
|
||||
platform under QEMU.
|
||||
|
||||
The following extra features are enabled:
|
||||
* SSH server
|
||||
* NFSv3/4 server
|
||||
* NFSv3/4 client
|
||||
* Samba4 Server
|
||||
* CIFS client
|
||||
|
||||
== Dependencies needed to build ==
|
||||
|
||||
On Ubuntu:
|
||||
|
||||
sudo apt-get -y install bison flex texinfo gettext ncurses-dev unzip \
|
||||
sshpass quilt qt-sdk qemu-kvm build-essential gcc-multilib
|
||||
|
||||
On Fedora:
|
||||
|
||||
sudo dnf -y install bison flex texinfo gettext ncurses-devel unzip \
|
||||
sshpass quilt qt-devel qemu-kvm gcc-c++ make glibc-devel.i686
|
||||
|
||||
== Building the image ==
|
||||
|
||||
To make buildroot compile the system run:
|
||||
|
||||
./run-buildroot.sh
|
||||
|
||||
After buildroot succeeds, create the qcow2 file:
|
||||
|
||||
./make-bootable-disk.sh client
|
||||
|
||||
== Cleaning ==
|
||||
|
||||
To do a simple clean after changing some config options:
|
||||
|
||||
cd buildroot
|
||||
make O=../output-client clean
|
||||
|
||||
To nuke everything and start over:
|
||||
|
||||
rm -rf buildroot output* overlay*
|
||||
sudo rm *.qcow2
|
||||
|
5
common-files/boot/extlinux.conf
Normal file
5
common-files/boot/extlinux.conf
Normal file
@ -0,0 +1,5 @@
|
||||
default linux
|
||||
|
||||
label linux
|
||||
kernel /boot/bzImage
|
||||
append root=/dev/vda1 console=tty0 console=ttyS0,115200n8 clocksource=kvm-clock
|
19
common-files/etc/init.d/S99metadata
Executable file
19
common-files/etc/init.d/S99metadata
Executable file
@ -0,0 +1,19 @@
|
||||
#!/bin/sh
|
||||
|
||||
mkdir -p /root/.ssh
|
||||
cd /root/.ssh
|
||||
chown 700 .
|
||||
[ -f authorized_keys ] || touch authorized_keys
|
||||
chown 600 authorized_keys
|
||||
|
||||
url="http://169.254.169.254/2009-04-04/meta-data"
|
||||
(
|
||||
wget -q -O - -T 10 $url/public-keys 2> /dev/null || exit 1
|
||||
echo
|
||||
) | (
|
||||
while read line
|
||||
do
|
||||
key=$(echo $line | sed 's/\([0-9]\+\)=.*/\1/')
|
||||
wget -q -O - -T 10 $url/public-keys/$key/openssh-key 2> /dev/null || exit 1
|
||||
done
|
||||
) >> /root/.ssh/authorized_keys
|
6
common-files/etc/network/interfaces
Normal file
6
common-files/etc/network/interfaces
Normal file
@ -0,0 +1,6 @@
|
||||
# Configure Loopback
|
||||
auto lo
|
||||
iface lo inet loopback
|
||||
|
||||
auto eth0
|
||||
iface eth0 inet dhcp
|
25
conf/buildroot-client.config
Normal file
25
conf/buildroot-client.config
Normal file
@ -0,0 +1,25 @@
|
||||
BR2_x86_core2=y
|
||||
BR2_DL_DIR="$(TOPDIR)/../download"
|
||||
BR2_CCACHE=y
|
||||
BR2_KERNEL_HEADERS_4_4=y
|
||||
BR2_UCLIBC_CONFIG="../conf/uclibc.config"
|
||||
BR2_TOOLCHAIN_BUILDROOT_INET_RPC=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
|
||||
BR2_SYSTEM_DHCP="eth0"
|
||||
BR2_ROOTFS_OVERLAY="../overlay-client"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="../conf/linux.config"
|
||||
BR2_LINUX_KERNEL_LZMA=y
|
||||
BR2_LINUX_KERNEL_INSTALL_TARGET=y
|
||||
BR2_PACKAGE_BUSYBOX_CONFIG="../conf/busybox.config"
|
||||
BR2_PACKAGE_NFS_UTILS=y
|
||||
BR2_PACKAGE_NFS_UTILS_RPC_LOCKD=y
|
||||
BR2_PACKAGE_NFS_UTILS_RPC_RQUOTAD=y
|
||||
BR2_PACKAGE_NFS_UTILS_NFS4=y
|
||||
BR2_PACKAGE_LIBICONV=y
|
||||
BR2_PACKAGE_DROPBEAR=y
|
||||
BR2_PACKAGE_IPROUTE2=y
|
||||
BR2_TARGET_SYSLINUX=y
|
||||
BR2_TARGET_SYSLINUX_MBR=y
|
35
conf/buildroot-debug.config
Normal file
35
conf/buildroot-debug.config
Normal file
@ -0,0 +1,35 @@
|
||||
BR2_x86_core2=y
|
||||
BR2_DL_DIR="$(TOPDIR)/../download"
|
||||
BR2_CCACHE=y
|
||||
BR2_ENABLE_DEBUG=y
|
||||
BR2_KERNEL_HEADERS_4_4=y
|
||||
BR2_UCLIBC_CONFIG="../conf/uclibc.config"
|
||||
BR2_TOOLCHAIN_BUILDROOT_INET_RPC=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
|
||||
BR2_PTHREAD_DEBUG=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||
BR2_PACKAGE_HOST_GDB=y
|
||||
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
|
||||
BR2_SYSTEM_DHCP="eth0"
|
||||
BR2_ROOTFS_OVERLAY="../overlay-server"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="../conf/linux.config"
|
||||
BR2_LINUX_KERNEL_LZMA=y
|
||||
BR2_LINUX_KERNEL_INSTALL_TARGET=y
|
||||
BR2_PACKAGE_BUSYBOX_CONFIG="../conf/busybox.config"
|
||||
BR2_PACKAGE_GDB=y
|
||||
BR2_PACKAGE_GETTEXT=y
|
||||
BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
|
||||
BR2_PACKAGE_NFS_UTILS=y
|
||||
BR2_PACKAGE_NFS_UTILS_RPC_LOCKD=y
|
||||
BR2_PACKAGE_NFS_UTILS_RPC_RQUOTAD=y
|
||||
BR2_PACKAGE_NFS_UTILS_NFS4=y
|
||||
BR2_PACKAGE_GNUTLS=y
|
||||
BR2_PACKAGE_OPENLDAP=y
|
||||
BR2_PACKAGE_LIBICONV=y
|
||||
BR2_PACKAGE_DROPBEAR=y
|
||||
BR2_PACKAGE_IPROUTE2=y
|
||||
BR2_PACKAGE_SAMBA4=y
|
||||
BR2_TARGET_SYSLINUX=y
|
||||
BR2_TARGET_SYSLINUX_MBR=y
|
31
conf/buildroot-server.config
Normal file
31
conf/buildroot-server.config
Normal file
@ -0,0 +1,31 @@
|
||||
BR2_x86_core2=y
|
||||
BR2_DL_DIR="$(TOPDIR)/../download"
|
||||
BR2_CCACHE=y
|
||||
BR2_KERNEL_HEADERS_4_4=y
|
||||
BR2_UCLIBC_CONFIG="../conf/uclibc.config"
|
||||
BR2_TOOLCHAIN_BUILDROOT_INET_RPC=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_WCHAR=y
|
||||
BR2_TOOLCHAIN_BUILDROOT_CXX=y
|
||||
BR2_TARGET_GENERIC_ROOT_PASSWD="root"
|
||||
BR2_SYSTEM_DHCP="eth0"
|
||||
BR2_ROOTFS_OVERLAY="../overlay-server"
|
||||
BR2_LINUX_KERNEL=y
|
||||
BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
|
||||
BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="../conf/linux.config"
|
||||
BR2_LINUX_KERNEL_LZMA=y
|
||||
BR2_LINUX_KERNEL_INSTALL_TARGET=y
|
||||
BR2_PACKAGE_BUSYBOX_CONFIG="../conf/busybox.config"
|
||||
BR2_PACKAGE_GETTEXT=y
|
||||
BR2_PACKAGE_E2FSPROGS_RESIZE2FS=y
|
||||
BR2_PACKAGE_NFS_UTILS=y
|
||||
BR2_PACKAGE_NFS_UTILS_RPC_LOCKD=y
|
||||
BR2_PACKAGE_NFS_UTILS_RPC_RQUOTAD=y
|
||||
BR2_PACKAGE_NFS_UTILS_NFS4=y
|
||||
BR2_PACKAGE_GNUTLS=y
|
||||
BR2_PACKAGE_OPENLDAP=y
|
||||
BR2_PACKAGE_LIBICONV=y
|
||||
BR2_PACKAGE_DROPBEAR=y
|
||||
BR2_PACKAGE_IPROUTE2=y
|
||||
BR2_PACKAGE_SAMBA4=y
|
||||
BR2_TARGET_SYSLINUX=y
|
||||
BR2_TARGET_SYSLINUX_MBR=y
|
464
conf/busybox.config
Normal file
464
conf/busybox.config
Normal file
@ -0,0 +1,464 @@
|
||||
CONFIG_HAVE_DOT_CONFIG=y
|
||||
CONFIG_DESKTOP=y
|
||||
CONFIG_INCLUDE_SUSv2=y
|
||||
CONFIG_PLATFORM_LINUX=y
|
||||
CONFIG_FEATURE_BUFFERS_USE_MALLOC=y
|
||||
CONFIG_SHOW_USAGE=y
|
||||
CONFIG_FEATURE_VERBOSE_USAGE=y
|
||||
CONFIG_FEATURE_INSTALLER=y
|
||||
CONFIG_SUBST_WCHAR=0
|
||||
CONFIG_LAST_SUPPORTED_WCHAR=0
|
||||
CONFIG_FEATURE_USE_SENDFILE=y
|
||||
CONFIG_LONG_OPTS=y
|
||||
CONFIG_FEATURE_DEVPTS=y
|
||||
CONFIG_FEATURE_CLEAN_UP=y
|
||||
CONFIG_FEATURE_UTMP=y
|
||||
CONFIG_FEATURE_WTMP=y
|
||||
CONFIG_PID_FILE_PATH=""
|
||||
CONFIG_FEATURE_SUID=y
|
||||
CONFIG_BUSYBOX_EXEC_PATH="/proc/self/exe"
|
||||
CONFIG_FEATURE_SYSLOG=y
|
||||
CONFIG_FEATURE_HAVE_RPC=y
|
||||
CONFIG_LFS=y
|
||||
CONFIG_CROSS_COMPILER_PREFIX=""
|
||||
CONFIG_SYSROOT=""
|
||||
CONFIG_EXTRA_CFLAGS=""
|
||||
CONFIG_EXTRA_LDFLAGS=""
|
||||
CONFIG_EXTRA_LDLIBS=""
|
||||
CONFIG_NO_DEBUG_LIB=y
|
||||
CONFIG_INSTALL_APPLET_SYMLINKS=y
|
||||
CONFIG_PREFIX="./_install"
|
||||
CONFIG_FEATURE_RTMINMAX=y
|
||||
CONFIG_PASSWORD_MINLEN=6
|
||||
CONFIG_MD5_SMALL=1
|
||||
CONFIG_SHA3_SMALL=1
|
||||
CONFIG_FEATURE_USE_TERMIOS=y
|
||||
CONFIG_FEATURE_EDITING=y
|
||||
CONFIG_FEATURE_EDITING_MAX_LEN=1024
|
||||
CONFIG_FEATURE_EDITING_VI=y
|
||||
CONFIG_FEATURE_EDITING_HISTORY=999
|
||||
CONFIG_FEATURE_EDITING_SAVEHISTORY=y
|
||||
CONFIG_FEATURE_REVERSE_SEARCH=y
|
||||
CONFIG_FEATURE_TAB_COMPLETION=y
|
||||
CONFIG_FEATURE_EDITING_FANCY_PROMPT=y
|
||||
CONFIG_FEATURE_NON_POSIX_CP=y
|
||||
CONFIG_FEATURE_COPYBUF_KB=4
|
||||
CONFIG_FEATURE_SKIP_ROOTFS=y
|
||||
CONFIG_MONOTONIC_SYSCALL=y
|
||||
CONFIG_IOCTL_HEX2STR_ERROR=y
|
||||
CONFIG_GUNZIP=y
|
||||
CONFIG_BUNZIP2=y
|
||||
CONFIG_GZIP=y
|
||||
CONFIG_GZIP_FAST=0
|
||||
CONFIG_TAR=y
|
||||
CONFIG_FEATURE_TAR_CREATE=y
|
||||
CONFIG_FEATURE_TAR_FROM=y
|
||||
CONFIG_FEATURE_TAR_GNU_EXTENSIONS=y
|
||||
CONFIG_FEATURE_TAR_LONG_OPTIONS=y
|
||||
CONFIG_FEATURE_TAR_TO_COMMAND=y
|
||||
CONFIG_UNZIP=y
|
||||
CONFIG_BASENAME=y
|
||||
CONFIG_CAT=y
|
||||
CONFIG_DATE=y
|
||||
CONFIG_FEATURE_DATE_ISOFMT=y
|
||||
CONFIG_FEATURE_DATE_COMPAT=y
|
||||
CONFIG_DD=y
|
||||
CONFIG_FEATURE_DD_SIGNAL_HANDLING=y
|
||||
CONFIG_FEATURE_DD_IBS_OBS=y
|
||||
CONFIG_FEATURE_DD_STATUS=y
|
||||
CONFIG_HOSTID=y
|
||||
CONFIG_ID=y
|
||||
CONFIG_SHUF=y
|
||||
CONFIG_SYNC=y
|
||||
CONFIG_FEATURE_SYNC_FANCY=y
|
||||
CONFIG_TEST=y
|
||||
CONFIG_FEATURE_TEST_64=y
|
||||
CONFIG_TOUCH=y
|
||||
CONFIG_FEATURE_TOUCH_SUSV3=y
|
||||
CONFIG_TR=y
|
||||
CONFIG_FEATURE_TR_CLASSES=y
|
||||
CONFIG_FEATURE_TR_EQUIV=y
|
||||
CONFIG_TRUNCATE=y
|
||||
CONFIG_UNLINK=y
|
||||
CONFIG_WHO=y
|
||||
CONFIG_CATV=y
|
||||
CONFIG_CHGRP=y
|
||||
CONFIG_CHMOD=y
|
||||
CONFIG_CHOWN=y
|
||||
CONFIG_CHROOT=y
|
||||
CONFIG_CKSUM=y
|
||||
CONFIG_CP=y
|
||||
CONFIG_CUT=y
|
||||
CONFIG_DF=y
|
||||
CONFIG_DIRNAME=y
|
||||
CONFIG_DU=y
|
||||
CONFIG_FEATURE_DU_DEFAULT_BLOCKSIZE_1K=y
|
||||
CONFIG_ECHO=y
|
||||
CONFIG_FEATURE_FANCY_ECHO=y
|
||||
CONFIG_ENV=y
|
||||
CONFIG_EXPR=y
|
||||
CONFIG_EXPR_MATH_SUPPORT_64=y
|
||||
CONFIG_FALSE=y
|
||||
CONFIG_FOLD=y
|
||||
CONFIG_HEAD=y
|
||||
CONFIG_FEATURE_FANCY_HEAD=y
|
||||
CONFIG_INSTALL=y
|
||||
CONFIG_FEATURE_INSTALL_LONG_OPTIONS=y
|
||||
CONFIG_LN=y
|
||||
CONFIG_LOGNAME=y
|
||||
CONFIG_LS=y
|
||||
CONFIG_FEATURE_LS_FILETYPES=y
|
||||
CONFIG_FEATURE_LS_FOLLOWLINKS=y
|
||||
CONFIG_FEATURE_LS_RECURSIVE=y
|
||||
CONFIG_FEATURE_LS_SORTFILES=y
|
||||
CONFIG_FEATURE_LS_TIMESTAMPS=y
|
||||
CONFIG_FEATURE_LS_USERNAME=y
|
||||
CONFIG_FEATURE_LS_COLOR=y
|
||||
CONFIG_FEATURE_LS_COLOR_IS_DEFAULT=y
|
||||
CONFIG_MD5SUM=y
|
||||
CONFIG_MKDIR=y
|
||||
CONFIG_FEATURE_MKDIR_LONG_OPTIONS=y
|
||||
CONFIG_MKFIFO=y
|
||||
CONFIG_MKNOD=y
|
||||
CONFIG_MV=y
|
||||
CONFIG_FEATURE_MV_LONG_OPTIONS=y
|
||||
CONFIG_NICE=y
|
||||
CONFIG_NOHUP=y
|
||||
CONFIG_OD=y
|
||||
CONFIG_PRINTENV=y
|
||||
CONFIG_PRINTF=y
|
||||
CONFIG_PWD=y
|
||||
CONFIG_READLINK=y
|
||||
CONFIG_FEATURE_READLINK_FOLLOW=y
|
||||
CONFIG_REALPATH=y
|
||||
CONFIG_RM=y
|
||||
CONFIG_RMDIR=y
|
||||
CONFIG_SEQ=y
|
||||
CONFIG_SHA1SUM=y
|
||||
CONFIG_SHA256SUM=y
|
||||
CONFIG_SHA512SUM=y
|
||||
CONFIG_SHA3SUM=y
|
||||
CONFIG_SLEEP=y
|
||||
CONFIG_SORT=y
|
||||
CONFIG_FEATURE_SORT_BIG=y
|
||||
CONFIG_STTY=y
|
||||
CONFIG_TAIL=y
|
||||
CONFIG_FEATURE_FANCY_TAIL=y
|
||||
CONFIG_TEE=y
|
||||
CONFIG_FEATURE_TEE_USE_BLOCK_IO=y
|
||||
CONFIG_TRUE=y
|
||||
CONFIG_TTY=y
|
||||
CONFIG_UNAME=y
|
||||
CONFIG_UNAME_OSNAME="GNU/Linux"
|
||||
CONFIG_UNIQ=y
|
||||
CONFIG_USLEEP=y
|
||||
CONFIG_UUDECODE=y
|
||||
CONFIG_UUENCODE=y
|
||||
CONFIG_WC=y
|
||||
CONFIG_WHOAMI=y
|
||||
CONFIG_YES=y
|
||||
CONFIG_FEATURE_VERBOSE=y
|
||||
CONFIG_FEATURE_PRESERVE_HARDLINKS=y
|
||||
CONFIG_FEATURE_AUTOWIDTH=y
|
||||
CONFIG_FEATURE_HUMAN_READABLE=y
|
||||
CONFIG_FEATURE_MD5_SHA1_SUM_CHECK=y
|
||||
CONFIG_CHVT=y
|
||||
CONFIG_CLEAR=y
|
||||
CONFIG_DEALLOCVT=y
|
||||
CONFIG_DUMPKMAP=y
|
||||
CONFIG_LOADFONT=y
|
||||
CONFIG_LOADKMAP=y
|
||||
CONFIG_OPENVT=y
|
||||
CONFIG_RESET=y
|
||||
CONFIG_RESIZE=y
|
||||
CONFIG_FEATURE_RESIZE_PRINT=y
|
||||
CONFIG_SETCONSOLE=y
|
||||
CONFIG_DEFAULT_SETFONT_DIR=""
|
||||
CONFIG_SETKEYCODES=y
|
||||
CONFIG_SETLOGCONS=y
|
||||
CONFIG_FEATURE_LOADFONT_PSF2=y
|
||||
CONFIG_FEATURE_LOADFONT_RAW=y
|
||||
CONFIG_MKTEMP=y
|
||||
CONFIG_PIPE_PROGRESS=y
|
||||
CONFIG_RUN_PARTS=y
|
||||
CONFIG_FEATURE_RUN_PARTS_LONG_OPTIONS=y
|
||||
CONFIG_START_STOP_DAEMON=y
|
||||
CONFIG_FEATURE_START_STOP_DAEMON_FANCY=y
|
||||
CONFIG_FEATURE_START_STOP_DAEMON_LONG_OPTIONS=y
|
||||
CONFIG_WHICH=y
|
||||
CONFIG_AWK=y
|
||||
CONFIG_FEATURE_AWK_GNU_EXTENSIONS=y
|
||||
CONFIG_CMP=y
|
||||
CONFIG_DIFF=y
|
||||
CONFIG_FEATURE_DIFF_DIR=y
|
||||
CONFIG_PATCH=y
|
||||
CONFIG_SED=y
|
||||
CONFIG_VI=y
|
||||
CONFIG_FEATURE_VI_MAX_LEN=4096
|
||||
CONFIG_FEATURE_VI_8BIT=y
|
||||
CONFIG_FEATURE_VI_COLON=y
|
||||
CONFIG_FEATURE_VI_YANKMARK=y
|
||||
CONFIG_FEATURE_VI_SEARCH=y
|
||||
CONFIG_FEATURE_VI_USE_SIGNALS=y
|
||||
CONFIG_FEATURE_VI_DOT_CMD=y
|
||||
CONFIG_FEATURE_VI_READONLY=y
|
||||
CONFIG_FEATURE_VI_SETOPTS=y
|
||||
CONFIG_FEATURE_VI_SET=y
|
||||
CONFIG_FEATURE_VI_WIN_RESIZE=y
|
||||
CONFIG_FEATURE_VI_ASK_TERMINAL=y
|
||||
CONFIG_FEATURE_VI_UNDO=y
|
||||
CONFIG_FEATURE_VI_UNDO_QUEUE=y
|
||||
CONFIG_FEATURE_VI_UNDO_QUEUE_MAX=256
|
||||
CONFIG_FEATURE_ALLOW_EXEC=y
|
||||
CONFIG_FIND=y
|
||||
CONFIG_FEATURE_FIND_PRINT0=y
|
||||
CONFIG_FEATURE_FIND_MTIME=y
|
||||
CONFIG_FEATURE_FIND_MMIN=y
|
||||
CONFIG_FEATURE_FIND_PERM=y
|
||||
CONFIG_FEATURE_FIND_TYPE=y
|
||||
CONFIG_FEATURE_FIND_XDEV=y
|
||||
CONFIG_FEATURE_FIND_MAXDEPTH=y
|
||||
CONFIG_FEATURE_FIND_NEWER=y
|
||||
CONFIG_FEATURE_FIND_EXEC=y
|
||||
CONFIG_FEATURE_FIND_EXEC_PLUS=y
|
||||
CONFIG_FEATURE_FIND_USER=y
|
||||
CONFIG_FEATURE_FIND_GROUP=y
|
||||
CONFIG_FEATURE_FIND_NOT=y
|
||||
CONFIG_FEATURE_FIND_DEPTH=y
|
||||
CONFIG_FEATURE_FIND_PAREN=y
|
||||
CONFIG_FEATURE_FIND_SIZE=y
|
||||
CONFIG_FEATURE_FIND_PRUNE=y
|
||||
CONFIG_FEATURE_FIND_PATH=y
|
||||
CONFIG_FEATURE_FIND_REGEX=y
|
||||
CONFIG_GREP=y
|
||||
CONFIG_FEATURE_GREP_EGREP_ALIAS=y
|
||||
CONFIG_FEATURE_GREP_FGREP_ALIAS=y
|
||||
CONFIG_FEATURE_GREP_CONTEXT=y
|
||||
CONFIG_XARGS=y
|
||||
CONFIG_FEATURE_XARGS_SUPPORT_QUOTES=y
|
||||
CONFIG_FEATURE_XARGS_SUPPORT_TERMOPT=y
|
||||
CONFIG_FEATURE_XARGS_SUPPORT_ZERO_TERM=y
|
||||
CONFIG_FEATURE_XARGS_SUPPORT_REPL_STR=y
|
||||
CONFIG_HALT=y
|
||||
CONFIG_TELINIT_PATH=""
|
||||
CONFIG_INIT=y
|
||||
CONFIG_FEATURE_USE_INITTAB=y
|
||||
CONFIG_FEATURE_KILL_REMOVED=y
|
||||
CONFIG_FEATURE_KILL_DELAY=0
|
||||
CONFIG_FEATURE_INIT_SCTTY=y
|
||||
CONFIG_FEATURE_INIT_SYSLOG=y
|
||||
CONFIG_FEATURE_EXTRA_QUIET=y
|
||||
CONFIG_FEATURE_INITRD=y
|
||||
CONFIG_INIT_TERMINAL_TYPE="linux"
|
||||
CONFIG_MESG=y
|
||||
CONFIG_FEATURE_MESG_ENABLE_ONLY_GROUP=y
|
||||
CONFIG_FEATURE_SHADOWPASSWDS=y
|
||||
CONFIG_USE_BB_CRYPT=y
|
||||
CONFIG_ADDUSER=y
|
||||
CONFIG_LAST_ID=60000
|
||||
CONFIG_FIRST_SYSTEM_ID=100
|
||||
CONFIG_LAST_SYSTEM_ID=999
|
||||
CONFIG_ADDGROUP=y
|
||||
CONFIG_DELUSER=y
|
||||
CONFIG_DELGROUP=y
|
||||
CONFIG_GETTY=y
|
||||
CONFIG_LOGIN=y
|
||||
CONFIG_FEATURE_NOLOGIN=y
|
||||
CONFIG_FEATURE_SECURETTY=y
|
||||
CONFIG_PASSWD=y
|
||||
CONFIG_FEATURE_PASSWD_WEAK_CHECK=y
|
||||
CONFIG_FEATURE_DEFAULT_PASSWD_ALGO="des"
|
||||
CONFIG_SU=y
|
||||
CONFIG_FEATURE_SU_SYSLOG=y
|
||||
CONFIG_FEATURE_SU_CHECKS_SHELLS=y
|
||||
CONFIG_SULOGIN=y
|
||||
CONFIG_VLOCK=y
|
||||
CONFIG_CHATTR=y
|
||||
CONFIG_FSCK=y
|
||||
CONFIG_LSATTR=y
|
||||
CONFIG_DEFAULT_MODULES_DIR=""
|
||||
CONFIG_DEFAULT_DEPMOD_FILE=""
|
||||
CONFIG_FATATTR=y
|
||||
CONFIG_MOUNT=y
|
||||
CONFIG_FEATURE_MOUNT_FAKE=y
|
||||
CONFIG_FEATURE_MOUNT_VERBOSE=y
|
||||
CONFIG_FEATURE_MOUNT_HELPERS=y
|
||||
CONFIG_FEATURE_MOUNT_LABEL=y
|
||||
CONFIG_FEATURE_MOUNT_NFS=y
|
||||
CONFIG_FEATURE_MOUNT_CIFS=y
|
||||
CONFIG_FEATURE_MOUNT_FLAGS=y
|
||||
CONFIG_FEATURE_MOUNT_FSTAB=y
|
||||
CONFIG_FEATURE_MOUNT_OTHERTAB=y
|
||||
CONFIG_UEVENT=y
|
||||
CONFIG_DMESG=y
|
||||
CONFIG_FEATURE_DMESG_PRETTY=y
|
||||
CONFIG_FDFLUSH=y
|
||||
CONFIG_FDFORMAT=y
|
||||
CONFIG_FDISK=y
|
||||
CONFIG_FEATURE_FDISK_WRITABLE=y
|
||||
CONFIG_FEATURE_GPT_LABEL=y
|
||||
CONFIG_FEATURE_FDISK_ADVANCED=y
|
||||
CONFIG_FREERAMDISK=y
|
||||
CONFIG_GETOPT=y
|
||||
CONFIG_FEATURE_GETOPT_LONG=y
|
||||
CONFIG_HEXDUMP=y
|
||||
CONFIG_HWCLOCK=y
|
||||
CONFIG_FEATURE_HWCLOCK_LONG_OPTIONS=y
|
||||
CONFIG_FEATURE_HWCLOCK_ADJTIME_FHS=y
|
||||
CONFIG_IPCRM=y
|
||||
CONFIG_IPCS=y
|
||||
CONFIG_LOSETUP=y
|
||||
CONFIG_LSPCI=y
|
||||
CONFIG_LSUSB=y
|
||||
CONFIG_MKSWAP=y
|
||||
CONFIG_MORE=y
|
||||
CONFIG_PIVOT_ROOT=y
|
||||
CONFIG_RDATE=y
|
||||
CONFIG_READPROFILE=y
|
||||
CONFIG_SETARCH=y
|
||||
CONFIG_SWAPONOFF=y
|
||||
CONFIG_FEATURE_SWAPON_DISCARD=y
|
||||
CONFIG_SWITCH_ROOT=y
|
||||
CONFIG_UMOUNT=y
|
||||
CONFIG_FEATURE_UMOUNT_ALL=y
|
||||
CONFIG_FEATURE_MOUNT_LOOP=y
|
||||
CONFIG_FEATURE_MOUNT_LOOP_CREATE=y
|
||||
CONFIG_VOLUMEID=y
|
||||
CONFIG_FEATURE_VOLUMEID_BTRFS=y
|
||||
CONFIG_FEATURE_VOLUMEID_CRAMFS=y
|
||||
CONFIG_FEATURE_VOLUMEID_EXFAT=y
|
||||
CONFIG_FEATURE_VOLUMEID_EXT=y
|
||||
CONFIG_FEATURE_VOLUMEID_F2FS=y
|
||||
CONFIG_FEATURE_VOLUMEID_FAT=y
|
||||
CONFIG_FEATURE_VOLUMEID_HFS=y
|
||||
CONFIG_FEATURE_VOLUMEID_ISO9660=y
|
||||
CONFIG_FEATURE_VOLUMEID_JFS=y
|
||||
CONFIG_FEATURE_VOLUMEID_LINUXRAID=y
|
||||
CONFIG_FEATURE_VOLUMEID_LINUXSWAP=y
|
||||
CONFIG_FEATURE_VOLUMEID_LUKS=y
|
||||
CONFIG_FEATURE_VOLUMEID_NILFS=y
|
||||
CONFIG_FEATURE_VOLUMEID_NTFS=y
|
||||
CONFIG_FEATURE_VOLUMEID_OCFS2=y
|
||||
CONFIG_FEATURE_VOLUMEID_REISERFS=y
|
||||
CONFIG_FEATURE_VOLUMEID_ROMFS=y
|
||||
CONFIG_FEATURE_VOLUMEID_SYSV=y
|
||||
CONFIG_FEATURE_VOLUMEID_UDF=y
|
||||
CONFIG_FEATURE_VOLUMEID_XFS=y
|
||||
CONFIG_CROND=y
|
||||
CONFIG_FEATURE_CROND_DIR="/var/spool/cron"
|
||||
CONFIG_I2CGET=y
|
||||
CONFIG_I2CSET=y
|
||||
CONFIG_I2CDUMP=y
|
||||
CONFIG_I2CDETECT=y
|
||||
CONFIG_LESS=y
|
||||
CONFIG_FEATURE_LESS_MAXLINES=9999999
|
||||
CONFIG_FEATURE_LESS_BRACKETS=y
|
||||
CONFIG_FEATURE_LESS_FLAGS=y
|
||||
CONFIG_FEATURE_LESS_TRUNCATE=y
|
||||
CONFIG_FEATURE_LESS_REGEXP=y
|
||||
CONFIG_SETSERIAL=y
|
||||
CONFIG_FEATURE_BEEP_FREQ=0
|
||||
CONFIG_FEATURE_BEEP_LENGTH_MS=0
|
||||
CONFIG_CHRT=y
|
||||
CONFIG_CRONTAB=y
|
||||
CONFIG_DC=y
|
||||
CONFIG_DEVMEM=y
|
||||
CONFIG_LAST=y
|
||||
CONFIG_FEATURE_LAST_SMALL=y
|
||||
CONFIG_HDPARM=y
|
||||
CONFIG_FEATURE_HDPARM_GET_IDENTITY=y
|
||||
CONFIG_MAKEDEVS=y
|
||||
CONFIG_FEATURE_MAKEDEVS_TABLE=y
|
||||
CONFIG_MICROCOM=y
|
||||
CONFIG_MOUNTPOINT=y
|
||||
CONFIG_MT=y
|
||||
CONFIG_RUNLEVEL=y
|
||||
CONFIG_SETSID=y
|
||||
CONFIG_STRINGS=y
|
||||
CONFIG_TIME=y
|
||||
CONFIG_WATCHDOG=y
|
||||
CONFIG_NAMEIF=y
|
||||
CONFIG_PING=y
|
||||
CONFIG_FEATURE_FANCY_PING=y
|
||||
CONFIG_WGET=y
|
||||
CONFIG_FEATURE_WGET_STATUSBAR=y
|
||||
CONFIG_FEATURE_WGET_AUTHENTICATION=y
|
||||
CONFIG_FEATURE_WGET_LONG_OPTIONS=y
|
||||
CONFIG_FEATURE_WGET_TIMEOUT=y
|
||||
CONFIG_FEATURE_WGET_OPENSSL=y
|
||||
CONFIG_FEATURE_WGET_SSL_HELPER=y
|
||||
CONFIG_FEATURE_IPV6=y
|
||||
CONFIG_ARPING=y
|
||||
CONFIG_HOSTNAME=y
|
||||
CONFIG_IFCONFIG=y
|
||||
CONFIG_FEATURE_IFCONFIG_STATUS=y
|
||||
CONFIG_FEATURE_IFCONFIG_SLIP=y
|
||||
CONFIG_FEATURE_IFCONFIG_MEMSTART_IOADDR_IRQ=y
|
||||
CONFIG_FEATURE_IFCONFIG_HW=y
|
||||
CONFIG_IFUPDOWN=y
|
||||
CONFIG_IFUPDOWN_IFSTATE_PATH="/var/run/ifstate"
|
||||
CONFIG_FEATURE_IFUPDOWN_IP=y
|
||||
CONFIG_FEATURE_IFUPDOWN_IPV4=y
|
||||
CONFIG_FEATURE_IFUPDOWN_IPV6=y
|
||||
CONFIG_FEATURE_IFUPDOWN_MAPPING=y
|
||||
CONFIG_FEATURE_IP_ROUTE_DIR=""
|
||||
CONFIG_NETSTAT=y
|
||||
CONFIG_NSLOOKUP=y
|
||||
CONFIG_ROUTE=y
|
||||
CONFIG_TELNET=y
|
||||
CONFIG_FEATURE_TELNET_TTYPE=y
|
||||
CONFIG_FEATURE_TELNET_AUTOLOGIN=y
|
||||
CONFIG_DHCPD_LEASES_FILE=""
|
||||
CONFIG_UDHCPC=y
|
||||
CONFIG_FEATURE_UDHCPC_ARPING=y
|
||||
CONFIG_FEATURE_UDHCPC_SANITIZEOPT=y
|
||||
CONFIG_UDHCP_DEBUG=0
|
||||
CONFIG_FEATURE_UDHCP_8021Q=y
|
||||
CONFIG_UDHCPC_DEFAULT_SCRIPT="/usr/share/udhcpc/default.script"
|
||||
CONFIG_UDHCPC_SLACK_FOR_BUGGY_SERVERS=80
|
||||
CONFIG_IFUPDOWN_UDHCPC_CMD_OPTIONS="-R -n"
|
||||
CONFIG_FEATURE_MIME_CHARSET=""
|
||||
CONFIG_LSOF=y
|
||||
CONFIG_TOP=y
|
||||
CONFIG_FEATURE_TOP_CPU_USAGE_PERCENTAGE=y
|
||||
CONFIG_FEATURE_TOP_CPU_GLOBAL_PERCENTS=y
|
||||
CONFIG_UPTIME=y
|
||||
CONFIG_FREE=y
|
||||
CONFIG_FUSER=y
|
||||
CONFIG_KILL=y
|
||||
CONFIG_KILLALL=y
|
||||
CONFIG_KILLALL5=y
|
||||
CONFIG_PIDOF=y
|
||||
CONFIG_FEATURE_PIDOF_SINGLE=y
|
||||
CONFIG_FEATURE_PIDOF_OMIT=y
|
||||
CONFIG_PS=y
|
||||
CONFIG_RENICE=y
|
||||
CONFIG_BB_SYSCTL=y
|
||||
CONFIG_WATCH=y
|
||||
CONFIG_SV_DEFAULT_SERVICE_DIR=""
|
||||
CONFIG_ASH=y
|
||||
CONFIG_ASH_BASH_COMPAT=y
|
||||
CONFIG_ASH_IDLE_TIMEOUT=y
|
||||
CONFIG_ASH_JOB_CONTROL=y
|
||||
CONFIG_ASH_ALIAS=y
|
||||
CONFIG_ASH_GETOPTS=y
|
||||
CONFIG_ASH_BUILTIN_ECHO=y
|
||||
CONFIG_ASH_BUILTIN_PRINTF=y
|
||||
CONFIG_ASH_BUILTIN_TEST=y
|
||||
CONFIG_ASH_HELP=y
|
||||
CONFIG_ASH_CMDCMD=y
|
||||
CONFIG_ASH_OPTIMIZE_FOR_SIZE=y
|
||||
CONFIG_ASH_RANDOM_SUPPORT=y
|
||||
CONFIG_ASH_EXPAND_PRMT=y
|
||||
CONFIG_FEATURE_SH_IS_ASH=y
|
||||
CONFIG_FEATURE_BASH_IS_NONE=y
|
||||
CONFIG_SH_MATH_SUPPORT=y
|
||||
CONFIG_FEATURE_SH_EXTRA_QUIET=y
|
||||
CONFIG_SYSLOGD=y
|
||||
CONFIG_FEATURE_ROTATE_LOGFILE=y
|
||||
CONFIG_FEATURE_REMOTE_LOG=y
|
||||
CONFIG_FEATURE_SYSLOGD_READ_BUFFER_SIZE=256
|
||||
CONFIG_FEATURE_IPC_SYSLOG_BUFFER_SIZE=0
|
||||
CONFIG_KLOGD=y
|
||||
CONFIG_FEATURE_KLOGD_KLOGCTL=y
|
||||
CONFIG_LOGGER=y
|
88
conf/linux.config
Normal file
88
conf/linux.config
Normal file
@ -0,0 +1,88 @@
|
||||
CONFIG_KERNEL_LZMA=y
|
||||
CONFIG_HYPERVISOR_GUEST=y
|
||||
CONFIG_PARAVIRT=y
|
||||
CONFIG_X86_GENERIC=y
|
||||
# CONFIG_SUSPEND is not set
|
||||
CONFIG_INTEL_IDLE=y
|
||||
CONFIG_PCI_MSI=y
|
||||
CONFIG_NET=y
|
||||
CONFIG_PACKET=y
|
||||
CONFIG_UNIX=y
|
||||
CONFIG_INET=y
|
||||
CONFIG_IP_MULTICAST=y
|
||||
CONFIG_IP_PNP=y
|
||||
CONFIG_IP_PNP_DHCP=y
|
||||
CONFIG_SYN_COOKIES=y
|
||||
# CONFIG_WIRELESS is not set
|
||||
CONFIG_DEVTMPFS=y
|
||||
CONFIG_DEVTMPFS_MOUNT=y
|
||||
CONFIG_VIRTIO_BLK=y
|
||||
CONFIG_SCSI=y
|
||||
CONFIG_BLK_DEV_SD=y
|
||||
CONFIG_CHR_DEV_SG=y
|
||||
CONFIG_SCSI_VIRTIO=y
|
||||
CONFIG_NETDEVICES=y
|
||||
CONFIG_VIRTIO_NET=y
|
||||
# CONFIG_ETHERNET is not set
|
||||
# CONFIG_WLAN is not set
|
||||
CONFIG_SERIAL_8250=y
|
||||
CONFIG_SERIAL_8250_CONSOLE=y
|
||||
CONFIG_VIRTIO_CONSOLE=y
|
||||
# CONFIG_HW_RANDOM_INTEL is not set
|
||||
# CONFIG_HW_RANDOM_AMD is not set
|
||||
# CONFIG_HW_RANDOM_GEODE is not set
|
||||
# CONFIG_HW_RANDOM_VIA is not set
|
||||
CONFIG_HW_RANDOM_VIRTIO=y
|
||||
# CONFIG_USB_SUPPORT is not set
|
||||
CONFIG_VIRT_DRIVERS=y
|
||||
CONFIG_VIRTIO_PCI=y
|
||||
CONFIG_VIRTIO_BALLOON=y
|
||||
CONFIG_VIRTIO_INPUT=y
|
||||
CONFIG_VIRTIO_MMIO=y
|
||||
CONFIG_VIRTIO_MMIO_CMDLINE_DEVICES=y
|
||||
# CONFIG_X86_PLATFORM_DEVICES is not set
|
||||
CONFIG_EXT2_FS=y
|
||||
CONFIG_EXT2_FS_XATTR=y
|
||||
CONFIG_EXT2_FS_POSIX_ACL=y
|
||||
CONFIG_EXT2_FS_SECURITY=y
|
||||
CONFIG_TMPFS=y
|
||||
# CONFIG_MISC_FILESYSTEMS is not set
|
||||
CONFIG_NFS_FS=y
|
||||
CONFIG_NFS_V3_ACL=y
|
||||
CONFIG_NFS_V4=y
|
||||
CONFIG_NFS_V4_1=y
|
||||
CONFIG_NFS_V4_2=y
|
||||
CONFIG_NFS_V4_1_IMPLEMENTATION_ID_DOMAIN="localdomain"
|
||||
CONFIG_NFS_V4_1_MIGRATION=y
|
||||
CONFIG_NFSD=y
|
||||
CONFIG_NFSD_V3_ACL=y
|
||||
CONFIG_NFSD_V4=y
|
||||
CONFIG_NFSD_PNFS=y
|
||||
CONFIG_SUNRPC_DEBUG=y
|
||||
CONFIG_CIFS=y
|
||||
CONFIG_CIFS_WEAK_PW_HASH=y
|
||||
CONFIG_CIFS_UPCALL=y
|
||||
CONFIG_CIFS_XATTR=y
|
||||
CONFIG_CIFS_POSIX=y
|
||||
CONFIG_CIFS_ACL=y
|
||||
# CONFIG_CIFS_DEBUG is not set
|
||||
CONFIG_CIFS_DFS_UPCALL=y
|
||||
CONFIG_CIFS_SMB2=y
|
||||
CONFIG_CIFS_SMB311=y
|
||||
CONFIG_CIFS_FSCACHE=y
|
||||
CONFIG_NLS_CODEPAGE_437=y
|
||||
CONFIG_NLS_CODEPAGE_850=y
|
||||
CONFIG_NLS_ASCII=y
|
||||
CONFIG_NLS_ISO8859_1=y
|
||||
CONFIG_NLS_UTF8=y
|
||||
# CONFIG_UNUSED_SYMBOLS is not set
|
||||
# CONFIG_X86_VERBOSE_BOOTUP is not set
|
||||
CONFIG_CRYPTO_AUTHENC=y
|
||||
CONFIG_CRYPTO_CCM=y
|
||||
CONFIG_CRYPTO_GCM=y
|
||||
CONFIG_CRYPTO_CBC=y
|
||||
CONFIG_CRYPTO_CTS=y
|
||||
CONFIG_CRYPTO_CRC32C=y
|
||||
CONFIG_CRYPTO_SHA1=y
|
||||
CONFIG_CRYPTO_SHA512=y
|
||||
CONFIG_CRC16=y
|
120
conf/uclibc.config
Normal file
120
conf/uclibc.config
Normal file
@ -0,0 +1,120 @@
|
||||
TARGET_i386=y
|
||||
TARGET_ARCH="i386"
|
||||
FORCE_OPTIONS_FOR_ARCH=y
|
||||
CONFIG_686=y
|
||||
TARGET_SUBARCH="i686"
|
||||
ARCH_HAS_DEPRECATED_SYSCALLS=y
|
||||
ARCH_LITTLE_ENDIAN=y
|
||||
ARCH_HAS_MMU=y
|
||||
ARCH_USE_MMU=y
|
||||
UCLIBC_HAS_FLOATS=y
|
||||
UCLIBC_HAS_FPU=y
|
||||
DO_C99_MATH=y
|
||||
UCLIBC_HAS_LONG_DOUBLE_MATH=y
|
||||
HAVE_DOT_CONFIG=y
|
||||
DOPIC=y
|
||||
ARCH_HAS_UCONTEXT=y
|
||||
HAVE_SHARED=y
|
||||
LDSO_LDD_SUPPORT=y
|
||||
LDSO_PRELOAD_ENV_SUPPORT=y
|
||||
LDSO_RUNPATH=y
|
||||
LDSO_RUNPATH_OF_EXECUTABLE=y
|
||||
LDSO_SAFE_RUNPATH=y
|
||||
LDSO_SEARCH_INTERP_PATH=y
|
||||
LDSO_LD_LIBRARY_PATH=y
|
||||
UCLIBC_CTOR_DTOR=y
|
||||
UCLIBC_HAS_THREADS_NATIVE=y
|
||||
UCLIBC_HAS_THREADS=y
|
||||
UCLIBC_HAS_TLS=y
|
||||
UCLIBC_HAS_SYSLOG=y
|
||||
UCLIBC_HAS_LFS=y
|
||||
MALLOC_STANDARD=y
|
||||
MALLOC_GLIBC_COMPAT=y
|
||||
UCLIBC_HAS_OBSTACK=y
|
||||
UCLIBC_DYNAMIC_ATEXIT=y
|
||||
UCLIBC_HAS_UTMPX=y
|
||||
UCLIBC_HAS_UTMP=y
|
||||
UCLIBC_SUSV2_LEGACY=y
|
||||
UCLIBC_SUSV3_LEGACY=y
|
||||
UCLIBC_HAS_CONTEXT_FUNCS=y
|
||||
UCLIBC_SUSV4_LEGACY=y
|
||||
UCLIBC_HAS_SHADOW=y
|
||||
UCLIBC_HAS_PROGRAM_INVOCATION_NAME=y
|
||||
UCLIBC_HAS___PROGNAME=y
|
||||
UCLIBC_HAS_PTY=y
|
||||
ASSUME_DEVPTS=y
|
||||
UNIX98PTY_ONLY=y
|
||||
UCLIBC_HAS_GETPT=y
|
||||
UCLIBC_HAS_LIBUTIL=y
|
||||
UCLIBC_HAS_TM_EXTENSIONS=y
|
||||
UCLIBC_HAS_TZ_CACHING=y
|
||||
UCLIBC_HAS_TZ_FILE=y
|
||||
UCLIBC_HAS_TZ_FILE_READ_MANY=y
|
||||
UCLIBC_TZ_FILE_PATH="/etc/TZ"
|
||||
UCLIBC_FALLBACK_TO_ETC_LOCALTIME=y
|
||||
UCLIBC_PWD_BUFFER_SIZE=256
|
||||
UCLIBC_GRP_BUFFER_SIZE=256
|
||||
UCLIBC_LINUX_MODULE_26=y
|
||||
UCLIBC_LINUX_SPECIFIC=y
|
||||
UCLIBC_HAS_GNU_ERROR=y
|
||||
UCLIBC_BSD_SPECIFIC=y
|
||||
UCLIBC_HAS_BSD_ERR=y
|
||||
UCLIBC_HAS_OBSOLETE_BSD_SIGNAL=y
|
||||
UCLIBC_HAS_REALTIME=y
|
||||
UCLIBC_HAS_ADVANCED_REALTIME=y
|
||||
UCLIBC_HAS_EPOLL=y
|
||||
UCLIBC_HAS_XATTR=y
|
||||
UCLIBC_HAS_PROFILING=y
|
||||
UCLIBC_HAS_CRYPT_IMPL=y
|
||||
UCLIBC_HAS_CRYPT=y
|
||||
UCLIBC_HAS_NETWORK_SUPPORT=y
|
||||
UCLIBC_HAS_SOCKET=y
|
||||
UCLIBC_HAS_IPV4=y
|
||||
UCLIBC_HAS_IPV6=y
|
||||
UCLIBC_HAS_RPC=y
|
||||
UCLIBC_HAS_FULL_RPC=y
|
||||
UCLIBC_HAS_REENTRANT_RPC=y
|
||||
UCLIBC_USE_NETLINK=y
|
||||
UCLIBC_SUPPORT_AI_ADDRCONFIG=y
|
||||
UCLIBC_HAS_COMPAT_RES_STATE=y
|
||||
UCLIBC_HAS_RESOLVER_SUPPORT=y
|
||||
UCLIBC_HAS_LIBRESOLV_STUB=y
|
||||
UCLIBC_HAS_LIBNSL_STUB=y
|
||||
UCLIBC_HAS_STRING_GENERIC_OPT=y
|
||||
UCLIBC_HAS_STRING_ARCH_OPT=y
|
||||
UCLIBC_HAS_STDIO_FUTEXES=y
|
||||
UCLIBC_HAS_CTYPE_TABLES=y
|
||||
UCLIBC_HAS_CTYPE_SIGNED=y
|
||||
UCLIBC_HAS_CTYPE_CHECKED=y
|
||||
UCLIBC_HAS_WCHAR=y
|
||||
UCLIBC_HAS_HEXADECIMAL_FLOATS=y
|
||||
UCLIBC_HAS_GLIBC_CUSTOM_PRINTF=y
|
||||
UCLIBC_PRINTF_SCANF_POSITIONAL_ARGS=9
|
||||
UCLIBC_HAS_STDIO_BUFSIZ_4096=y
|
||||
UCLIBC_HAS_STDIO_BUILTIN_BUFFER_NONE=y
|
||||
UCLIBC_HAS_STDIO_GETC_MACRO=y
|
||||
UCLIBC_HAS_STDIO_PUTC_MACRO=y
|
||||
UCLIBC_HAS_STDIO_AUTO_RW_TRANSITION=y
|
||||
UCLIBC_HAS_FOPEN_EXCLUSIVE_MODE=y
|
||||
UCLIBC_HAS_GLIBC_CUSTOM_STREAMS=y
|
||||
UCLIBC_HAS_PRINTF_M_SPEC=y
|
||||
UCLIBC_HAS_ERRNO_MESSAGES=y
|
||||
UCLIBC_HAS_SIGNUM_MESSAGES=y
|
||||
UCLIBC_HAS_GNU_GETOPT=y
|
||||
UCLIBC_HAS_GETOPT_LONG=y
|
||||
UCLIBC_HAS_GNU_GETSUBOPT=y
|
||||
UCLIBC_HAS_REGEX=y
|
||||
UCLIBC_HAS_FNMATCH=y
|
||||
UCLIBC_HAS_NFTW=y
|
||||
UCLIBC_HAS_FTW=y
|
||||
UCLIBC_HAS_GLOB=y
|
||||
UCLIBC_HAS_GNU_GLOB=y
|
||||
RUNTIME_PREFIX="/"
|
||||
DEVEL_PREFIX="/usr"
|
||||
MULTILIB_DIR="lib"
|
||||
HARDWIRED_ABSPATH=y
|
||||
UCLIBC_BUILD_RELRO=y
|
||||
UCLIBC_BUILD_NOW=y
|
||||
UCLIBC_BUILD_NOEXECSTACK=y
|
||||
UCLIBC_EXTRA_CFLAGS=""
|
||||
WARNINGS="-Wall"
|
47
doc/configuring.txt
Normal file
47
doc/configuring.txt
Normal file
@ -0,0 +1,47 @@
|
||||
|
||||
== Changing Configuration ==
|
||||
|
||||
There are 6 config files which you might want to update. They are
|
||||
all stored in the conf directory and buildroot has make targets
|
||||
which let you modify them using the builtin menus programs
|
||||
included with those programs.
|
||||
|
||||
=== Buildroot ===
|
||||
|
||||
NAME=client # or "server" or "debug"
|
||||
|
||||
cd buildroot
|
||||
cp ../conf/buildroot-${NAME}.config configs/manila_${NAME}_defconfig
|
||||
make O=../output-${NAME} manila_${NAME}_defconfig
|
||||
rm configs/manila_${NAME}_defconfig
|
||||
make O=../output-${NAME} xconfig
|
||||
make O=../output-${NAME} savedefconfig BR2_DEFCONFIG=../conf/buildroot-${NAME}.config
|
||||
|
||||
=== Busybox ===
|
||||
|
||||
cd buildroot
|
||||
cp ../conf/buildroot.config configs/manila_defconfig
|
||||
make O=../output manila_defconfig
|
||||
rm configs/manila_defconfig
|
||||
make O=../output busybox-menuconfig
|
||||
make O=../output busybox-update-config
|
||||
sed -i 's/#.*//;/^[[:blank:]]*$/d' ../conf/busybox.config
|
||||
|
||||
=== uClibc ===
|
||||
|
||||
cd buildroot
|
||||
cp ../conf/buildroot.config configs/manila_defconfig
|
||||
make O=../output manila_defconfig
|
||||
rm configs/manila_defconfig
|
||||
make O=../output uclibc-menuconfig
|
||||
make O=../output uclibc-update-config
|
||||
sed -i 's/#.*//;/^[[:blank:]]*$/d;/^KERNEL_HEADERS=/d;/^CROSS_COMPILER_PREFIX=/d' ../conf/uclibc.config
|
||||
|
||||
=== Linux ===
|
||||
|
||||
cd buildroot
|
||||
cp ../conf/buildroot.config configs/manila_defconfig
|
||||
make O=../output manila_defconfig
|
||||
rm configs/manila_defconfig
|
||||
make O=../output linux-menuconfig
|
||||
make O=../output linux-update-defconfig
|
157
doc/testing.txt
Normal file
157
doc/testing.txt
Normal file
@ -0,0 +1,157 @@
|
||||
|
||||
##### Fedora #####
|
||||
|
||||
alias virsh="virsh --connect qemu:///system"
|
||||
|
||||
##### To create the test environment #####
|
||||
|
||||
# Update these as needed
|
||||
CLIENT_QCOW=$PWD/client.qcow2
|
||||
SERVER_QCOW=$PWD/server.qcow2
|
||||
|
||||
cat << EOF > /tmp/manila-test-net.xml
|
||||
<network>
|
||||
<name>manila-test-net</name>
|
||||
<mac address='52:54:00:00:32:01'/>
|
||||
<domain name='manila-testnet'/>
|
||||
<ip address='192.168.32.1' netmask='255.255.255.0'>
|
||||
<dhcp>
|
||||
<range start='192.168.32.2' end='192.168.32.10'/>
|
||||
<host mac='52:54:00:00:32:02' name='server' ip='192.168.32.2'/>
|
||||
<host mac='52:54:00:00:32:03' name='client' ip='192.168.32.3'/>
|
||||
</dhcp>
|
||||
</ip>
|
||||
</network>
|
||||
EOF
|
||||
|
||||
virsh net-define /tmp/manila-test-net.xml
|
||||
|
||||
cat << EOF > /tmp/manila-test-client.xml
|
||||
<domain type='kvm'>
|
||||
<name>manila-test-client</name>
|
||||
<memory unit='MiB'>64</memory>
|
||||
<currentMemory unit='MiB'>64</currentMemory>
|
||||
<vcpu>1</vcpu>
|
||||
<os>
|
||||
<type arch='x86_64'>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/>
|
||||
<apic/>
|
||||
</features>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<devices>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu' type='qcow2'/>
|
||||
<source file='$CLIENT_QCOW'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
</disk>
|
||||
<interface type='network'>
|
||||
<mac address='52:54:00:00:32:03'/>
|
||||
<source network='manila-test-net'/>
|
||||
<model type='virtio'/>
|
||||
</interface>
|
||||
<serial type='pty'>
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='pty'>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<graphics type='vnc' port='-1' autoport='yes'/>
|
||||
<video>
|
||||
<model type='vmvga' vram='1024' heads='1'/>
|
||||
</video>
|
||||
</devices>
|
||||
</domain>
|
||||
EOF
|
||||
|
||||
virsh define /tmp/manila-test-client.xml
|
||||
|
||||
cat << EOF > /tmp/manila-test-server.xml
|
||||
<domain type='kvm'>
|
||||
<name>manila-test-server</name>
|
||||
<memory unit='MiB'>128</memory>
|
||||
<currentMemory unit='MiB'>128</currentMemory>
|
||||
<vcpu>1</vcpu>
|
||||
<os>
|
||||
<type arch='x86_64'>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<features>
|
||||
<acpi/>
|
||||
<apic/>
|
||||
</features>
|
||||
<on_poweroff>destroy</on_poweroff>
|
||||
<on_reboot>restart</on_reboot>
|
||||
<on_crash>restart</on_crash>
|
||||
<devices>
|
||||
<disk type='file' device='disk'>
|
||||
<driver name='qemu' type='qcow2'/>
|
||||
<source file='$SERVER_QCOW'/>
|
||||
<target dev='vda' bus='virtio'/>
|
||||
</disk>
|
||||
<interface type='network'>
|
||||
<mac address='52:54:00:00:32:02'/>
|
||||
<source network='manila-test-net'/>
|
||||
<model type='virtio'/>
|
||||
</interface>
|
||||
<serial type='pty'>
|
||||
<target port='0'/>
|
||||
</serial>
|
||||
<console type='pty'>
|
||||
<target type='serial' port='0'/>
|
||||
</console>
|
||||
<graphics type='vnc' port='-1' autoport='yes'/>
|
||||
<video>
|
||||
<model type='vmvga' vram='1024' heads='1'/>
|
||||
</video>
|
||||
</devices>
|
||||
</domain>
|
||||
EOF
|
||||
|
||||
virsh define /tmp/manila-test-server.xml
|
||||
|
||||
##### To start the test environment #####
|
||||
|
||||
virsh net-start manila-test-net
|
||||
virsh start manila-test-server
|
||||
virsh start manila-test-client
|
||||
|
||||
##### To run basic tests #####
|
||||
|
||||
export SSHPASS=root
|
||||
SSH="sshpass -e ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
|
||||
|
||||
$SSH root@192.168.32.3 << EOF
|
||||
umask 2
|
||||
mkdir -p /mnt/nfs3 /mnt/nfs4 /mnt/cifs
|
||||
mount -t nfs -o vers=3 192.168.32.2:/share /mnt/nfs3
|
||||
mount.nfs4 192.168.32.2:/share /mnt/nfs4
|
||||
mount -t cifs -o username=guest //192.168.32.2/share /mnt/cifs
|
||||
echo Hello NFS3 > /mnt/nfs3/test3
|
||||
echo Hello NFS4 > /mnt/nfs4/test4
|
||||
echo Hello CIFS > /mnt/cifs/test
|
||||
cat /mnt/nfs3/test3
|
||||
cat /mnt/nfs4/test4
|
||||
cat /mnt/cifs/test
|
||||
umount /mnt/nfs3
|
||||
umount /mnt/nfs4
|
||||
umount /mnt/cifs
|
||||
EOF
|
||||
|
||||
$SSH root@192.168.32.2 cat /share/*
|
||||
|
||||
##### To stop the test environment #####
|
||||
|
||||
virsh destroy manila-test-server
|
||||
virsh destroy manila-test-client
|
||||
virsh net-destroy manila-test-net
|
||||
|
||||
##### To clean up test environment #####
|
||||
|
||||
virsh undefine manila-test-server
|
||||
virsh undefine manila-test-client
|
||||
virsh net-undefine manila-test-net
|
80
make-bootable-disk.sh
Executable file
80
make-bootable-disk.sh
Executable file
@ -0,0 +1,80 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright 2016 (C) NetApp, Inc.
|
||||
# Author: Ben Swartzlander <ben@swartzlander.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
DISK_NAME=$1
|
||||
BR_OUTPUT=output-$1
|
||||
|
||||
if [ -z "$DISK_NAME" ]
|
||||
then
|
||||
echo Specify disk name
|
||||
exit 2
|
||||
fi
|
||||
|
||||
SIZE=120m
|
||||
DISK_QCOW=$DISK_NAME.qcow2
|
||||
TEMP_QCOW=/tmp/temp.qcow2
|
||||
NBD=/dev/nbd0
|
||||
PART=${NBD}p1
|
||||
MOUNT=/mnt/tmp
|
||||
|
||||
echo Creating temp qcow2
|
||||
rm -f $TEMP_QCOW
|
||||
qemu-img create -f qcow2 $TEMP_QCOW $SIZE
|
||||
|
||||
echo Loading NBD module
|
||||
sudo modprobe nbd max_part=15
|
||||
|
||||
echo Creating NBD from qcow2
|
||||
sudo qemu-nbd -c $NBD -f qcow2 $TEMP_QCOW
|
||||
|
||||
echo Writing partition table
|
||||
sudo parted -s $NBD -- mklabel msdos mkpart primary ext2 4MiB -1s set 1 boot on
|
||||
|
||||
echo Copying boot block
|
||||
sudo dd if=$BR_OUTPUT/images/syslinux/mbr.bin of=$NBD bs=440 count=1
|
||||
|
||||
echo Creating filesystem
|
||||
sudo mkfs.ext2 -L root -E nodiscard $PART
|
||||
|
||||
echo Mounting filesystem
|
||||
sudo mkdir -p $MOUNT
|
||||
sudo mount $PART $MOUNT
|
||||
|
||||
echo Writing root FS
|
||||
sudo tar -C $MOUNT -xf $BR_OUTPUT/images/rootfs.tar
|
||||
|
||||
echo Installing syslinux
|
||||
sudo $BR_OUTPUT/host/sbin/extlinux -z --install $MOUNT/boot
|
||||
|
||||
if [ $DISK_NAME = server ]
|
||||
then
|
||||
echo Creating share dir
|
||||
SHARE_DIR=$MOUNT/share
|
||||
sudo mkdir -p $SHARE_DIR
|
||||
sudo chmod 770 $SHARE_DIR
|
||||
sudo chown 99:99 $SHARE_DIR
|
||||
fi
|
||||
|
||||
echo Unmounting filesystem
|
||||
sudo umount $MOUNT
|
||||
|
||||
echo Deleting NBD
|
||||
sudo qemu-nbd -d $NBD
|
||||
|
||||
echo Unloading NBD module
|
||||
sudo rmmod nbd
|
||||
|
||||
echo Compressing qcow2
|
||||
rm -f $DISK_QCOW
|
||||
qemu-img convert -c -f qcow2 -O qcow2 $TEMP_QCOW $DISK_QCOW
|
||||
rm -f $TEMP_QCOW
|
||||
|
||||
ls -lh $DISK_QCOW
|
||||
|
||||
echo Done
|
31
patches/bootloader-alignment-fix.patch
Normal file
31
patches/bootloader-alignment-fix.patch
Normal file
@ -0,0 +1,31 @@
|
||||
This patch fixes a linker aligmnent bug which occurs with recent
|
||||
versions of GCC.
|
||||
|
||||
Index: buildroot/boot/syslinux/0001-gcc-alignment.patch
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ buildroot/boot/syslinux/0001-gcc-alignment.patch 2016-09-23 21:41:25.765834379 -0400
|
||||
@@ -0,0 +1,22 @@
|
||||
+
|
||||
+Index: core/i386/syslinux.ld
|
||||
+===================================================================
|
||||
+--- a/core/i386/syslinux.ld 2016-09-23 21:36:47.846326935 -0400
|
||||
++++ b/core/i386/syslinux.ld 2016-09-23 21:36:47.846326935 -0400
|
||||
+@@ -266,7 +266,7 @@
|
||||
+ __text_end = .;
|
||||
+ }
|
||||
+
|
||||
+- . = ALIGN(16);
|
||||
++ . = ALIGN(32);
|
||||
+
|
||||
+ __rodata_vma = .;
|
||||
+ __rodata_lma = __rodata_vma + __text_lma - __text_vma;
|
||||
+@@ -361,7 +361,7 @@
|
||||
+ __dynamic_end = .;
|
||||
+ }
|
||||
+
|
||||
+- . = ALIGN(16);
|
||||
++ . = ALIGN(32);
|
||||
+
|
||||
+ __data_vma = .;
|
||||
+ __data_lma = __data_vma + __text_lma - __text_vma;
|
219
patches/nfs-utils-enable-nfsv4.patch
Normal file
219
patches/nfs-utils-enable-nfsv4.patch
Normal file
@ -0,0 +1,219 @@
|
||||
This patch adds the libnfsidmap package to buildroot, which
|
||||
is required for NFSv4.
|
||||
|
||||
Index: buildroot/package/Config.in
|
||||
===================================================================
|
||||
--- buildroot.orig/package/Config.in 2016-03-01 15:47:30.000000000 -0500
|
||||
+++ buildroot/package/Config.in 2016-05-23 22:53:39.675616052 -0400
|
||||
@@ -1098,6 +1098,7 @@
|
||||
source "package/libnetfilter_log/Config.in"
|
||||
source "package/libnetfilter_queue/Config.in"
|
||||
source "package/libnfnetlink/Config.in"
|
||||
+ source "package/libnfsidmap/Config.in"
|
||||
source "package/libnftnl/Config.in"
|
||||
source "package/libnice/Config.in"
|
||||
source "package/libnl/Config.in"
|
||||
Index: buildroot/package/libnfsidmap/Config.in
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ buildroot/package/libnfsidmap/Config.in 2016-05-24 14:05:59.464401417 -0400
|
||||
@@ -0,0 +1,6 @@
|
||||
+config BR2_PACKAGE_LIBNFSIDMAP
|
||||
+ bool "libnfsidmap"
|
||||
+ help
|
||||
+ Library used by the NFSv4 server to do userid mapping.
|
||||
+
|
||||
+ http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap
|
||||
Index: buildroot/package/libnfsidmap/libnfsidmap.mk
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ buildroot/package/libnfsidmap/libnfsidmap.mk 2016-05-24 14:07:41.559984998 -0400
|
||||
@@ -0,0 +1,12 @@
|
||||
+#
|
||||
+# libnfsidmap
|
||||
+#
|
||||
+
|
||||
+LIBNFSIDMAP_VERSION = 0.25
|
||||
+LIBNFSIDMAP_SITE = http://www.citi.umich.edu/projects/nfsv4/linux/libnfsidmap
|
||||
+LIBNFSIDMAP_SOURCE = libnfsidmap-$(LIBNFSIDMAP_VERSION).tar.gz
|
||||
+LIBNFSIDMAP_INSTALL_STAGING = YES
|
||||
+LIBNFSIDMAP_LICENSE = BSD-like
|
||||
+LIBNFSIDMAP_LICENSE_FILES = COPYING
|
||||
+
|
||||
+$(eval $(autotools-package))
|
||||
Index: buildroot/package/nfs-utils/Config.in
|
||||
===================================================================
|
||||
--- buildroot.orig/package/nfs-utils/Config.in 2016-03-01 15:47:30.000000000 -0500
|
||||
+++ buildroot/package/nfs-utils/Config.in 2016-05-24 14:10:45.008236759 -0400
|
||||
@@ -1,3 +1,4 @@
|
||||
+
|
||||
comment "nfs-utils needs a toolchain w/ threads"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS
|
||||
@@ -34,4 +35,17 @@
|
||||
|
||||
endmenu
|
||||
|
||||
+config BR2_PACKAGE_NFS_UTILS_NFS4
|
||||
+ bool "NFSv4 support"
|
||||
+ depends on BR2_PACKAGE_NFS_UTILS
|
||||
+ select BR2_PACKAGE_LIBEVENT
|
||||
+ select BR2_PACKAGE_LIBNFSIDMAP
|
||||
+ help
|
||||
+ Support for NFSv4. Don't forget to enable the kernel facility
|
||||
+ also.
|
||||
+
|
||||
+
|
||||
+comment "nfs-utils requires a toolchain with RPC and LARGEFILE support"
|
||||
+ depends on !BR2_INET_RPC || !BR2_LARGEFILE
|
||||
+
|
||||
endif
|
||||
Index: buildroot/package/nfs-utils/etc-idmapd.conf
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ buildroot/package/nfs-utils/etc-idmapd.conf 2016-05-24 14:20:15.998907833 -0400
|
||||
@@ -0,0 +1,8 @@
|
||||
+[General]
|
||||
+Verbosity = 0
|
||||
+Pipefs-Directory = /var/lib/nfs/rpc_pipefs
|
||||
+Domain = localdomain
|
||||
+
|
||||
+[Mapping]
|
||||
+Nobody-User = nobody
|
||||
+Nobody-Group = nogroup
|
||||
Index: buildroot/package/nfs-utils/nfs-utils.mk
|
||||
===================================================================
|
||||
--- buildroot.orig/package/nfs-utils/nfs-utils.mk 2016-03-01 15:47:30.000000000 -0500
|
||||
+++ buildroot/package/nfs-utils/nfs-utils.mk 2016-05-24 14:23:23.223169584 -0400
|
||||
@@ -15,15 +15,19 @@
|
||||
NFS_UTILS_CONF_ENV = knfsd_cv_bsd_signals=no
|
||||
|
||||
NFS_UTILS_CONF_OPTS = \
|
||||
- --disable-nfsv4 \
|
||||
- --disable-nfsv41 \
|
||||
--disable-gss \
|
||||
--disable-uuid \
|
||||
- --disable-ipv6 \
|
||||
--without-tcp-wrappers \
|
||||
--with-statedir=/run/nfs \
|
||||
--with-rpcgen=internal
|
||||
|
||||
+ifeq ($(BR2_PACKAGE_LIBNFSIDMAP),y)
|
||||
+NFS_UTILS_DEPENDENCIES += libevent libnfsidmap lvm2 sqlite
|
||||
+NFS_UTILS_CONF_OPTS += --enable-nfsv4 --enable-nfsv41
|
||||
+else
|
||||
+NFS_UTILS_CONF_OPTS += --disable-nfsv4 --disable-nfsv41
|
||||
+endif
|
||||
+
|
||||
NFS_UTILS_TARGETS_$(BR2_PACKAGE_NFS_UTILS_RPCDEBUG) += usr/sbin/rpcdebug
|
||||
NFS_UTILS_TARGETS_$(BR2_PACKAGE_NFS_UTILS_RPC_LOCKD) += usr/sbin/rpc.lockd
|
||||
NFS_UTILS_TARGETS_$(BR2_PACKAGE_NFS_UTILS_RPC_RQUOTAD) += usr/sbin/rpc.rquotad
|
||||
@@ -48,7 +52,16 @@
|
||||
$(INSTALL) -D -m 644 \
|
||||
$(@D)/utils/mount/nfsmount.conf $(TARGET_DIR)/etc/nfsmount.conf
|
||||
endef
|
||||
+
|
||||
+define NFS_UTILS_INSTALL_IDMAPD_CONF
|
||||
+ $(INSTALL) -m 0644 package/nfs-utils/etc-idmapd.conf \
|
||||
+ $(TARGET_DIR)/etc/idmapd.conf
|
||||
+endef
|
||||
+
|
||||
NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_FIXUP
|
||||
+ifeq ($(BR2_PACKAGE_NFS_UTILS_NFS4),y)
|
||||
+ NFS_UTILS_POST_INSTALL_TARGET_HOOKS += NFS_UTILS_INSTALL_IDMAPD_CONF
|
||||
+endif
|
||||
|
||||
ifeq ($(BR2_INIT_SYSTEMD),y)
|
||||
NFS_UTILS_CONF_OPTS += --with-systemd=/usr/lib/systemd/system
|
||||
Index: buildroot/package/nfs-utils/S60nfs
|
||||
===================================================================
|
||||
--- buildroot.orig/package/nfs-utils/S60nfs 2016-03-01 15:47:30.000000000 -0500
|
||||
+++ buildroot/package/nfs-utils/S60nfs 2016-05-24 14:19:29.510097452 -0400
|
||||
@@ -3,11 +3,17 @@
|
||||
# nfs This shell script takes care of starting and stopping
|
||||
# the NFS services. Stolen from RedHat FC5.
|
||||
|
||||
+ENABLEv4=yes
|
||||
+
|
||||
[ -x /usr/sbin/rpc.statd ] || exit 0
|
||||
[ -x /usr/sbin/rpc.nfsd ] || exit 0
|
||||
[ -x /usr/sbin/rpc.mountd ] || exit 0
|
||||
[ -x /usr/sbin/exportfs ] || exit 0
|
||||
|
||||
+if [ $ENABLEv4 == "yes" ]; then
|
||||
+ [ -x /usr/sbin/rpc.idmapd ] || exit 0
|
||||
+fi
|
||||
+
|
||||
mkdir -p /var/lock/subsys
|
||||
mkdir -p /run/nfs/sm
|
||||
mkdir -p /run/nfs/sm.bak
|
||||
@@ -20,12 +26,26 @@
|
||||
. "${CFG_FILE}"
|
||||
fi
|
||||
|
||||
+if [ $ENABLEv4 == "yes" ]; then
|
||||
+ pipefs_dir="`sed -n 's/^ *Pipefs-Directory *= *//p' /etc/idmapd.conf`"
|
||||
+fi
|
||||
+
|
||||
|
||||
start() {
|
||||
# Start daemons.
|
||||
+ if [ $ENABLEv4 == "yes" ]; then
|
||||
+ printf "Starting NFS idmapd: "
|
||||
+ [ -d /var/lib/nfs/v4recovery ] || mkdir -p /var/lib/nfs/v4recovery
|
||||
+ [ -d "$pipefs_dir" ] || mkdir -p "$pipefs_dir"
|
||||
+ if ! ( grep -q "on $pipefs_dir type rpc_pipefs" /proc/mounts ); then
|
||||
+ mount -t rpc_pipefs sunrpc "$pipefs_dir"
|
||||
+ fi
|
||||
+ rpc.idmapd
|
||||
+ echo "done"
|
||||
+ fi
|
||||
+
|
||||
printf "Starting NFS statd: "
|
||||
rpc.statd
|
||||
- touch /var/lock/subsys/nfslock
|
||||
echo "done"
|
||||
|
||||
printf "Starting NFS services: "
|
||||
@@ -39,11 +59,17 @@
|
||||
printf "Starting NFS mountd: "
|
||||
rpc.mountd
|
||||
echo "done"
|
||||
- touch /var/lock/subsys/nfs
|
||||
}
|
||||
|
||||
stop() {
|
||||
# Stop daemons.
|
||||
+ if [ $ENABLEv4 == "yes" ]; then
|
||||
+ printf "Shutting down NFS idmapd: "
|
||||
+ killall -q rpc.idmapd
|
||||
+ umount "$pipefs_dir"
|
||||
+ echo "done"
|
||||
+ fi
|
||||
+
|
||||
printf "Shutting down NFS mountd: "
|
||||
killall -q rpc.mountd
|
||||
echo "done"
|
||||
@@ -54,14 +80,12 @@
|
||||
|
||||
printf "Shutting down NFS services: "
|
||||
/usr/sbin/exportfs -au
|
||||
- rm -f /var/lock/subsys/nfs
|
||||
killall -q rpc.statd
|
||||
echo "done"
|
||||
|
||||
printf "Stopping NFS statd: "
|
||||
killall -q rpc.statd
|
||||
echo "done"
|
||||
- rm -f /var/lock/subsys/nfslock
|
||||
}
|
||||
|
||||
# See how we were called.
|
||||
@@ -78,7 +102,6 @@
|
||||
;;
|
||||
reload)
|
||||
/usr/sbin/exportfs -r
|
||||
- touch /var/lock/subsys/nfs
|
||||
;;
|
||||
*)
|
||||
echo "Usage: nfs {start|stop|reload}"
|
47
patches/samba4-fixes.patch
Normal file
47
patches/samba4-fixes.patch
Normal file
@ -0,0 +1,47 @@
|
||||
This patch fixes some thing which cause problems started up
|
||||
Samba. One of the changes prevents gnutls from using the new
|
||||
getrandom() syscall which blocks for a painfully long time.
|
||||
This reduces startup times from 90 seconds to 3 seconds.
|
||||
The other change alters the library path for samba to
|
||||
include /usr/lib/samba.
|
||||
|
||||
Index: buildroot/package/gnutls/0001-disable-getrandom.patch
|
||||
===================================================================
|
||||
--- /dev/null 1970-01-01 00:00:00.000000000 +0000
|
||||
+++ buildroot/package/gnutls/0001-disable-getrandom.patch 2016-06-03 16:25:15.793497305 -0400
|
||||
@@ -0,0 +1,16 @@
|
||||
+Index: gnutls-3.4.9/lib/nettle/rnd-common.c
|
||||
+===================================================================
|
||||
+--- gnutls-3.4.9.orig/lib/nettle/rnd-common.c 2016-06-03 23:03:07.143580523 -0400
|
||||
++++ gnutls-3.4.9/lib/nettle/rnd-common.c 2016-06-03 23:03:13.743547820 -0400
|
||||
+@@ -37,11 +37,6 @@
|
||||
+ #include <rnd-common.h>
|
||||
+ #include <hash-pjw-bare.h>
|
||||
+
|
||||
+-#if defined(HAVE_LINUX_GETRANDOM)
|
||||
+-# include <linux/random.h>
|
||||
+-# define getentropy(x, size) getrandom(x, size, 0)
|
||||
+-# define HAVE_GETENTROPY
|
||||
+-#endif
|
||||
+ #include <sys/types.h>
|
||||
+ #include <sys/stat.h>
|
||||
+ #include <unistd.h>
|
||||
|
||||
Index: buildroot/package/samba4/S91smb
|
||||
===================================================================
|
||||
--- buildroot.orig/package/samba4/S91smb 2016-03-01 15:47:30.000000000 -0500
|
||||
+++ buildroot/package/samba4/S91smb 2016-05-22 14:46:43.258631078 -0400
|
||||
@@ -6,11 +6,11 @@
|
||||
|
||||
start() {
|
||||
printf "Starting SMB services: "
|
||||
- smbd -D
|
||||
+ LD_LIBRARY_PATH=/usr/lib/samba smbd -D
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
|
||||
printf "Starting NMB services: "
|
||||
- nmbd -D
|
||||
+ LD_LIBRARY_PATH=/usr/lib/samba nmbd -D
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
}
|
||||
|
3
patches/series
Normal file
3
patches/series
Normal file
@ -0,0 +1,3 @@
|
||||
nfs-utils-enable-nfsv4.patch
|
||||
samba4-fixes.patch
|
||||
bootloader-alignment-fix.patch
|
77
run-buildroot.sh
Executable file
77
run-buildroot.sh
Executable file
@ -0,0 +1,77 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# Copyright 2016 (C) NetApp, Inc.
|
||||
# Author: Ben Swartzlander <ben@swartzlander.org>
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
|
||||
VERSION=2016.02
|
||||
FILENAME=buildroot-${VERSION}.tar.bz2
|
||||
|
||||
# Download buildroot if we don't have it already
|
||||
if [ ! -f download/$FILENAME ]
|
||||
then
|
||||
wget -P download http://buildroot.org/downloads/$FILENAME
|
||||
fi
|
||||
|
||||
# Untar buildroot if it's not already there
|
||||
if [ ! -d buildroot ]
|
||||
then
|
||||
mkdir buildroot
|
||||
tar -C buildroot -xf download/$FILENAME --strip 1
|
||||
fi
|
||||
|
||||
# Apply patches to buildroot if we haven't done so before
|
||||
PATCH_FLAG_FILE=buildroot/.manila-patches-applied
|
||||
if [ ! -f $PATCH_FLAG_FILE ]
|
||||
then
|
||||
( cd buildroot ; QUILT_PATCHES=../patches quilt push -a )
|
||||
touch $PATCH_FLAG_FILE
|
||||
fi
|
||||
|
||||
# Create the filesystem overlays
|
||||
if [ ! -d overlay-client ]
|
||||
then
|
||||
mkdir overlay-client
|
||||
cp -a common-files/* overlay-client
|
||||
fi
|
||||
if [ ! -d overlay-server ]
|
||||
then
|
||||
mkdir overlay-server
|
||||
cp -a common-files/* overlay-server
|
||||
cp -a server-files/* overlay-server
|
||||
fi
|
||||
|
||||
# Copy the config files where they need to go (temporarily)
|
||||
cp conf/buildroot-client.config buildroot/configs/manila_client_defconfig
|
||||
cp conf/buildroot-server.config buildroot/configs/manila_server_defconfig
|
||||
cp conf/buildroot-debug.config buildroot/configs/manila_debug_defconfig
|
||||
|
||||
cd buildroot
|
||||
BUILD_IMAGES="client server"
|
||||
|
||||
# Setup the build directories with their configs
|
||||
for IMAGE in $BUILD_IMAGES
|
||||
do
|
||||
make O=../output-${IMAGE} manila_${IMAGE}_defconfig
|
||||
done
|
||||
|
||||
# Remove the temporary configs
|
||||
rm configs/manila_*_defconfig
|
||||
|
||||
# Do the builds
|
||||
for IMAGE in $BUILD_IMAGES
|
||||
do
|
||||
make O=../output-${IMAGE} all
|
||||
done
|
||||
|
||||
cd ..
|
||||
|
||||
# Do the builds
|
||||
for IMAGE in $BUILD_IMAGES
|
||||
do
|
||||
./make-bootable-disk.sh$ IMAGE
|
||||
done
|
1
server-files/etc/exports
Normal file
1
server-files/etc/exports
Normal file
@ -0,0 +1 @@
|
||||
/share *(rw,sync,no_subtree_check,all_squash,anonuid=99,anongid=99)
|
24
server-files/etc/samba/smb.conf
Normal file
24
server-files/etc/samba/smb.conf
Normal file
@ -0,0 +1,24 @@
|
||||
[global]
|
||||
workgroup = WORKGROUP
|
||||
dns proxy = no
|
||||
log file = /var/log/samba/log.%m
|
||||
log level = 1
|
||||
max log size = 1000
|
||||
server role = standalone server
|
||||
passdb backend = tdbsam
|
||||
usershare allow guests = yes
|
||||
load printers = no
|
||||
printing = bsd
|
||||
printcap name = /dev/null
|
||||
disable spoolss = yes
|
||||
map to guest = Bad user
|
||||
guest account = nobody
|
||||
|
||||
[share]
|
||||
path = /share
|
||||
writable = yes
|
||||
guest ok = yes
|
||||
force user = nobody
|
||||
force group = nogroup
|
||||
create mask = 0770
|
||||
directory mask = 0770
|
Loading…
Reference in New Issue
Block a user