[Solved]Star is missing inSection II Updating 000-kernel.xzm

Non release banter
Terus
White ninja
White ninja
Posts: 17
Joined: 02 Jan 2014, 12:14
Distribution: porteus
Location: Location

[Solved]Star is missing inSection II Updating 000-kernel.xzm

Post#1 by Terus » 13 Mar 2014, 18:27

Section II Updating 000-kernel.xzm module with new drivers: http://www.porteus.org/tutorials/51-dev ... ernel.html

Is.

Code: Select all

cp -r /mnt/live/memory/images/000-kernel.xzm/ /root/000-kernel
rm -r /root/000-kernel/lib/modules/*
rm -r /root/000-kernel/lib/firmware/*
cp -r /mnt/live/memory/changes/lib/firmware /root/000-kernel/lib
cp -r /mnt/live/memory/changes/lib/modules/your-new-kernel-version /root/000-kernel/lib/modules
rm /mnt/sdb1/porteus/base/000-kernel.xzm
dir2xzm /root/000-kernel/ /mnt/sdb1/porteus/base/000-kernel.xzm
Should be.

Code: Select all

cp -r /mnt/live/memory/images/000-kernel.xzm/* /root/000-kernel
rm -r /root/000-kernel/lib/modules/*
rm -r /root/000-kernel/lib/firmware/*
cp -r /mnt/live/memory/changes/lib/firmware /root/000-kernel/lib
cp -r /mnt/live/memory/changes/lib/modules/your-new-kernel-version /root/000-kernel/lib/modules
rm /mnt/sdb1/porteus/base/000-kernel.xzm
dir2xzm /root/000-kernel/ /mnt/sdb1/porteus/base/000-kernel.xzm
First line, missing star.
Last edited by Terus on 14 Mar 2014, 17:58, edited 1 time in total.

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Star is missing in Section II Updating 000-kernel.xzm

Post#2 by fanthom » 13 Mar 2014, 19:13

nope - everything is ok. you are copying a folder from one place to another (not a content of a folder).
please run this command manually and check yourself.
Please add [Solved] to your thread title if the solution was found.

Terus
White ninja
White ninja
Posts: 17
Joined: 02 Jan 2014, 12:14
Distribution: porteus
Location: Location

Re: Star is missing in Section II Updating 000-kernel.xzm

Post#3 by Terus » 14 Mar 2014, 16:51

you are copying a directory from one place to another (not a content).
Exactly.

Then those lines should be replaced,

Code: Select all

rm -r /root/000-kernel/lib/modules/*
rm -r /root/000-kernel/lib/firmware/*
cp -r /mnt/live/memory/changes/lib/firmware /root/000-kernel/lib
cp -r /mnt/live/memory/changes/lib/modules/your-new-kernel-version /root/000-kernel/lib/modules
into:

Code: Select all

rm -r /root/000-kernel/000-kernel.xzm/lib/modules/*
rm -r /root/000-kernel/000-kernel.xzm/lib/firmware/*
cp -r /mnt/live/memory/changes/lib/firmware /root/000-kernel/000-kernel.xzm/lib
cp -r /mnt/live/memory/changes/lib/modules/your-new-kernel-version /root/000-kernel/000-kernel.xzm/lib/modules

User avatar
fanthom
Moderator Team
Moderator Team
Posts: 5666
Joined: 28 Dec 2010, 02:42
Distribution: Porteus Kiosk
Location: Poland
Contact:

Re: Star is missing in Section II Updating 000-kernel.xzm

Post#4 by fanthom » 14 Mar 2014, 17:21

nope. your code covers scenario when /root/000-kernel already exists.
but it shouldn't be there.... at least i did not ask anywhere in the HOWTO to create this directory.
Please add [Solved] to your thread title if the solution was found.

Terus
White ninja
White ninja
Posts: 17
Joined: 02 Jan 2014, 12:14
Distribution: porteus
Location: Location

Re: Star is missing in Section II Updating 000-kernel.xzm

Post#5 by Terus » 14 Mar 2014, 17:38

... /root/000-kernel already exists
Ha that's it. Thanks.

Post Reply