Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Gavin Pryke
linuxmce
Commits
3d81f732
Commit
3d81f732
authored
Aug 10, 2016
by
phenigma
Browse files
Refs #2696 - final un-committed fixes
parent
e0712be5
Changes
2
Hide whitespace changes
Inline
Side-by-side
raspbian/linux-image-default-rpi-pxe/initramfs-tools-default-raspbian-jessie/scripts/nfs-premount/DisklessInteractor
View file @
3d81f732
...
...
@@ -36,7 +36,7 @@ Gateway=`ip route | grep "default via" | cut -d " " -f3`
Architecture
=
"armhf"
DD
=
"
$Architecture
"
CpuSerial
=
$(
cat
/proc/cpuinfo |
grep
Serial |
awk
{
'print $3;'
}
|
sed
's/^0*//'
)
CpuSerial
=
$(
cat
/proc/cpuinfo |
grep
Serial |
cut
-d
' '
-f2
|
sed
's/^0*//'
)
DD
=
"
$DD
|161|
$CpuSerial
"
echo
"IP:
$MyIP
; MAC:
$MyMAC
; Gateway:
$Gateway
; DeviceData:
$DD
; PNP_ID:
$PNP_ID
"
...
...
raspbian/linux-image-default-rpi-pxe/makepackage.sh
View file @
3d81f732
...
...
@@ -33,10 +33,6 @@ mkdir -p $Moon_RootLocation/$kernel_dir
cp
-aR
/boot/
*
${
Moon_RootLocation
}
/
${
kernel_dir
}
/
chmod
a+r
-R
${
Moon_RootLocation
}
/
${
kernel_dir
}
/
#old
#cp /boot/vmlinuz-${Moon_KernelVersion} ${Moon_RootLocation}/${kernel_dir}/
#cp /boot/System.map-${Moon_KernelVersion} ${Moon_RootLocation}/${kernel_dir}/
# Generate NFS bootable initrd
AddModules
()
{
...
...
@@ -52,7 +48,7 @@ AddModules()
sed
-i
's/^.*BOOT=.*/BOOT=nfs/g'
"
$initramfs_tools_dir
/initramfs.conf"
#mkinitramfs -d "$initramfs_tools_dir/" -o ${Moon_RootLocation}/${kernel_dir}/initrd.img-${Moon_KernelVersion} ${Moon_KernelVersion}
mkinitramfs
-d
"
$initramfs_tools_dir
/"
-o
${
Moon_RootLocation
}
/
${
kernel_dir
}
/initramfs
${
Moon_KernelVersion
}
mkinitramfs
-d
"
$initramfs_tools_dir
/"
-o
${
Moon_RootLocation
}
/
${
kernel_dir
}
/initramfs
.img
${
Moon_KernelVersion
}
cp
${
Moon_RootLocation
}
/DEBIAN/changelog
{
.in,
}
cp
${
Moon_RootLocation
}
/DEBIAN/control
{
.in,
}
...
...
@@ -70,30 +66,15 @@ cat <<-EEOF >${Moon_RootLocation}/${kernel_dir}/config.txt
# For more options and information see
# http://www.raspberrypi.org/documentation/configuration/config-txt.md
# Some settings may impact device functionality. See link above for details
# uncomment if you get no picture on HDMI for a default "safe" mode
#hdmi_safe=1
#disable_overscan=1
gpu_mem=128
#kernel=kernel7.img
initramfs initramfs
initramfs initramfs
.img
EEOF
#old
## Setup the symlinks
#pushd ${Moon_RootLocation}/${kernel_dir}
#ln -fs vmlinuz-${Moon_KernelVersion} vmlinuz
#ln -fs initrd.img-${Moon_KernelVersion} initrd.img
#popd
#
## Create PXE configuration for default boot
#mkdir -p "$pxe_config_dir"
#echo "DEFAULT LinuxMCE
#LABEL LinuxMCE
#KERNEL $default_name/vmlinuz
#APPEND root=/dev/nfs initrd=$default_name/initrd.img ramdisk_size=10240 rw
#" > ${pxe_config_file}
rm
-rf
pkgrootdir
cp
-a
${
Moon_RootLocation
}
pkgrootdir
find pkgrootdir
-type
d
-name
.svn
-exec
rm
-rf
'{}'
';'
-prune
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment